Skip to content

PVC integration tests: TestBackup and TestRegularWorkspaceTasks and TestWorkspaceEnableAndDisablePVC#12620

Merged
roboquat merged 6 commits into
mainfrom
jenting/12497
Sep 5, 2022
Merged

PVC integration tests: TestBackup and TestRegularWorkspaceTasks and TestWorkspaceEnableAndDisablePVC#12620
roboquat merged 6 commits into
mainfrom
jenting/12497

Conversation

@jenting

@jenting jenting commented Sep 2, 2022

Copy link
Copy Markdown
Contributor

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

Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
…asks

Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
@jenting jenting changed the title PVC integration tests: TestBackup PVC integration tests: TestBackup and TestRegularWorkspaceTasks Sep 3, 2022
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
@jenting jenting changed the title PVC integration tests: TestBackup and TestRegularWorkspaceTasks PVC integration tests: TestBackup and TestRegularWorkspaceTasks and TestWorkspaceEnableAndDisablePVC Sep 3, 2022
Comment thread test/pkg/integration/integration.go Outdated
@utam0k

utam0k commented Sep 5, 2022

Copy link
Copy Markdown
Contributor

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

Comment thread test/pkg/integration/integration.go Outdated
@utam0k

utam0k commented Sep 5, 2022

Copy link
Copy Markdown
Contributor

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

Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>

@utam0k utam0k left a comment

Copy link
Copy Markdown
Contributor

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