Skip to content

Commit 227519e

Browse files
committed
oidc fix
1 parent 755d18a commit 227519e

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

cypress.config.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,12 @@ export default defineConfig({
4444
portOffset = freePort - 8080;
4545
wildfly
4646
.withNetworkMode("host")
47+
.withExtraHosts([{ host: require("os").hostname(), ipAddress: "127.0.0.1" }])
4748
.withCommand([
4849
"-c",
4950
configuration || "standalone-insecure.xml",
5051
`-Djboss.socket.binding.port-offset=${portOffset.toString()}`,
52+
"-Djboss.node.name=localhost",
5153
] as string[]);
5254
})
5355
.catch((error) => {
@@ -70,7 +72,7 @@ export default defineConfig({
7072
startedContainersManagementPorts.set(name as string, portOffset + 9990);
7173
return wildflyContainer
7274
.exec([
73-
`/bin/bash`,
75+
`/bin/sh`,
7476
`-c`,
7577
`$JBOSS_HOME/bin/jboss-cli.sh --connect --controller=localhost:${managementPortWithOffset} --command="/core-service=management/management-interface=http-interface:list-add(name=allowed-origins,value=http://localhost:${
7678
config.env.HAL_CONTAINER_PORT as string
@@ -79,7 +81,7 @@ export default defineConfig({
7981
.then((result) => {
8082
console.log(result.output);
8183
return wildflyContainer.exec([
82-
`/bin/bash`,
84+
`/bin/sh`,
8385
`-c`,
8486
`$JBOSS_HOME/bin/jboss-cli.sh --connect --controller=localhost:${managementPortWithOffset} --command="reload"`,
8587
]);
@@ -88,7 +90,7 @@ export default defineConfig({
8890
console.log(result.output);
8991
wildflyContainer
9092
.exec([
91-
`/bin/bash`,
93+
`/bin/sh`,
9294
`-c`,
9395
`$JBOSS_HOME/bin/jboss-cli.sh --connect --controller=localhost:${managementPortWithOffset} --command="read-attribute server-state"`,
9496
])

0 commit comments

Comments
 (0)