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

Add E2E tests #94

Merged
merged 1 commit into from May 28, 2022
Merged

Add E2E tests #94

merged 1 commit into from May 28, 2022

Conversation

infiniteregrets
Copy link
Member

This PR adds the following E2E tests:

  • built with the latest agent image
    docker build -t test . --file mirrord-agent/Dockerfile
    minikube load image test:latest
  • test_complete_node_api: sends four different requests to the node server present in node-e2e
    GET, POST, PUT, DELETE. The node process writes to it's stdout which is then checked and verified by the test. Everything runs in the default namespace. The test also verifies the agent job and pod are cleaned up.
  • test_different_pod_in_cluster: A PUT request is sent to a different pod in the cluster and asserted that no action corresponding to the request takes place.
  • test_good_agent_namespace: A new namespace is created and it is specified as the agent's namespace and four different requests are sent to verify the server writes to its stdout.
  • test_nonexistent_agent_namespace: A nonexistent namespace is specified as agent's namespace and it is asserted that the process panics.
  • test_good_pod_namespace: A new namespace is created and it is specified as the pod's namespace and four different requests are sent to verify the server writes to its stdout.
  • test_bad_pod_namespace: A nonexistent namespace is specified as pod's namespace and it is asserted that the process panics.

Copy link
Member

@aviramha aviramha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks

Cargo.toml Outdated Show resolved Hide resolved
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

Successfully merging this pull request may close these issues.

None yet

3 participants