Skip to content

Commit 33744dc

Browse files
authored
Merge pull request #215 from OndrejKotek/fixes-3.7.7
Stabilization fixes for 3.7.7
2 parents 3921f34 + 0f7cc3b commit 33744dc

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

resources-subsystem-fixtures/src/main/java/org/jboss/hal/testsuite/fixtures/ManagementSslFixtures.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@
77
import static org.jboss.hal.dmr.ModelDescriptionConstants.KEY_STORE;
88
import static org.jboss.hal.dmr.ModelDescriptionConstants.NAME;
99
import static org.jboss.hal.dmr.ModelDescriptionConstants.PATH;
10+
import static org.jboss.hal.dmr.ModelDescriptionConstants.RELATIVE_TO;
1011

1112
public final class ManagementSslFixtures {
1213

1314
public static final String
1415
KEY_STORE_NAME = Ids.build(KEY_STORE, NAME),
1516
KEY_STORE_PASSWORD = Ids.build(KEY_STORE, "password"),
1617
KEY_STORE_PATH = Ids.build(KEY_STORE, PATH),
18+
KEY_STORE_RELATIVE_TO = Ids.build(KEY_STORE, RELATIVE_TO),
1719
KEY_DN_ORGANIZATION = "key-dn-organization",
1820
HAL = "HAL",
1921
CREDENTIAL_REFERENCE_CLEAR_TEXT_ATTR = CREDENTIAL_REFERENCE + "." + CLEAR_TEXT,

tests-configuration-elytron/src/test/java/org/jboss/hal/testsuite/test/configuration/elytron/ssl/KeyStoreTest.java

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ public class KeyStoreTest {
7474
private static final String EXPORTED_CERT_FILENAME = "exported-" + Random.name() + ".cer";
7575
private static final String EXPORTED_CERT_FILENAME2 = "exported2-" + Random.name() + ".cer";
7676
private static final String EXPORTED_CSR_FILENAME = "exported-csr-" + Random.name() + ".cer";
77+
private static final String RELATIVE_TO_CONFIG_DIR = "jboss.server.config.dir";
7778

7879
private static final String AGREE_TO_TERMS_OF_SERVICE = "agree-to-terms-of-service";
7980
private static final String STAGING = "staging";
@@ -88,7 +89,7 @@ public static void setUp() throws IOException {
8889
operations.add(keyStoreAddress(KEY_STORE_NAME), Values.of(ModelDescriptionConstants.TYPE, JKS)
8990
.and(ElytronFixtures.CREDENTIAL_REFERENCE, credentialReference)
9091
.and(ModelDescriptionConstants.PATH, Random.name())
91-
.and(ModelDescriptionConstants.RELATIVE_TO, "jboss.server.config.dir")).assertSuccess();
92+
.and(ModelDescriptionConstants.RELATIVE_TO, RELATIVE_TO_CONFIG_DIR)).assertSuccess();
9293
// add a certificate-authority-account
9394
operations.add(certificateAuthorityAccountAddress(CERTIFICATE_AUTHORITY_ACCOUNT_UPDATE),
9495
Values.of(ElytronFixtures.CREDENTIAL_REFERENCE_ALIAS, Random.name())
@@ -98,7 +99,7 @@ public static void setUp() throws IOException {
9899
operations.add(keyStoreAddress(KEY_STORE_NAME2), Values.of(ModelDescriptionConstants.TYPE, JKS)
99100
.and(ElytronFixtures.CREDENTIAL_REFERENCE, credentialReference)
100101
.and(ModelDescriptionConstants.PATH, Random.name())
101-
.and(ModelDescriptionConstants.RELATIVE_TO, "jboss.server.config.dir")).assertSuccess();
102+
.and(ModelDescriptionConstants.RELATIVE_TO, RELATIVE_TO_CONFIG_DIR)).assertSuccess();
102103
operations.invoke(ModelDescriptionConstants.GENERATE_KEY_PAIR, keyStoreAddress(KEY_STORE_NAME2), Values.of(ModelDescriptionConstants.ALIAS, ALIAS_TO_RENAME)
103104
.and(ModelDescriptionConstants.DISTINGUISHED_NAME, "cn=selfsigned")
104105
.and(SIGNATURE_ALGORITHM, SHA_256_WITH_RSA)
@@ -117,7 +118,8 @@ public static void setUp() throws IOException {
117118
.and(ModelDescriptionConstants.ALGORITHM, RSA)).assertSuccess();
118119
operations.invoke(ModelDescriptionConstants.STORE, keyStoreAddress(KEY_STORE_NAME2)).assertSuccess();
119120
operations.invoke(ModelDescriptionConstants.EXPORT_CERTIFICATE, keyStoreAddress(KEY_STORE_NAME2), Values.of(ModelDescriptionConstants.ALIAS, ALIAS_TO_RENAME)
120-
.and(ModelDescriptionConstants.PATH, EXPORTED_CERT_FILENAME)).assertSuccess();
121+
.and(ModelDescriptionConstants.PATH, EXPORTED_CERT_FILENAME)
122+
.and(ModelDescriptionConstants.RELATIVE_TO, RELATIVE_TO_CONFIG_DIR)).assertSuccess();
121123
}
122124

123125
@AfterClass
@@ -252,6 +254,7 @@ public void importCertificate() {
252254
AddResourceDialogFragment dialog = console.addResourceDialog();
253255
dialog.getForm().text(ModelDescriptionConstants.ALIAS, ALIAS_IMPORTED);
254256
dialog.getForm().text(ModelDescriptionConstants.PATH, EXPORTED_CERT_FILENAME);
257+
dialog.getForm().text(ModelDescriptionConstants.RELATIVE_TO, RELATIVE_TO_CONFIG_DIR);
255258
dialog.getForm().flip(ModelDescriptionConstants.TRUST_CACERTS, true);
256259
dialog.getForm().flip(ModelDescriptionConstants.VALIDATE, false);
257260
dialog.getPrimaryButton().click();
@@ -311,6 +314,7 @@ public void exportAliasCertificate() {
311314

312315
AddResourceDialogFragment dialog = console.addResourceDialog();
313316
dialog.getForm().text(ModelDescriptionConstants.PATH, EXPORTED_CERT_FILENAME2);
317+
dialog.getForm().text(ModelDescriptionConstants.RELATIVE_TO, RELATIVE_TO_CONFIG_DIR);
314318
dialog.getPrimaryButton().click();
315319
console.verifySuccess();
316320
}
@@ -341,6 +345,7 @@ public void generateAliasCSR() {
341345

342346
AddResourceDialogFragment dialog = console.addResourceDialog();
343347
dialog.getForm().text(ModelDescriptionConstants.PATH, EXPORTED_CSR_FILENAME);
348+
dialog.getForm().text(ModelDescriptionConstants.RELATIVE_TO, RELATIVE_TO_CONFIG_DIR);
344349
dialog.getPrimaryButton().click();
345350
console.verifySuccess();
346351
}

tests-configuration-undertow/src/test/java/org/jboss/hal/testsuite/test/configuration/undertow/application/security/domain/SingleSignOnAddTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public void create() throws Exception {
8686
page.getSingleSignOnForm(), formFragment -> {
8787
formFragment.text(ApplicationSecurityDomainFixtures.SINGLE_SIGN_ON_KEY_ALIAS, keyAlias);
8888
formFragment.text(ApplicationSecurityDomainFixtures.SINGLE_SIGN_ON_KEY_STORE, KEY_STORE_TO_BE_ADDED);
89-
formFragment.text(ElytronFixtures.CREDENTIAL_REFERENCE_CLEAR_TEXT, clearTextValue);
89+
formFragment.text(ElytronFixtures.CREDENTIAL_REFERENCE + ElytronFixtures.CREDENTIAL_REFERENCE_CLEAR_TEXT, clearTextValue);
9090
}, resourceVerifier -> {
9191
resourceVerifier.verifyAttribute(ApplicationSecurityDomainFixtures.SINGLE_SIGN_ON_KEY_ALIAS, keyAlias);
9292
resourceVerifier.verifyAttribute(ApplicationSecurityDomainFixtures.SINGLE_SIGN_ON_KEY_STORE,

tests-configuration-undertow/src/test/java/org/jboss/hal/testsuite/test/configuration/undertow/server/listener/HTTPSListenerSSLTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
import static org.jboss.hal.testsuite.fixtures.ManagementSslFixtures.KEY_STORE_NAME;
6868
import static org.jboss.hal.testsuite.fixtures.ManagementSslFixtures.KEY_STORE_PASSWORD;
6969
import static org.jboss.hal.testsuite.fixtures.ManagementSslFixtures.KEY_STORE_PATH;
70+
import static org.jboss.hal.testsuite.fixtures.ManagementSslFixtures.KEY_STORE_RELATIVE_TO;
7071
import static org.jboss.hal.testsuite.fixtures.ManagementSslFixtures.NOT_REQUESTED;
7172
import static org.jboss.hal.testsuite.fixtures.ManagementSslFixtures.PASS;
7273
import static org.jboss.hal.testsuite.fixtures.ManagementSslFixtures.SSL_SESSION_CACHE_SIZE;
@@ -234,6 +235,7 @@ public void enableObtainFromLetsEncrypt() throws Exception {
234235
keyStoreNameValue = Ids.build(KEY_STORE, NAME, Random.name()),
235236
keyStorePasswordValue = Ids.build(KEY_STORE, PASS, Random.name()),
236237
keyStorePathValue = Ids.build(KEY_STORE, PATH, Random.name()),
238+
keyStoreRelativeToValue = "jboss.server.config.dir",
237239
keyAliasValue = Ids.build(KEY_ALIAS, Random.name()),
238240
keyManagerValue = Ids.build(KEY_MANAGER, Random.name()),
239241
caaName = Ids.build(CERTIFICATE_AUTHORITY_ACCOUNT, Random.name()),
@@ -265,6 +267,7 @@ public void enableObtainFromLetsEncrypt() throws Exception {
265267
.editTextFiringExtraChangeEvent(KEY_STORE_NAME, keyStoreNameValue)
266268
.editTextFiringExtraChangeEvent(KEY_STORE_PASSWORD, keyStorePasswordValue)
267269
.editTextFiringExtraChangeEvent(KEY_STORE_PATH, keyStorePathValue)
270+
.editTextFiringExtraChangeEvent(KEY_STORE_RELATIVE_TO, keyStoreRelativeToValue)
268271
.editTextFiringExtraChangeEvent(KEY_ALIAS, keyAliasValue)
269272
.editTextFiringExtraChangeEvent(KEY_MANAGER, keyManagerValue)
270273
.editTextFiringExtraChangeEvent(SERVER_SSL_CONTEXT, serverSslContextValue)

0 commit comments

Comments
 (0)