Skip to content

Commit

Permalink
SHIBUI-2559: Add SET Test for Non Root Context
Browse files Browse the repository at this point in the history
  • Loading branch information
credman committed Mar 25, 2023
1 parent 9b8e8a6 commit 4489333
Show file tree
Hide file tree
Showing 59 changed files with 226 additions and 225 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@ import spock.lang.Unroll

import java.nio.file.Paths

//TODO: make config configurable
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT, classes = [ShibbolethUiApplication])
@SpringBootTest(properties = [ 'server.servlet.context-path=${selenium.context-path:}' ], webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT, classes = [ShibbolethUiApplication])
@ActiveProfiles(['dev', 'very-dangerous'])
@DirtiesContext(classMode = DirtiesContext.ClassMode.AFTER_EACH_TEST_METHOD, methodMode = DirtiesContext.MethodMode.AFTER_METHOD)
class SeleniumSIDETest extends Specification {
@Value('${local.server.port}')
int randomPort
@Value('${selenium.context-path:}')
String contextPath

@Ignore
def "Selenium: just run one"() {
Expand All @@ -41,9 +42,9 @@ class SeleniumSIDETest extends Specification {
this.setRandomPort("${System.properties.getProperty('selenium.port')}" as int)
}
if (System.properties.getProperty('selenium.host')) {
it.baseurl = "http://${System.properties.getProperty('selenium.host')}:${this.randomPort}"
it.baseurl = "http://${System.properties.getProperty('selenium.host')}:${this.randomPort}${this.contextPath}"
} else {
it.baseurl = "http://localhost:${this.randomPort}"
it.baseurl = "http://localhost:${this.randomPort}${this.contextPath}"
}
if (System.properties.getProperty('webdriver.headless')) {
it.addCliArgs('--headless')
Expand Down Expand Up @@ -81,9 +82,9 @@ class SeleniumSIDETest extends Specification {
this.setRandomPort("${System.properties.getProperty('selenium.port')}" as int)
}
if (System.properties.getProperty('selenium.host')) {
it.baseurl = "http://${System.properties.getProperty('selenium.host')}:${this.randomPort}"
it.baseurl = "http://${System.properties.getProperty('selenium.host')}:${this.randomPort}${this.contextPath}"
} else {
it.baseurl = "http://localhost:${this.randomPort}"
it.baseurl = "http://localhost:${this.randomPort}${this.contextPath}"
}
if (System.properties.getProperty('webdriver.headless')) {
it.addCliArgs('--headless')
Expand Down
8 changes: 4 additions & 4 deletions backend/src/integration/resources/SHIBUI-1281.side
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"id": "d6b23986-6d14-4b10-be7b-a7e6f576e3b2",
"comment": "",
"command": "open",
"target": "/login",
"target": "login",
"targets": [],
"value": ""
}, {
Expand Down Expand Up @@ -60,7 +60,7 @@
"id": "f03af8d5-5875-4a2c-b93a-c3ddcbd4b16a",
"comment": "",
"command": "open",
"target": "/api/heheheheheheheWipeout",
"target": "api/heheheheheheheWipeout",
"targets": [],
"value": ""
}, {
Expand All @@ -74,7 +74,7 @@
"id": "9e912dd5-6ace-45be-bafd-2d1655906575",
"comment": "",
"command": "open",
"target": "/",
"target": "",
"targets": [],
"value": ""
}, {
Expand Down Expand Up @@ -2082,7 +2082,7 @@
"id": "4ec2c493-85e4-403b-9b09-031c5728f498",
"comment": "",
"command": "open",
"target": "/api/heheheheheheheWipeout",
"target": "api/heheheheheheheWipeout",
"targets": [],
"value": ""
}, {
Expand Down
8 changes: 4 additions & 4 deletions backend/src/integration/resources/SHIBUI-1311.side
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"id": "29bb3186-81c8-4b3e-a9d9-5ff55d225878",
"comment": "",
"command": "open",
"target": "/login",
"target": "login",
"targets": [],
"value": ""
}, {
Expand Down Expand Up @@ -60,7 +60,7 @@
"id": "8034dcdc-3fa2-4144-b707-c470db8c7c38",
"comment": "",
"command": "open",
"target": "/api/heheheheheheheWipeout",
"target": "api/heheheheheheheWipeout",
"targets": [],
"value": ""
}, {
Expand All @@ -74,7 +74,7 @@
"id": "d47c270c-256a-45d1-9ca9-926d4f57643d",
"comment": "",
"command": "open",
"target": "/",
"target": "",
"targets": [],
"value": ""
}, {
Expand Down Expand Up @@ -1064,7 +1064,7 @@
"id": "4ec2c493-85e4-403b-9b09-031c5728f498",
"comment": "",
"command": "open",
"target": "/api/heheheheheheheWipeout",
"target": "api/heheheheheheheWipeout",
"targets": [],
"value": ""
}, {
Expand Down
8 changes: 4 additions & 4 deletions backend/src/integration/resources/SHIBUI-1333.side
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"id": "d6b23986-6d14-4b10-be7b-a7e6f576e3b2",
"comment": "",
"command": "open",
"target": "/login",
"target": "login",
"targets": [],
"value": ""
}, {
Expand Down Expand Up @@ -60,7 +60,7 @@
"id": "1462b26b-ff44-43bb-a3c1-48758d90c91c",
"comment": "",
"command": "open",
"target": "/api/heheheheheheheWipeout",
"target": "api/heheheheheheheWipeout",
"targets": [],
"value": ""
}, {
Expand All @@ -74,7 +74,7 @@
"id": "f4edebbc-bcae-4aee-b211-7bf1c02cad37",
"comment": "",
"command": "open",
"target": "/",
"target": "",
"targets": [],
"value": ""
}, {
Expand Down Expand Up @@ -2411,7 +2411,7 @@
"id": "4ec2c493-85e4-403b-9b09-031c5728f498",
"comment": "",
"command": "open",
"target": "/api/heheheheheheheWipeout",
"target": "api/heheheheheheheWipeout",
"targets": [],
"value": ""
}, {
Expand Down
8 changes: 4 additions & 4 deletions backend/src/integration/resources/SHIBUI-1334-1.side
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"id": "d6b23986-6d14-4b10-be7b-a7e6f576e3b2",
"comment": "",
"command": "open",
"target": "/login",
"target": "login",
"targets": [],
"value": ""
}, {
Expand Down Expand Up @@ -60,7 +60,7 @@
"id": "c4f3b8ff-5c73-4975-8a76-08c3a5d9ec4c",
"comment": "",
"command": "open",
"target": "/api/heheheheheheheWipeout",
"target": "api/heheheheheheheWipeout",
"targets": [],
"value": ""
}, {
Expand All @@ -74,7 +74,7 @@
"id": "240e95a4-893e-4dab-901e-dc2960a2126a",
"comment": "",
"command": "open",
"target": "/",
"target": "",
"targets": [],
"value": ""
}, {
Expand Down Expand Up @@ -2819,7 +2819,7 @@
"id": "4ec2c493-85e4-403b-9b09-031c5728f498",
"comment": "",
"command": "open",
"target": "/api/heheheheheheheWipeout",
"target": "api/heheheheheheheWipeout",
"targets": [],
"value": ""
}, {
Expand Down
8 changes: 4 additions & 4 deletions backend/src/integration/resources/SHIBUI-1334-2.side
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"id": "29bb3186-81c8-4b3e-a9d9-5ff55d225878",
"comment": "",
"command": "open",
"target": "/login",
"target": "login",
"targets": [],
"value": ""
}, {
Expand Down Expand Up @@ -60,7 +60,7 @@
"id": "692ca72a-41c0-4ef7-8ed2-a9d4bde7e05c",
"comment": "",
"command": "open",
"target": "/api/heheheheheheheWipeout",
"target": "api/heheheheheheheWipeout",
"targets": [],
"value": ""
}, {
Expand All @@ -74,7 +74,7 @@
"id": "23c9cd5a-970b-4974-9f48-98886710c35b",
"comment": "",
"command": "open",
"target": "/",
"target": "",
"targets": [],
"value": ""
}, {
Expand Down Expand Up @@ -1119,7 +1119,7 @@
"id": "4ec2c493-85e4-403b-9b09-031c5728f498",
"comment": "",
"command": "open",
"target": "/api/heheheheheheheWipeout",
"target": "api/heheheheheheheWipeout",
"targets": [],
"value": ""
}, {
Expand Down
8 changes: 4 additions & 4 deletions backend/src/integration/resources/SHIBUI-1335-1.side
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"id": "2f6aa07a-6a16-439f-8c16-9822163c7b61",
"comment": "",
"command": "open",
"target": "/login",
"target": "login",
"targets": [],
"value": ""
}, {
Expand Down Expand Up @@ -60,7 +60,7 @@
"id": "8ce1cc76-3392-4b5f-8a9f-658f08f19ed1",
"comment": "",
"command": "open",
"target": "/api/heheheheheheheWipeout",
"target": "api/heheheheheheheWipeout",
"targets": [],
"value": ""
}, {
Expand All @@ -74,7 +74,7 @@
"id": "4e7e2172-a234-414a-90e0-befd3ad65246",
"comment": "",
"command": "open",
"target": "/",
"target": "",
"targets": [],
"value": ""
}, {
Expand Down Expand Up @@ -1813,7 +1813,7 @@
"id": "4ec2c493-85e4-403b-9b09-031c5728f498",
"comment": "",
"command": "open",
"target": "/api/heheheheheheheWipeout",
"target": "api/heheheheheheheWipeout",
"targets": [],
"value": ""
}, {
Expand Down
8 changes: 4 additions & 4 deletions backend/src/integration/resources/SHIBUI-1335-2.side
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"id": "7e3c1218-65cd-4730-b715-ca9c922d75d3",
"comment": "",
"command": "open",
"target": "/login",
"target": "login",
"targets": [],
"value": ""
}, {
Expand Down Expand Up @@ -60,7 +60,7 @@
"id": "67772da3-94dd-419e-b05c-7ed12927805e",
"comment": "",
"command": "open",
"target": "/api/heheheheheheheWipeout",
"target": "api/heheheheheheheWipeout",
"targets": [],
"value": ""
}, {
Expand All @@ -74,7 +74,7 @@
"id": "eb6fccd7-ea92-41ad-ade1-b985244f79d5",
"comment": "",
"command": "open",
"target": "/",
"target": "",
"targets": [],
"value": ""
}, {
Expand Down Expand Up @@ -418,7 +418,7 @@
"id": "4ec2c493-85e4-403b-9b09-031c5728f498",
"comment": "",
"command": "open",
"target": "/api/heheheheheheheWipeout",
"target": "api/heheheheheheheWipeout",
"targets": [],
"value": ""
}, {
Expand Down
8 changes: 4 additions & 4 deletions backend/src/integration/resources/SHIBUI-1335-3.side
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"id": "7e3c1218-65cd-4730-b715-ca9c922d75d3",
"comment": "",
"command": "open",
"target": "/login",
"target": "login",
"targets": [],
"value": ""
}, {
Expand Down Expand Up @@ -60,7 +60,7 @@
"id": "e64cf7d1-36eb-483b-b577-0f9daf9793c1",
"comment": "",
"command": "open",
"target": "/api/heheheheheheheWipeout",
"target": "api/heheheheheheheWipeout",
"targets": [],
"value": ""
}, {
Expand All @@ -74,7 +74,7 @@
"id": "b878a3aa-276c-42ee-8651-9b90d2e92c09",
"comment": "",
"command": "open",
"target": "/",
"target": "",
"targets": [],
"value": ""
}, {
Expand Down Expand Up @@ -383,7 +383,7 @@
"id": "4ec2c493-85e4-403b-9b09-031c5728f498",
"comment": "",
"command": "open",
"target": "/api/heheheheheheheWipeout",
"target": "api/heheheheheheheWipeout",
"targets": [],
"value": ""
}, {
Expand Down
8 changes: 4 additions & 4 deletions backend/src/integration/resources/SHIBUI-1335-4.side
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"id": "7e3c1218-65cd-4730-b715-ca9c922d75d3",
"comment": "",
"command": "open",
"target": "/login",
"target": "login",
"targets": [],
"value": ""
}, {
Expand Down Expand Up @@ -60,7 +60,7 @@
"id": "650dbd56-1f7b-4ec9-9400-b32691018e65",
"comment": "",
"command": "open",
"target": "/api/heheheheheheheWipeout",
"target": "api/heheheheheheheWipeout",
"targets": [],
"value": ""
}, {
Expand All @@ -74,7 +74,7 @@
"id": "e3927a3c-d0b9-47ae-bb81-1d1a80204f4f",
"comment": "",
"command": "open",
"target": "/",
"target": "",
"targets": [],
"value": ""
}, {
Expand Down Expand Up @@ -1085,7 +1085,7 @@
"id": "4ec2c493-85e4-403b-9b09-031c5728f498",
"comment": "",
"command": "open",
"target": "/api/heheheheheheheWipeout",
"target": "api/heheheheheheheWipeout",
"targets": [],
"value": ""
}, {
Expand Down
Loading

0 comments on commit 4489333

Please sign in to comment.