test(batch0): port account/auth/options implementable tests
This commit is contained in:
@@ -16,6 +16,9 @@ public sealed class AuthHandlerTests
|
||||
};
|
||||
|
||||
AuthHandler.ValidateNoAuthUser(opts, "alice").ShouldBeNull();
|
||||
var missingUser = AuthHandler.ValidateNoAuthUser(opts, "bob");
|
||||
missingUser.ShouldNotBeNull();
|
||||
missingUser!.Message.ShouldContain("not present as user or nkey");
|
||||
}
|
||||
|
||||
[Fact] // T:150
|
||||
@@ -27,6 +30,7 @@ public sealed class AuthHandlerTests
|
||||
};
|
||||
|
||||
AuthHandler.ValidateNoAuthUser(opts, "NKEY1").ShouldBeNull();
|
||||
AuthHandler.ValidateNoAuthUser(opts, "NKEY2").ShouldNotBeNull();
|
||||
}
|
||||
|
||||
[Fact] // T:152
|
||||
|
||||
Reference in New Issue
Block a user