Skip to content

Commit

Permalink
Update src/integrationTest/java/org/opensearch/test/framework/TestSec…
Browse files Browse the repository at this point in the history
…urityConfig.java

Signed-off-by: Stephen Crawford <[email protected]>
  • Loading branch information
stephen-crawford authored Nov 16, 2023
1 parent e19ffa0 commit 92bf19f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ public User roles(Role... roles) {
// We scope the role names by user to keep tests free of potential side effects
String roleNamePrefix = "user_" + this.getName() + "__";
this.roles.addAll(
Arrays.asList(roles).stream().map((r) -> r.clone().name(roleNamePrefix + r.getName())).collect(Collectors.toSet())
Arrays.asList(roles).stream().map((r) -> r.clone().name(roleNamePrefix + r.getName())).collect(Collectors.toSet())
);
return this;
}
Expand Down

0 comments on commit 92bf19f

Please sign in to comment.