Skip to content

Commit f246dce

Browse files
authored
Merge pull request #125 from laDok8/ejb
[HAL-2026] Verify EJB profile reset spec
2 parents 45062fd + a5d81d7 commit f246dce

2 files changed

Lines changed: 47 additions & 1 deletion

File tree

packages/testsuite/cypress/e2e/ejb/test-configuration-subsystem-ejb-container-remoting-profile.cy.ts

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,28 @@ describe("TESTS: Configuration => Subsystem => EJB => Container => Remoting Prof
2929
cy.addAddress(managementEndpoint, address.concat(remotingProfiles.update.name));
3030
cy.addAddress(managementEndpoint, address.concat(remotingProfiles.remove.name));
3131
cy.addAddress(managementEndpoint, address.concat(remotingProfiles.reset.name));
32+
})
33+
.then(() => {
34+
cy.writeAttribute(
35+
managementEndpoint,
36+
address.concat(remotingProfiles.reset.name),
37+
"local-receiver-pass-by-value",
38+
true
39+
);
40+
cy.writeAttribute(
41+
managementEndpoint,
42+
address.concat(remotingProfiles.reset.name),
43+
"exclude-local-receiver",
44+
true
45+
);
46+
cy.writeAttribute(managementEndpoint, address.concat(remotingProfiles.reset.name), "static-ejb-discovery", [
47+
{
48+
uri: "someUri",
49+
"app-name": "someAppName",
50+
"module-name": "someModule",
51+
"distinct-name": "someDistinctName",
52+
},
53+
]);
3254
});
3355
});
3456

@@ -170,5 +192,29 @@ describe("TESTS: Configuration => Subsystem => EJB => Container => Remoting Prof
170192
cy.get("#remoting-profile-item").click();
171193
cy.selectInTable(remotingProfilesTableId, remotingProfiles.reset.name);
172194
cy.resetForm(configurationFormId, managementEndpoint, address.concat(remotingProfiles.reset.name));
195+
//Verify reset
196+
cy.verifyAttribute(
197+
managementEndpoint,
198+
address.concat(remotingProfiles.reset.name),
199+
"local-receiver-pass-by-value",
200+
false
201+
);
202+
cy.verifyAttribute(
203+
managementEndpoint,
204+
address.concat(remotingProfiles.reset.name),
205+
"exclude-local-receiver",
206+
false
207+
);
208+
cy.verifyListAttributeDoesNotContain(
209+
managementEndpoint,
210+
address.concat(remotingProfiles.reset.name),
211+
"static-ejb-discovery",
212+
{
213+
uri: "someUri",
214+
"app-name": "someAppName",
215+
"module-name": "someModule",
216+
"distinct-name": "someDistinctName",
217+
}
218+
);
173219
});
174220
});

packages/testsuite/cypress/support/resource-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ declare global {
283283
managementEndpoint: string,
284284
address: string[],
285285
name: string,
286-
value: string | boolean | number
286+
value: string | boolean | number | object | object[]
287287
): Chainable<object[]>;
288288

289289
/**

0 commit comments

Comments
 (0)