Skip to content

Commit c2d48d5

Browse files
author
Rob Tjalma
authored
Merge pull request #35 from com-pas/update-docker-image-10nov
Updated Docker Image versions.
2 parents 21f7349 + 20dbdf5 commit c2d48d5

File tree

4 files changed

+14
-9
lines changed

4 files changed

+14
-9
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ docker-compose down -v
4141

4242
The option '-v' also removes the volumes created, so all data is lost with this option.
4343

44+
### Known issue with Docker Compose
45+
46+
Using the current configuration with Keycloak and OpenResty (lua-resty-session) sometimes gives an error "**state from argument does not match state restored from session**".
47+
This mostly happens after using logout or the session is expired. The login page is shown, but after login this error is shown.
48+
Just open the url [http://localhost/](http://localhost/) again and OpenSCD is shown again also being logged in.
49+
4450
## Keycloak Demo Configuration
4551
For demo purposes, a [demo Keycloak configuration](compas/keycloak/keycloak_compas_realm.json) is created which can be imported when
4652
running a Keycloak instance.

compas/docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ services:
3939
scl-data-service:
4040
labels:
4141
compas: true
42-
image: "lfenergy/compas-scl-data-service:0.8.2"
42+
image: "lfenergy/compas-scl-data-service:0.8.3"
4343
environment:
4444
- BASEX_HOST=basex
4545
- BASEX_PORT=1984
@@ -63,7 +63,7 @@ services:
6363
cim-mapping:
6464
labels:
6565
compas: true
66-
image: "lfenergy/compas-cim-mapping:0.7.4"
66+
image: "lfenergy/compas-cim-mapping:0.7.6"
6767
environment:
6868
- JWT_VERIFY_KEY=http://keycloak:8080/auth/realms/compas/protocol/openid-connect/certs
6969
- JWT_VERIFY_ISSUER=http://${COMPAS_HOSTNAME}/auth/realms/compas
@@ -81,7 +81,7 @@ services:
8181
open-scd:
8282
labels:
8383
compas: true
84-
image: "lfenergy/compas-open-scd:v0.7.1-compas-1"
84+
image: "lfenergy/compas-open-scd:v0.7.1-compas-3"
8585
healthcheck:
8686
test: ["CMD", "curl", "-f", "http://localhost/"]
8787
interval: 30s

integration-testing/TestSuite002-versions-compas.robot

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ TestCase002-30
159159
# Next select the first version from the list and compare this to the current open edited version.
160160
Click ${compas-versions-editor-selector} mwc-list > mwc-check-list-item:nth-child(1) mwc-checkbox
161161
Click ${compas-versions-editor-selector} mwc-fab[label="Compare version (current)"] > button
162-
Get Text ${dialog-selector} \#wizard-content > mwc-list > mwc-list-item:nth-child(5) >> text=Substation
163-
Click ${dialog-selector} mwc-button[slot="primaryAction"] > button
162+
Get Text ${dialog-selector} \#wizard-content > mwc-list > mwc-list-item:nth-child(3) >> text=Substation
163+
Click ${dialog-selector} mwc-button[slot="secondaryAction"] > button
164164
Wait for dialog is closed
165165

166166
TestCase002-31
@@ -195,11 +195,10 @@ TestCase002-32
195195
Click ${compas-versions-editor-selector} mwc-list > mwc-check-list-item:nth-child(1) mwc-checkbox
196196
Click ${compas-versions-editor-selector} mwc-list > mwc-check-list-item:nth-child(2) mwc-checkbox
197197
Click ${compas-versions-editor-selector} mwc-fab[label="Compare versions"] > button
198-
Get Text ${dialog-selector} \#wizard-content > mwc-list > mwc-list-item:nth-child(4) >> text=Substation
199-
Click ${dialog-selector} mwc-button[slot="primaryAction"] > button
198+
Get Text ${dialog-selector} \#wizard-content > mwc-list:nth-child(1) > mwc-list-item:nth-child(3) >> text=Substation
199+
Click ${dialog-selector} mwc-button[slot="secondaryAction"] > button
200200
Wait for dialog is closed
201201

202-
203202
TestCase002-33
204203
[Documentation] Compare versions from CoMPAS not selecting correct number of versions
205204
Initialize Versions True

integration-testing/TestSuite003-cim-mapping.robot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Open Project from CIM
1414
[Arguments] ${name} ${scltype}
1515
${promise}= Promise To Upload File ${CURDIR}/test-files/${name}.xml
1616
Open Menu Project from CIM
17-
${upload_result}= Wait For ${promise}
17+
${upload_result}= Wait For ${promise}
1818
Sleep 0.5s Wait until loading file starts.
1919
Check Title Filename ${name} ${scltype}
2020
Close Menu

0 commit comments

Comments
 (0)