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

feat: add methods to handle jobs in terratest #940

Merged
merged 1 commit into from
Jul 16, 2021

Conversation

cyril-corbon
Copy link
Contributor

@cyril-corbon cyril-corbon commented Jun 26, 2021

This PR is for adding Job to Terratest.

implement :

  • ListJob
  • GetJob
  • WaitUntilJobSucceed

add job_test too

@cyril-corbon cyril-corbon force-pushed the feat/add-job-methods branch 2 times, most recently from 41f7dd2 to ccaca8b Compare June 26, 2021 14:26
modules/k8s/errors.go Outdated Show resolved Hide resolved
modules/k8s/job.go Outdated Show resolved Hide resolved
@cyril-corbon cyril-corbon force-pushed the feat/add-job-methods branch from ccaca8b to 4c177c8 Compare July 3, 2021 11:21
Copy link
Contributor

@yorinasub17 yorinasub17 left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution! This mostly LGTM, but I had one question about IsJobSucceeded

modules/k8s/job.go Outdated Show resolved Hide resolved
modules/k8s/job.go Outdated Show resolved Hide resolved
modules/k8s/job.go Outdated Show resolved Hide resolved
@cyril-corbon cyril-corbon force-pushed the feat/add-job-methods branch from 4c177c8 to a6306fe Compare July 16, 2021 06:33
@cyril-corbon cyril-corbon force-pushed the feat/add-job-methods branch from a6306fe to 09c7e1c Compare July 16, 2021 06:49
@cyril-corbon cyril-corbon requested a review from yorinasub17 July 16, 2021 06:52
Copy link
Contributor

@yorinasub17 yorinasub17 left a comment

Choose a reason for hiding this comment

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

Updates LGTM! I'll kick off a regression build and if that passes, we can merge this in!

@yorinasub17
Copy link
Contributor

The overall build failed, but the relevant kubernetes tests passed, so we can merge this in. Thanks for your contribution!

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.

3 participants