Sign inSign up

gunet/simple-puppeteer

By gunet

•Updated almost 2 years ago

Image
0

1.1K

gunet/simple-puppeteer repository overview

⁠References

GUNet Docker image⁠

⁠Usage

  • Environment variables
    • CAS_USER: Username (default gunetdemo)
    • CAS_PASSWORD: Password (default gunetdemo)
    • CAS_LANG: The language in CAS login page. Can be one of en or el
    • all_tests.sh script:
      • SCRIPT_CAS_SERVER: The CAS server against which to run the cas scenario. Default value: https://host.docker.internal:8443/cas
      • SCRIPT_SAML_SP: The SAML SP against which to run the saml scenario. Default value: http://host.docker.internal:8080
      • SCRIPT_OIDC_SP: The OIDC SP against which to run the oidc scenario. Defalut value: http://host.docker.internal:3000
  • Show module version: docker run --rm ghcr.io/gunet/puppeteer npm list
  • General Run: docker run -it --cap-add=SYS_ADMIN --rm ghcr.io/gunet/simple-puppeteer node --unhandled-rejections=strict <scenario + args>
  • Specific scenarios:
    • cas: Check simple CAS login
      • Run: ./scenarios/cas/script.js <SSO BASE URL>
    • oidc: Check OIDC login
      • Run: ./scenarios/oidc/script.js <OIDC-TESTER BASE URL>
    • saml: Check SAML login
      • Run: ./scenarios/saml/script.js <SAML-SP BASE URL>
  • Arguments
    • <SSO BASE URL: An example might be https://sso.uoi.gr or https://worker-01.dev.gunet.gr:8443/cas (in the case of simple-cas)
  • Automatic testig with docker compose stack: docker compose -f docker-compose.yaml -f docker-compose.testers.yaml -f docker-compose.puppeteer.yaml up --exit-code-from simple-puppeteer --attach simple-puppeteer

⁠Scripts

  • run_test.sh: Inherited from gunet/puppeteer. Run a specific scenario against a server: docker run -it --cap-add=SYS_ADMIN --rm ghcr.io/gunet/simple-puppeteer bash run_test.sh cas <server URL>
  • all_tests.sh: Run all three SSO tests (cas, saml, oidc) utilizing the SCRIPT_* environment variables. Usage: docker run -it --cap-add=SYS_ADMIN --rm ghcr.io/gunet/simple-puppeteer bash all_tests.sh with -e <var>=<value> for the SCRIPT_* environment variables and possibly -e CAS_USER=<username> -e CAS_PASSWORD=<password>.

⁠Size

  • Disk size: 1.17 GB

Tag summary

Content type

Image

Digest

sha256:7c44f62f5…

Size

570.6 MB

Last updated

almost 2 years ago

docker pull gunet/simple-puppeteer