Skip to content
Snippets Groups Projects
Commit 52531f64 authored by OZGCloud's avatar OZGCloud
Browse files

keycloak: add generated password legth unit test

parent a7684760
Branches
Tags
No related merge requests found
...@@ -102,6 +102,13 @@ class UserSecretBuilderTest { ...@@ -102,6 +102,13 @@ class UserSecretBuilderTest {
assertThat(password).isAlphanumeric(); assertThat(password).isAlphanumeric();
} }
@Test
void shouldHaveMiminumLength() {
var password = decode(builder.generatePassword());
assertThat(password).hasSize(8);
}
@Test @Test
void shouldEncode() { void shouldEncode() {
builder.generatePassword(); builder.generatePassword();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment