Skip to content

Commit 7d80e07

Browse files
author
Niraj Acharya
committed
test: add test for mfa
1 parent 89782e0 commit 7d80e07

14 files changed

Lines changed: 3249 additions & 24 deletions

File tree

.drone.star

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,29 @@ config = {
243243
"IDP_ACCESS_TOKEN_EXPIRATION": 30,
244244
},
245245
},
246+
"keycloak": {
247+
"earlyFail": True,
248+
"skip": False,
249+
"features": [
250+
"specs/keycloak/mfa.spec.ts",
251+
],
252+
"extraServerEnvironment": {
253+
"PROXY_AUTOPROVISION_ACCOUNTS": "true",
254+
"PROXY_ROLE_ASSIGNMENT_DRIVER": "oidc",
255+
"OCIS_OIDC_ISSUER": "https://keycloak:8443/realms/oCIS",
256+
"PROXY_OIDC_REWRITE_WELLKNOWN": "true",
257+
"WEB_OIDC_CLIENT_ID": "web",
258+
"PROXY_USER_OIDC_CLAIM": "preferred_username",
259+
"PROXY_USER_CS3_CLAIM": "username",
260+
"OCIS_ADMIN_USER_ID": "",
261+
"OCIS_EXCLUDE_RUN_SERVICES": "idp",
262+
"GRAPH_ASSIGN_DEFAULT_USER_ROLE": "false",
263+
"GRAPH_USERNAME_MATCH": "none",
264+
"KEYCLOAK_DOMAIN": "keycloak:8443",
265+
"OCIS_MFA_ENABLED": "true",
266+
"WEB_OIDC_SCOPE": "openid profile email acr",
267+
},
268+
},
246269
},
247270
"build": True,
248271
}
@@ -1973,7 +1996,7 @@ def keycloakService():
19731996
},
19741997
"commands": [
19751998
"mkdir -p /opt/keycloak/data/import",
1976-
"cp tests/drone/ocis_keycloak/ocis-ci-realm.dist.json /opt/keycloak/data/import/oCIS-realm.json",
1999+
"cp tests/drone/ocis_keycloak/ocis-mfa-ci-realm.dist.json /opt/keycloak/data/import/oCIS-realm.json",
19772000
"/opt/keycloak/bin/kc.sh start-dev --proxy-headers xforwarded --spi-connections-http-client-default-disable-trust-manager=true --import-realm --health-enabled=true",
19782001
],
19792002
"volumes": [

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@
6767
"git-repo-info": "2.1.1",
6868
"globals": "^16.5.0",
6969
"happy-dom": "20.0.10",
70+
"jimp": "^1.6.0",
7071
"jsdom": "^27.2.0",
72+
"jsqr": "^1.4.0",
7173
"license-checker-rseidelsohn": "4.4.2",
7274
"multiple-cucumber-html-reporter": "^3.9.3",
7375
"node-fetch": "3.3.2",
@@ -79,6 +81,7 @@
7981
"rollup-plugin-gzip": "^4.1.1",
8082
"rollup-plugin-visualizer": "6.0.5",
8183
"simple-git": "3.30.0",
84+
"speakeasy": "^2.0.0",
8285
"ts-node": "10.9.2",
8386
"tslib": "2.8.1",
8487
"typescript": "5.9.3",

pnpm-lock.yaml

Lines changed: 562 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)