Skip to content

Commit

Permalink
refractor
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitmashu committed May 22, 2024
1 parent 3a0f3eb commit f756da2
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3437,7 +3437,7 @@ components:
type: object
example:
type: urn:dx:rs:success
title: successfull
title: successful
detail: Successfully changed the password
results: [
{ "username": "asasdasd-asdasd-aada-d23342",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,7 @@ public DataBrokerService resetPassword(
.onSuccess(
successHandler -> {
response.put("type", ResponseUrn.SUCCESS_URN.getUrn());
response.put(TITLE, "successfull");
response.put(TITLE, "successful");
response.put(DETAIL, "Successfully changed the password");
JsonArray result =
new JsonArray()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ void ResetUserPwd() {
.post("/user/resetPassword")
.then()
.statusCode(200)
.body("title", equalTo("successfull"))
.body("title", equalTo("successful"))
.body("detail", equalTo("Successfully changed the password"))
.extract()
.response();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ public void test_resetPassword_success(VertxTestContext vertxTestContext) {
String actual = object.getString("username");
assertEquals("Dummy User ID", actual);
assertEquals("urn:dx:rs:success", handler.result().getString("type"));
assertEquals("successfull", handler.result().getString("title"));
assertEquals("successful", handler.result().getString("title"));
assertNotNull(handler.result().getString("result"));
vertxTestContext.completeNow();
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22432,7 +22432,7 @@
"pm.test(\"Check response body\", function () { ",
" const body = pm.response.json();",
" pm.expect(body).to.have.property(\"type\", \"urn:dx:rs:success\");",
" pm.expect(body).to.have.property(\"title\", \"successfull\");",
" pm.expect(body).to.have.property(\"title\", \"successful\");",
" pm.expect(body).to.have.property(\"result\");",
" const resultsjsonData = body.result[0];",
" pm.expect(resultsjsonData).to.have.property(\"username\");",
Expand Down

0 comments on commit f756da2

Please sign in to comment.