Users created won't have any orgs if a template is configured (#374)
This commit is contained in:
parent
4617a87686
commit
27511c90d4
|
|
@ -162,8 +162,10 @@ public class UserServiceTest {
|
||||||
assertThat(user.getName()).isEqualTo("new-user-email@email.com");
|
assertThat(user.getName()).isEqualTo("new-user-email@email.com");
|
||||||
assertThat(user.getPolicies()).isNotEmpty();
|
assertThat(user.getPolicies()).isNotEmpty();
|
||||||
assertThat(user.getPolicies()).containsAll(Set.of(manageUserPolicy, manageUserOrgPolicy, readUserPolicy, readUserOrgPolicy));
|
assertThat(user.getPolicies()).containsAll(Set.of(manageUserPolicy, manageUserOrgPolicy, readUserPolicy, readUserOrgPolicy));
|
||||||
assertThat(user.getOrganizationIds()).isNotNull();
|
// Since there is a template organization, the user won't have an empty personal organization. They
|
||||||
assertThat(user.getOrganizationIds().size()).isEqualTo(1);
|
// will get a clone of the personal organization when they first login. So, we expect it to be
|
||||||
|
// empty here.
|
||||||
|
assertThat(user.getOrganizationIds()).isNullOrEmpty();
|
||||||
})
|
})
|
||||||
.verifyComplete();
|
.verifyComplete();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user