-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
9 translate the preferred client mode names #10
9 translate the preferred client mode names #10
Conversation
lukasmatusiewicz
commented
Dec 22, 2022
- Add translation
- Update tests
Tests/Tests.cs
Outdated
@@ -12,6 +13,8 @@ public class Tests | |||
{ | |||
WireMockServer server; | |||
PrivacyIDEA privacyIDEA; | |||
private readonly string authToken = "eyJ0eXAiOiJ...KV1QiLC6chGIM"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_AuthToken
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests/Tests.cs
Outdated
@@ -208,79 +261,13 @@ public void TriggerChallenges() | |||
.WithPath("/validate/triggerchallenge") | |||
.UsingPost() | |||
.WithBody("user=test") | |||
.WithHeader("Authorization", authToken) | |||
.WithHeader("Authorization", this.authToken) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will be _AuthToken. Can drop the this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests/Tests.cs
Outdated
.WithPath("/validate/triggerchallenge") | ||
.UsingPost() | ||
.WithBody("user=testwebauthn") | ||
.WithHeader("Authorization", this.authToken) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
77.1% test coverage |
81.6% code coverage |
ready to review |
PrivacyIDEA_Client/PrivacyIDEA.cs
Outdated
@@ -355,7 +355,11 @@ public void SetServiceAccount(string user, string pass, string realm = "") | |||
{ | |||
_serviceUser = user; | |||
_servicePass = pass; | |||
if (string.IsNullOrEmpty(realm) is false) | |||
if (string.IsNullOrEmpty(realm)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_serviceRealm = realm ?? "";
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests/TestTriggerChallenges.cs
Outdated
[TestMethod] | ||
public async Task TriggerChallenges() | ||
{ | ||
// Test no service account |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you extract each of the comments to a function with that name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
85.9% code coverage
85.9% code coverage Ready for review |