Skip to content

Commit

Permalink
fix: add new role during the import (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrejpetras authored Jun 7, 2024
1 parent e8521a0 commit ed72201
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ default List<Assignment> createProductAppAssignments(String productName, String
var role = roleMap.get(roleName);
if (role == null) {
role = createRole(roleName);
createRoles.add(role);
roleMap.put(roleName, role);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ void operatorImportTest() {
.putAssignmentsItem("test1", Map.of("app1",
Map.of(
"n1", Map.of("o1", List.of("a1", "a2", "a3"), "o2", List.of("a3", "a2")),
"n2", Map.of("o2", List.of("a3", "a2")))));
"k2", Map.of("o2", List.of("a3", "a2")))));

given()
.contentType(APPLICATION_JSON)
Expand Down

0 comments on commit ed72201

Please sign in to comment.