Skip to content

Add workspace integration tests for Git LFS support #9748

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 1 commit into from
May 4, 2022

Conversation

jenting
Copy link
Contributor

@jenting jenting commented May 4, 2022

Description

Add integration test for Git LFS support.

Related Issue(s)

Fixes #8122

How to test

# Get the user token from secret
USERNAME=`kubectl get secret integration-test-user -n werft -ojsonpath={.data.username} | base64 --decode`
USER_TOKEN=`kubectl get secret integration-test-user -n werft -ojsonpath={.data.token} | base64 --decode`

./dev/preview/install-k3s-kubeconfig.sh
cd test
USER_TOKEN=$USER_TOKEN go test -v ./... \
  -run TestGitLFSSupport \
  -username=$USERNAME \
  -kubeconfig=/home/gitpod/.kube/config

Release Notes

None

Documentation

N/A

@jenting jenting changed the title Add integration tests for Git LFS support Add workspace integration tests for Git LFS support May 4, 2022
@jenting jenting requested a review from a team May 4, 2022 08:51
@github-actions github-actions bot added the team: workspace Issue belongs to the Workspace team label May 4, 2022
@princerachit
Copy link
Contributor

Tests pass

gitpod /workspace/gitpod/test (jenting/add-integration-test-for-8122) $ USER_TOKEN=$USER_TOKEN go test -v ./... \
>   -run TestGitLFSSupport \
>   -username=$USERNAME \
>   -kubeconfig=/home/gitpod/.kube/config

?       github.com/gitpod-io/gitpod/test/pkg/agent/daemon       [no test files]
?       github.com/gitpod-io/gitpod/test/pkg/agent/daemon/api   [no test files]
?       github.com/gitpod-io/gitpod/test/pkg/agent/workspace    [no test files]
?       github.com/gitpod-io/gitpod/test/pkg/agent/workspace/api        [no test files]
?       github.com/gitpod-io/gitpod/test/pkg/integration        [no test files]
?       github.com/gitpod-io/gitpod/test/pkg/integration/common [no test files]
testing: warning: no tests to run
PASS
ok      github.com/gitpod-io/gitpod/test/tests/components/content-service       3.090s [no tests to run]
testing: warning: no tests to run
PASS
ok      github.com/gitpod-io/gitpod/test/tests/components/database      3.041s [no tests to run]
testing: warning: no tests to run
PASS
ok      github.com/gitpod-io/gitpod/test/tests/components/image-builder 3.135s [no tests to run]
testing: warning: no tests to run
PASS
ok      github.com/gitpod-io/gitpod/test/tests/components/server        3.096s [no tests to run]
testing: warning: no tests to run
PASS
ok      github.com/gitpod-io/gitpod/test/tests/components/ws-daemon     2.950s [no tests to run]
testing: warning: no tests to run
PASS
ok      github.com/gitpod-io/gitpod/test/tests/components/ws-manager    3.191s [no tests to run]
testing: warning: no tests to run
PASS
ok      github.com/gitpod-io/gitpod/test/tests/ide/jetbrains    3.051s [no tests to run]
testing: warning: no tests to run
PASS
ok      github.com/gitpod-io/gitpod/test/tests/ide/vscode       2.985s [no tests to run]
=== RUN   TestGitLFSSupport
=== RUN   TestGitLFSSupport/GitLFSSupport
=== RUN   TestGitLFSSupport/GitLFSSupport/it_can_open_a_repo_with_Git_LFS_support
--- PASS: TestGitLFSSupport (27.20s)
    --- PASS: TestGitLFSSupport/GitLFSSupport (27.20s)
        --- PASS: TestGitLFSSupport/GitLFSSupport/it_can_open_a_repo_with_Git_LFS_support (27.20s)
PASS
ok      github.com/gitpod-io/gitpod/test/tests/workspace        30.119s
?       github.com/gitpod-io/gitpod/test/tests/workspace/common [no test files]

@roboquat roboquat merged commit 72dceff into main May 4, 2022
@roboquat roboquat deleted the jenting/add-integration-test-for-8122 branch May 4, 2022 11:24
@roboquat roboquat added deployed: workspace Workspace team change is running in production deployed Change is completely running in production labels May 4, 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/M team: workspace Issue belongs to the Workspace team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add integration test for Git LFS
3 participants