Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automate integration tests #123

Open
skeet70 opened this issue Aug 11, 2022 · 2 comments
Open

Automate integration tests #123

skeet70 opened this issue Aug 11, 2022 · 2 comments

Comments

@skeet70
Copy link
Member

skeet70 commented Aug 11, 2022

Our current integration test suite is large and comprehensive but is only runnable manually. OSS folks who open PRs can't run them and it's a big process for us to run them manually. Make it possible to trigger integration tests.

For integration tests to run:

  • ironcore-id needs to be running locally with its postgres DB
  • project, assertion key, and segment info that is valid on that ironcore-id instance needs to be in integration/projects/project.json (can probably be canned DB scripts)
  • https certs for dev1.scrambledbits.org need to be up to date (automating this is the hardest part)
  • yarn start needs to run the integration app
  • yarn nightwatch can then run the suite, though that requires chrome to be installed so chromedriver works

A possible workaround to the https certs issue would be to make the integration app not require https, but the scope of that is unknown at the time of writing this ticket.

@skeet70
Copy link
Member Author

skeet70 commented Oct 5, 2022

"desiredCapabilities" : {
  "browserName" : "firefox",
  "acceptInsecureCerts" : true
}

It's possible that using this setting we can not care about any of the cert stuff anymore.

@BobWall23
Copy link
Member

Possibly start chrome in a mode that accepts untrusted certs. If that wouldn't work, could potentially install a CA and generate certs when running the tests.

Why will it still be hard? No one knows, but they know it will be.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants