Skip to content

Commit

Permalink
Merge branch 'develop' into feature/SHIBUI-1674-update-info-content
Browse files Browse the repository at this point in the history
Former-commit-id: b46a58d519896c2a2d663c3fa592108a754f596e
  • Loading branch information
rmathis committed Aug 2, 2022
2 parents dcfeae0 + 335a75c commit e040ad1
Show file tree
Hide file tree
Showing 14 changed files with 367 additions and 87 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -412,3 +412,6 @@ beacon/spring/out

# macOS jenv
.java-version
/a.xml
/application.yml
/backend/src/test/resources/conf/deletem.xml
28 changes: 1 addition & 27 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,32 +16,6 @@ pipeline {
}
}
}

stage('Build Docker images') {
when {
expression {
return GIT_BRANCH in ['master']
}
}
steps {
sh '''./gradlew docker -x test
'''
}
}

stage('Deploy') {
when {
expression {
return GIT_BRANCH in ['master']
}
}
steps {
sh '''
docker stop shibui || true && docker rm shibui || true
docker run -d --restart always --name shibui -p 8080:8080 -v /etc/shibui:/conf -v /etc/shibui/application.yml:/application.yml -m 2GB --memory-swap=4GB --entrypoint /usr/bin/java unicon/shibui:latest -Xmx1G -jar app.war
'''
}
}
}
post {
failure {
Expand All @@ -54,4 +28,4 @@ pipeline {
cleanWs()
}
}
}
}
31 changes: 20 additions & 11 deletions backend/src/integration/resources/SHIBUI-1364-1.side
Original file line number Diff line number Diff line change
Expand Up @@ -2330,13 +2330,22 @@
["xpath=//button[contains(.,'Compare Selected(2)')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "9ddfc4d9-0fbd-44f2-8584-4d7fcb6d0c6b",
"comment": "",
"command": "waitForElementEditable",
"target": "css=#filters > div:nth-child(3) > div:nth-child(2) > div > button",
"targets": [
["css=.d-flex:nth-child(3) > .border-primary:nth-child(2) .svg-inline--fa", "css:finder"]
],
"value": "30000"
}, {
"id": "2ff5a597-9fe0-46b4-9ca5-63123ddb3cef",
"comment": "",
"command": "click",
"target": "xpath=//section/div/div/div[4]/div[2]/div/button",
"target": "css=#filters > div:nth-child(3) > div:nth-child(2) > div > button",
"targets": [
["css=.border-primary:nth-child(2) .fa-square", "css:finder"]
["css=.d-flex:nth-child(3) > .border-primary:nth-child(2) .svg-inline--fa", "css:finder"]
],
"value": ""
}, {
Expand All @@ -2356,23 +2365,23 @@
"id": "d7b5550d-1db8-4fa5-800f-fde753413c13",
"comment": "",
"command": "assertText",
"target": "css=.mb-4:nth-child(8) .p-2 > div > div:nth-child(1) .d-block:nth-child(2)",
"target": "css=.bg-diff > .d-block:nth-child(2)",
"targets": [
["css=.mb-4:nth-child(8) .p-2 > div > div:nth-child(1) .d-block:nth-child(2)", "css:finder"],
["xpath=//div[@id='root']/div/main/div/section/div/div/section[5]/div/div[2]/div[2]/div/div/span[2]", "xpath:idRelative"],
["xpath=//section[5]/div/div[2]/div[2]/div/div/span[2]", "xpath:position"],
["xpath=//span[contains(.,'Entity Attributes Filter')]", "xpath:innerText"]
["css=.bg-diff > .d-block:nth-child(2)", "css:finder"],
["xpath=//div[@id='filters']/section/div/div[2]/div[2]/div/div/span[2]", "xpath:idRelative"],
["xpath=//div[2]/section/div/div[2]/div[2]/div/div/span[2]", "xpath:position"],
["xpath=//span[contains(.,'Entity Attributes Filter Version 2')]", "xpath:innerText"]
],
"value": "Entity Attributes Filter Version 2"
}, {
"id": "ad797f09-746e-4778-954e-6f92ac5934ea",
"comment": "",
"command": "assertText",
"target": "css=.mb-4:nth-child(8) .p-2 > div > div:nth-child(1) .d-block:nth-child(3)",
"target": "css=.bg-diff > .d-block:nth-child(3)",
"targets": [
["css=.mb-4:nth-child(8) .p-2 > div > div:nth-child(1) .d-block:nth-child(3)", "css:finder"],
["xpath=//div[@id='root']/div/main/div/section/div/div/section[5]/div/div[2]/div[2]/div/div/span[3]", "xpath:idRelative"],
["xpath=//section[5]/div/div[2]/div[2]/div/div/span[3]", "xpath:position"]
["css=.bg-diff > .d-block:nth-child(3)", "css:finder"],
["xpath=//div[@id='filters']/section/div/div[2]/div[2]/div/div/span[3]", "xpath:idRelative"],
["xpath=//div[2]/section/div/div[2]/div[2]/div/div/span[3]", "xpath:position"]
],
"value": "Entity Attributes Filter"
}, {
Expand Down
21 changes: 6 additions & 15 deletions backend/src/integration/resources/SHIBUI-1364-4.side
Original file line number Diff line number Diff line change
Expand Up @@ -1417,23 +1417,14 @@
["xpath=//input", "xpath:position"]
],
"value": ""
}, {
"id": "e83dc2da-ad95-4e50-b969-57721eb8f1dc",
"comment": "",
"command": "click",
"target": "css=.d-flex:nth-child(5) > .border-primary:nth-child(2) .svg-inline--fa",
"targets": [
["css=.d-flex:nth-child(5) > .border-primary:nth-child(2) .svg-inline--fa", "css:finder"]
],
"value": ""
}, {
"id": "c2102a31-6e18-4d6c-8146-e23459403b65",
"comment": "",
"command": "assertText",
"target": "css=.border-primary:nth-child(2) > .bg-primary-light .mb-0:nth-child(1)",
"target": "css=.d-flex:nth-child(3) > .border-primary:nth-child(2) .mb-0:nth-child(1)",
"targets": [
["css=.border-primary:nth-child(2) > .bg-primary-light .mb-0:nth-child(1)", "css:finder"],
["xpath=//div[@id='root']/div/main/div/section/div/div/div[4]/div[2]/div/div/p", "xpath:idRelative"],
["css=.d-flex:nth-child(3) > .border-primary:nth-child(2) .mb-0:nth-child(1)", "css:finder"],
["xpath=//div[@id='filters']/div[3]/div[2]/div/div/p", "xpath:idRelative"],
["xpath=//p", "xpath:position"],
["xpath=//p[contains(.,'Entity Attributes Filter V2')]", "xpath:innerText"]
],
Expand All @@ -1442,10 +1433,10 @@
"id": "cac6c125-c81b-40af-ae21-2b717df9511e",
"comment": "",
"command": "assertText",
"target": "css=.border-primary:nth-child(3) > .bg-primary-light .mb-0:nth-child(1)",
"target": "css=.d-flex:nth-child(3) .bg-lighter .mb-0:nth-child(1)",
"targets": [
["css=.border-primary:nth-child(3) > .bg-primary-light .mb-0:nth-child(1)", "css:finder"],
["xpath=//div[@id='root']/div/main/div/section/div/div/div[4]/div[3]/div/div/p", "xpath:idRelative"],
["css=.d-flex:nth-child(3) .bg-lighter .mb-0:nth-child(1)", "css:finder"],
["xpath=//div[@id='filters']/div[3]/div[3]/div/div/p", "xpath:idRelative"],
["xpath=//div[3]/div/div/p", "xpath:position"]
],
"value": "Entity Attributes Filter"
Expand Down
38 changes: 17 additions & 21 deletions backend/src/integration/resources/SHIBUI-1732-3.side
Original file line number Diff line number Diff line change
Expand Up @@ -1325,13 +1325,9 @@
"id": "2dd7992f-ee99-45a3-ad85-20488c4bd4b1",
"comment": "",
"command": "click",
"target": "xpath=//section/div/div/div[4]/div[2]/div/button",
"target": "css=#filters > div:nth-child(3) > div:nth-child(2) > div > button",
"targets": [
["css=.border-primary:nth-child(2) .mx-auto", "css:finder"],
["xpath=(//button[@type='button'])[5]", "xpath:attributes"],
["xpath=//div[@id='root']/div/main/div/section/div/div/div[4]/div[2]/div/button", "xpath:idRelative"],
["xpath=//div[2]/div/button", "xpath:position"],
["xpath=//button[contains(.,'Compare')]", "xpath:innerText"]
["css=.border-primary:nth-child(2) .svg-inline--fa", "css:finder"]
],
"value": ""
}, {
Expand Down Expand Up @@ -1553,21 +1549,21 @@
["xpath=//ul[2]/li[2]/span", "xpath:position"]
],
"value": "bar"
},{
"id": "4ec2c493-85e4-403b-9b09-031c5728f498",
"comment": "",
"command": "open",
"target": "/api/heheheheheheheWipeout",
"targets": [],
"value": ""
}, {
"id": "e074980a-8f21-4c22-8412-c4b6fcdcd1a4",
"comment": "",
"command": "assertText",
"target": "css=body",
"targets": [],
"value": "yes, you did it"
}]
}, {
"id": "4ec2c493-85e4-403b-9b09-031c5728f498",
"comment": "",
"command": "open",
"target": "/api/heheheheheheheWipeout",
"targets": [],
"value": ""
}, {
"id": "e074980a-8f21-4c22-8412-c4b6fcdcd1a4",
"comment": "",
"command": "assertText",
"target": "css=body",
"targets": [],
"value": "yes, you did it"
}]
}],
"suites": [{
"id": "575d414c-556d-45f7-b2f2-c9971ad51348",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import javax.xml.namespace.QName;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;

Expand Down Expand Up @@ -74,10 +75,11 @@ public void addX509Certificate(edu.internet2.tier.shibboleth.admin.ui.domain.X50
this.xmlObjects.add(x509Certificate);
}

// TODO: might need to really implement this
@Nonnull
@Override
public List<X509CRL> getX509CRLs() {
return null;
return Collections.EMPTY_LIST;
}

@Nonnull
Expand Down
Loading

0 comments on commit e040ad1

Please sign in to comment.