Skip to content

Commit

Permalink
Try to run all tests
Browse files Browse the repository at this point in the history
  • Loading branch information
feloy committed Sep 26, 2021
1 parent 4a471a7 commit 666a05f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 23 deletions.
28 changes: 7 additions & 21 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ env:
GITHUB_SHA: ${{ github.sha }}
IBM_CLOUD_API_KEY: ${{ secrets.IBM_CLOUD_API_KEY }}
IBM_CLOUD_REGION: eu-de
IKS_CLUSTER: ${{ secrets.IBM_CLOUD_CLUSTER }}
IBM_CLOUD_RESOURCE_GROUP: odo-tests-group
IKS_CLUSTER: ${{ secrets.IBM_CLOUD_OPENSHIFT_CLUSTER }}
IBM_CLOUD_RESOURCE_GROUP: odo-phmartin-openshift-group

jobs:
setup-build-test:
Expand Down Expand Up @@ -55,28 +55,14 @@ jobs:
- name: Connect to Openshift cluster
run: |
ibmcloud ks cluster config --cluster $IKS_CLUSTER --admin
ENDPOINT="$(kubectl config view -o jsonpath='{range .clusters[0]}{.cluster.server}{end}')"
oc login -u apikey -p ${IBM_CLOUD_API_KEY} --server=${ENDPOINT}
- name: Run Integration tests
run: |
TEST_EXEC_NODES=8 make test-integration
- name: Run Integration Devfile tests
run: |
TEST_EXEC_NODES=8 make test-integration-devfile
- name: Run Login/logout tests
run: |
TEST_EXEC_NODES=8 make test-cmd-login-logout
- name: Run Project tests
run: |
TEST_EXEC_NODES=8 make test-cmd-project
- name: Run e2e devfile tests
run: |
TEST_EXEC_NODES=8 make test-e2e-devfile
- name: Run Operator Hub tests
run: |
TEST_EXEC_NODES=8 make test-operator-hub
make test-cmd-login-logout
make test-cmd-project
make test-e2e-devfile
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ else
endif

# Slow spec threshold for ginkgo tests. After this time (in second), ginkgo marks test as slow
SLOW_SPEC_THRESHOLD := 120
SLOW_SPEC_THRESHOLD := 300

# Env variable GINKGO_TEST_ARGS is used to get control over enabling ginkgo test flags against each test target run.
# For example:
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/loginlogout/cmd_login_logout_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ var _ = Describe("odo login and logout command tests", func() {
})

Context("when running login tests", func() {
It("should successful with correct credentials and fails with incorrect token", func() {
XIt("should successful with correct credentials and fails with incorrect token", func() {
// skip if requested
skipLogin := os.Getenv("SKIP_USER_LOGIN_TESTS")
if skipLogin == "true" {
Expand Down

0 comments on commit 666a05f

Please sign in to comment.