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

[v1alpha2] E2E test for replica restart policy #639

Closed
jlewi opened this issue Jun 12, 2018 · 1 comment · Fixed by #873
Closed

[v1alpha2] E2E test for replica restart policy #639

jlewi opened this issue Jun 12, 2018 · 1 comment · Fixed by #873

Comments

@jlewi
Copy link
Contributor

jlewi commented Jun 12, 2018

We'd like to have E2E tests for the pod restart policy.

The restart policy controls whether pods get restarted based on the exit code.

A simple E2E test would just be a simple script that exits with the desired code. We could then verify that the pod is restarted or not.

Verification might be a little tricky.

A simple way to do this would be:

  1. The script can store state in shared storage

    • We can use this to restart a fixed number of times
  2. The test harness can verify that the correct state exists.

Some storage options

  • NFS
  • GCS
  • PV
  • Cloud Logging

Adding this to the 0.2.0 release but it likely will be pushed to 0.3.

@jlewi jlewi changed the title [v1alpha2] E2E test for pod restart policy [v1alpha2] E2E test for replica restart policy Jun 12, 2018
@gaocegege
Copy link
Member

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

Successfully merging a pull request may close this issue.

4 participants