Skip to content

Commit 690633b

Browse files
committed
chore: remove tests for validating empty or not containing shop_r Option Scopes
1 parent 868bce2 commit 690633b

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

test/AspNet.Security.OAuth.Providers.Tests/Etsy/EtsyAuthenticationOptionsTests.cs

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -24,40 +24,6 @@ public static void Validate_Does_Not_Throw_If_ClientSecret_Is_Not_Provided(strin
2424
options.Validate();
2525
}
2626

27-
[Fact]
28-
public static void Validate_Does_Throw_If_Scope_Does_Not_Contain_Scope_shop_r()
29-
{
30-
// Arrange
31-
var options = new EtsyAuthenticationOptions()
32-
{
33-
ClientId = "my-client-id",
34-
ClientSecret = "my-client-secret",
35-
};
36-
options.Scope.Clear();
37-
options.Scope.Add(EtsyAuthenticationConstants.Scopes.EmailRead);
38-
39-
// Act
40-
_ = Assert.Throws<ArgumentOutOfRangeException>(options.Validate);
41-
}
42-
43-
[Fact]
44-
public static void Validate_Does_Not_Throw_When_IncludeDetailedUserInfo_Is_False_And_Contains_Scope_email_r()
45-
{
46-
// Arrange
47-
var options = new EtsyAuthenticationOptions()
48-
{
49-
ClientId = "my-client-id",
50-
ClientSecret = "my-client-secret",
51-
IncludeDetailedUserInfo = false,
52-
};
53-
54-
// Adding email scope should be harmless when IncludeDetailedUserInfo is false
55-
options.Scope.Add(EtsyAuthenticationConstants.Scopes.EmailRead);
56-
57-
// Act (no Assert)
58-
options.Validate();
59-
}
60-
6127
[Fact]
6228
public static void Validate_Throws_If_AuthorizationEndpoint_Is_Null()
6329
{

0 commit comments

Comments
 (0)