Skip to content

PVC integration tests: TestBackup and TestRegularWorkspaceTasks and TestWorkspaceEnableAndDisablePVC #12620

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

Merged
merged 6 commits into from
Sep 5, 2022

Conversation

jenting
Copy link
Contributor

@jenting jenting commented Sep 2, 2022

Description

Add PVC feature flag to TestBackup

  • Create a fresh new workspace with Git initializer
  • Write a foobar.txt file
  • Stop the workspace
  • Recreate the workspace
  • Make sure the foobar.txt file exists

Add PVC feature flag to TestRegularWorkspaceTasks

  • Create a fresh new workspace with Git initializer and Gitpod tasks
  • Make sure each task generated file exists

Add PVC integration test to TestWorkspaceEnableAndDisablePVC

  • Open a fresh new workspace
  • Write a foobar.txt file
  • Stop the workspace
  • Relaunch the workspace with the PVC feature flag
  • Make sure the foobar.txt file exists
  • Stop the workspace
  • Relaunch the workspace without the PVC feature flag
  • Make sure the foobar.txt file exists

Related Issue(s)

#12497

How to test

cd test

go test  -run ^TestBackup$ github.com/gitpod-io/gitpod/test/tests/components/ws-manager -count=1 -namespace=default -kubeconfig=/home/gitpod/.kube/config -v

go test  -run ^TestRegularWorkspaceTasks$ github.com/gitpod-io/gitpod/test/tests/components/ws-manager -count=1 -namespace=default -kubeconfig=/home/gitpod/.kube/config -v

go test  -run ^TestWorkspaceEnableAndDisablePVC$ github.com/gitpod-io/gitpod/test/tests/components/ws-manager -count=1 -namespace=default -kubeconfig=/home/gitpod/.kube/config -v

Release Notes

None

Documentation

Werft options:

  • /werft with-preview

@jenting jenting changed the title PVC integration tests: TestBackup PVC integration tests: TestBackup and TestRegularWorkspaceTasks Sep 3, 2022
@jenting jenting changed the title PVC integration tests: TestBackup and TestRegularWorkspaceTasks PVC integration tests: TestBackup and TestRegularWorkspaceTasks and TestWorkspaceEnableAndDisablePVC Sep 3, 2022
@utam0k
Copy link
Contributor

utam0k commented Sep 5, 2022

Waiting for https://werft.gitpod-dev.com/job/gitpod-custom-jenting-12497.0

@utam0k
Copy link
Contributor

utam0k commented Sep 5, 2022

@jenting I made a commend, but other things look good to me.

Copy link
Contributor

@utam0k utam0k left a comment

Choose a reason for hiding this comment

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

Thanks!

@roboquat roboquat merged commit 06d501b into main Sep 5, 2022
@roboquat roboquat deleted the jenting/12497 branch September 5, 2022 07:08
@jenting jenting restored the jenting/12497 branch September 5, 2022 07:11
@jenting jenting deleted the jenting/12497 branch September 5, 2022 07:11
@roboquat roboquat added deployed: workspace Workspace team change is running in production deployed Change is completely running in production labels Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployed: workspace Workspace team change is running in production deployed Change is completely running in production release-note-none size/XL team: workspace Issue belongs to the Workspace team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants