Conversation
…passwords. So, it was just adding a new entry to the database script.
arcuri82
requested changes
Oct 31, 2024
| @@ -138,7 +138,8 @@ public SutInfoDto.OutputFormat getPreferredOutputFormat() { | |||
| public List<AuthenticationDto> getInfoForAuthentication() { | |||
Contributor
There was a problem hiding this comment.
need to update ExternalEvoMasterController as well
Contributor
There was a problem hiding this comment.
@onurd86 btw, I assume you then run EvoMaster on this update settings, and verified there was no message saying 401 with this new user, isn't it?
Contributor
Author
There was a problem hiding this comment.
Hi Andrea,
Thanks for mentioning that. I tried to run EvoMaster again after adding the new user. I do not get any 401 after adding the new user. Adding a new user to market was very easy.
Contributor
Author
There was a problem hiding this comment.
I have updated External Controller as well.
Contributor
Author
There was a problem hiding this comment.
This was one of the successful tests generated by EvoMaster after adding user2:
@Test @Timeout(60)
public void test_1() throws Exception {
given().accept("*/*")
.header("Authorization", "Basic dXNlcjJAeWFuZGV4LnJ1Onl1cmlkb2xnb3J1a2k=") // user2
.header("x-EMextraHeader123", "")
.get(baseUrlOfSut + "/customer/orders?name=ATX")
.then()
.statusCode(200)
.assertThat()
.contentType("application/json")
.body("size()", equalTo(0));
}
arcuri82
approved these changes
Oct 31, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a new user to market app. It utilizes BCrypt Encoder for storing passwords. So, it was just adding a new entry to the database script.