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

Add basic tests for cloud shell #90

Merged
merged 11 commits into from
Jun 5, 2020
Merged

Add basic tests for cloud shell #90

merged 11 commits into from
Jun 5, 2020

Conversation

flacatus
Copy link
Collaborator

@flacatus flacatus commented Jun 3, 2020

Signed-off-by: flacatus flacatus@redhat.com

What does this PR do?

This PR contains necessary files to start to use e2e tests for Che-Workspace-operator in Prow CI. The tests includes:

  • Setup ginkgo (testing golang framework)
  • Deploy plugin registry
  • Create roles and routes in OCP cluster
  • Deploy Workspace Operator
  • Start cloud shell dev workspaces

This tests will be part of PROW CI running in latest stable Openshift and nightly version. More info about PROW: https://ci-operator-configresolver-ui-ci.apps.ci.l2s4.p1.openshiftapps.com/ and
https://docs.google.com/document/d/1SQ_qlkcplqhe8h6ONXdgBr7YUVbs4oRSj4ISl3gpLW4/edit

What issues does this PR fix or reference?

eclipse-che/che#16667

Is it tested? How?

Signed-off-by: flacatus <flacatus@redhat.com>
@flacatus
Copy link
Collaborator Author

flacatus commented Jun 3, 2020

cc @rhopp

Copy link
Member

@sleshchenko sleshchenko left a comment

Choose a reason for hiding this comment

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

  1. I have the following restructure proposal for source code sleshchenko@c8941ab

  2. I think we should test command-line-terminal instead of cloud-shell

test/e2e/pkg/tests/cloud_shell_tests.go Outdated Show resolved Hide resolved
test/e2e/pkg/tests/cloud_shell_tests.go Outdated Show resolved Hide resolved
test/e2e/pkg/workspaces/client.go Outdated Show resolved Hide resolved
test/e2e/cmd/workspaces_test.go Outdated Show resolved Hide resolved
test/e2e/cmd/workspaces_test.go Outdated Show resolved Hide resolved
test/e2e/pkg/workspaces/client.go Outdated Show resolved Hide resolved
test/e2e/pkg/workspaces/client.go Outdated Show resolved Hide resolved
test/e2e/pkg/workspaces/oc.go Outdated Show resolved Hide resolved
test/e2e/pkg/workspaces/oc.go Outdated Show resolved Hide resolved
test/e2e/pkg/workspaces/workspaces.go Outdated Show resolved Hide resolved
test/e2e/cmd/workspaces_test.go Outdated Show resolved Hide resolved
test/e2e/pkg/workspaces/client.go Outdated Show resolved Hide resolved
test/e2e/pkg/workspaces/deserialize.go Outdated Show resolved Hide resolved
test/e2e/pkg/workspaces/deserialize.go Outdated Show resolved Hide resolved
test/e2e/pkg/workspaces/deserialize.go Outdated Show resolved Hide resolved
test/e2e/pkg/workspaces/oc.go Outdated Show resolved Hide resolved
test/e2e/pkg/workspaces/util.go Outdated Show resolved Hide resolved
test/e2e/pkg/workspaces/workspaces.go Outdated Show resolved Hide resolved
test/e2e/pkg/workspaces/workspaces.go Outdated Show resolved Hide resolved
test/e2e/pkg/workspaces/workspaces.go Outdated Show resolved Hide resolved
Signed-off-by: flacatus <flacatus@redhat.com>
Signed-off-by: flacatus <flacatus@redhat.com>
Signed-off-by: flacatus <flacatus@redhat.com>
Signed-off-by: flacatus <flacatus@redhat.com>
Signed-off-by: flacatus <flacatus@redhat.com>
Signed-off-by: flacatus <flacatus@redhat.com>
Signed-off-by: flacatus <flacatus@redhat.com>
Signed-off-by: flacatus <flacatus@redhat.com>
Copy link
Member

@sleshchenko sleshchenko left a comment

Choose a reason for hiding this comment

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

Great job!

Please consider applying the minor suggested changes sleshchenko@2256850
And we need to be careful when continuing a program when a fatal error occurs.

test/e2e/cmd/workspaces_test.go Show resolved Hide resolved
test/e2e/cmd/workspaces_test.go Outdated Show resolved Hide resolved
test/e2e/cmd/workspaces_test.go Outdated Show resolved Hide resolved
test/e2e/cmd/workspaces_test.go Show resolved Hide resolved
test/e2e/pkg/metadata/metadata.go Show resolved Hide resolved
test/e2e/cmd/workspaces_test.go Outdated Show resolved Hide resolved
test/e2e/pkg/deploy/controller.go Show resolved Hide resolved
test/e2e/pkg/client/pod.go Outdated Show resolved Hide resolved
Signed-off-by: flacatus <flacatus@redhat.com>
@flacatus flacatus requested a review from JPinkney June 4, 2020 08:25
kubeClient *kubernetes.Clientset
}

// NewCodeReady creates C, a workspaces used to expose common testing functions.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// NewCodeReady creates C, a workspaces used to expose common testing functions.
// NewK8sClient creates kubernetes client wrapper with helper functions and direct access to k8s go client

}
return false, nil
}
}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
}
}

Signed-off-by: flacatus <flacatus@redhat.com>
@flacatus flacatus merged commit 19ebfea into devfile:master Jun 5, 2020
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.

4 participants