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

(ChaosCenter): Extend tests for GitOps/MyHub #360

Open
Jonsy13 opened this issue Jan 10, 2022 · 0 comments
Open

(ChaosCenter): Extend tests for GitOps/MyHub #360

Jonsy13 opened this issue Jan 10, 2022 · 0 comments

Comments

@Jonsy13
Copy link
Collaborator

Jonsy13 commented Jan 10, 2022

The current test suite contains tests for GitOps/MyHub using the Actual Github server.

There are a few issues with it -

  • We are testing using an actual GitHub Repository (Public), but we can't alter the contents of our repo always for testing.
  • We can't test GitOps from the backend
    • Making a change in the GitHub repo should trigger a workflow in ChaosCenter.
  • Currently, we don't have tests for testing private/ssh access, we need to generate ssh keys which might not be required if we use a custom mock-server like GitHub.

Tests requirements -

  • We need to add tests for myhub covering private/ssh access for git. (For public access, the tests are present, which can be taken as reference)
  • We need tests for GitOps(public/private/ssh).

Some resources which can help for automating the tests in pipeline
https://github.com/isomorphic-git/git-http-mock-server &
https://github.com/substack/git-http-backend

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

1 participant