Created
September 21, 2023 09:06
-
-
Save bartoszmajsak/cbc75b4230e9ffe3515fda2a59554d4d to your computer and use it in GitHub Desktop.
Dscinitialization Test DSCInitialization controller
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GOROOT=/home/bartek/.gvm/gos/go1.19.12 #gosetup | |
GOPATH=/home/bartek/go #gosetup | |
/home/bartek/.gvm/gos/go1.19.12/bin/go test -c -o /home/bartek/.cache/JetBrains/GoLand2023.2/tmp/GoLand/___go_test_github_com_opendatahub_io_opendatahub_operator_v2_controllers_dscinitialization.test github.com/opendatahub-io/opendatahub-operator/v2/controllers/dscinitialization #gosetup | |
/home/bartek/.gvm/gos/go1.19.12/bin/go tool test2json -t /home/bartek/.cache/JetBrains/GoLand2023.2/tmp/GoLand/___go_test_github_com_opendatahub_io_opendatahub_operator_v2_controllers_dscinitialization.test -test.v -test.paniconexit0 | |
=== RUN TestAPIs | |
Running Suite: Controller Suite - /home/bartek/code/rhods/opendatahub-operator/controllers/dscinitialization | |
============================================================================================================ | |
Random Seed: 1695287000 | |
Will run 4 of 4 specs | |
------------------------------ | |
• [FAILED] [10.042 seconds] | |
Dscinitialization Test DSCInitialization controller [It] Test if all the resources are created | |
/home/bartek/code/rhods/opendatahub-operator/controllers/dscinitialization/dscinitialization_test.go:22 | |
Timeline >> | |
STEP: By creating a new DSC instance @ 09/21/23 11:03:26.329 | |
2023-09-21T11:03:26+02:00 INFO Starting EventSource {"controller": "dscinitialization", "controllerGroup": "dscinitialization.opendatahub.io", "controllerKind": "DSCInitialization", "source": "kind source: *v1.DSCInitialization"} | |
2023-09-21T11:03:26+02:00 INFO Starting EventSource {"controller": "dscinitialization", "controllerGroup": "dscinitialization.opendatahub.io", "controllerKind": "DSCInitialization", "source": "kind source: *v1.Namespace"} | |
2023-09-21T11:03:26+02:00 INFO Starting EventSource {"controller": "dscinitialization", "controllerGroup": "dscinitialization.opendatahub.io", "controllerKind": "DSCInitialization", "source": "kind source: *v1.Secret"} | |
2023-09-21T11:03:26+02:00 INFO Starting EventSource {"controller": "dscinitialization", "controllerGroup": "dscinitialization.opendatahub.io", "controllerKind": "DSCInitialization", "source": "kind source: *v1.ConfigMap"} | |
2023-09-21T11:03:26+02:00 INFO Starting EventSource {"controller": "dscinitialization", "controllerGroup": "dscinitialization.opendatahub.io", "controllerKind": "DSCInitialization", "source": "kind source: *v1.NetworkPolicy"} | |
2023-09-21T11:03:26+02:00 INFO Starting EventSource {"controller": "dscinitialization", "controllerGroup": "dscinitialization.opendatahub.io", "controllerKind": "DSCInitialization", "source": "kind source: *v1.Role"} | |
2023-09-21T11:03:26+02:00 INFO Starting EventSource {"controller": "dscinitialization", "controllerGroup": "dscinitialization.opendatahub.io", "controllerKind": "DSCInitialization", "source": "kind source: *v1.RoleBinding"} | |
2023-09-21T11:03:26+02:00 INFO Starting EventSource {"controller": "dscinitialization", "controllerGroup": "dscinitialization.opendatahub.io", "controllerKind": "DSCInitialization", "source": "kind source: *v1.ClusterRole"} | |
2023-09-21T11:03:26+02:00 INFO Starting EventSource {"controller": "dscinitialization", "controllerGroup": "dscinitialization.opendatahub.io", "controllerKind": "DSCInitialization", "source": "kind source: *v1.ClusterRoleBinding"} | |
2023-09-21T11:03:26+02:00 INFO Starting EventSource {"controller": "dscinitialization", "controllerGroup": "dscinitialization.opendatahub.io", "controllerKind": "DSCInitialization", "source": "kind source: *v1.Deployment"} | |
2023-09-21T11:03:26+02:00 INFO Starting EventSource {"controller": "dscinitialization", "controllerGroup": "dscinitialization.opendatahub.io", "controllerKind": "DSCInitialization", "source": "kind source: *v1.ReplicaSet"} | |
2023-09-21T11:03:26+02:00 INFO Starting EventSource {"controller": "dscinitialization", "controllerGroup": "dscinitialization.opendatahub.io", "controllerKind": "DSCInitialization", "source": "kind source: *v1.Pod"} | |
2023-09-21T11:03:26+02:00 INFO Starting EventSource {"controller": "dscinitialization", "controllerGroup": "dscinitialization.opendatahub.io", "controllerKind": "DSCInitialization", "source": "kind source: *v1.ServiceAccount"} | |
2023-09-21T11:03:26+02:00 INFO Starting EventSource {"controller": "dscinitialization", "controllerGroup": "dscinitialization.opendatahub.io", "controllerKind": "DSCInitialization", "source": "kind source: *v1.Service"} | |
2023-09-21T11:03:26+02:00 INFO Starting Controller {"controller": "dscinitialization", "controllerGroup": "dscinitialization.opendatahub.io", "controllerKind": "DSCInitialization"} | |
2023-09-21T11:03:26+02:00 INFO Starting workers {"controller": "dscinitialization", "controllerGroup": "dscinitialization.opendatahub.io", "controllerKind": "DSCInitialization", "worker count": 1} | |
2023-09-21T11:03:26+02:00 INFO controllers.DSCInitialization Reconciling DSCInitialization. {"DSCInitialization": "", "Request.Name": "test-dsci"} | |
2023-09-21T11:03:26+02:00 INFO controllers.DSCInitialization Creating namespace {"name": "test-application-ns"} | |
2023-09-21T11:03:26+02:00 INFO controllers.DSCInitialization Not found monitoring namespace {"name": "test-monitoring-ns"} | |
2023-09-21T11:03:26+02:00 INFO controllers.DSCInitialization Monitoring enabled, won't apply changes {"cluster": "ODH Mode"} | |
2023-09-21T11:03:26+02:00 INFO controllers.DSCInitialization Reconciling DSCInitialization. {"DSCInitialization": "", "Request.Name": "test-dsci"} | |
2023-09-21T11:03:26+02:00 INFO controllers.DSCInitialization Monitoring enabled, won't apply changes {"cluster": "ODH Mode"} | |
STEP: Checking if the application namespace exists @ 09/21/23 11:03:31.356 | |
[FAILED] in [It] - /home/bartek/code/rhods/opendatahub-operator/controllers/dscinitialization/dscinitialization_test.go:59 @ 09/21/23 11:03:31.358 | |
2023-09-21T11:03:31+02:00 INFO controllers.DSCInitialization Reconciling DSCInitialization. {"DSCInitialization": "", "Request.Name": "test-dsci"} | |
2023-09-21T11:03:31+02:00 INFO controllers.DSCInitialization Reconciling DSCInitialization. {"DSCInitialization": "", "Request.Name": "test-dsci"} | |
2023-09-21T11:03:31+02:00 INFO controllers.DSCInitialization Reconciling DSCInitialization. {"DSCInitialization": "", "Request.Name": "test-dsci"} | |
<< Timeline | |
[FAILED] Expected | |
<bool>: false | |
to be true | |
In [It] at: /home/bartek/code/rhods/opendatahub-operator/controllers/dscinitialization/dscinitialization_test.go:59 @ 09/21/23 11:03:31.358 | |
------------------------------ | |
•• | |
------------------------------ | |
• [FAILED] [15.016 seconds] | |
Dscinitialization Test DSCInitialization controller [It] Test behaviour when namespace already exists | |
/home/bartek/code/rhods/opendatahub-operator/controllers/dscinitialization/dscinitialization_test.go:240 | |
Timeline >> | |
2023-09-21T11:04:11+02:00 INFO controllers.DSCInitialization Reconciling DSCInitialization. {"DSCInitialization": "", "Request.Name": "test-dsci"} | |
2023-09-21T11:04:11+02:00 INFO controllers.DSCInitialization Monitoring enabled, won't apply changes {"cluster": "ODH Mode"} | |
2023-09-21T11:04:11+02:00 INFO controllers.DSCInitialization Reconciling DSCInitialization. {"DSCInitialization": "", "Request.Name": "test-dsci"} | |
2023-09-21T11:04:11+02:00 INFO controllers.DSCInitialization Monitoring enabled, won't apply changes {"cluster": "ODH Mode"} | |
[FAILED] in [It] - /home/bartek/code/rhods/opendatahub-operator/controllers/dscinitialization/dscinitialization_test.go:291 @ 09/21/23 11:04:16.418 | |
2023-09-21T11:04:16+02:00 INFO controllers.DSCInitialization Reconciling DSCInitialization. {"DSCInitialization": "", "Request.Name": "test-dsci"} | |
<< Timeline | |
[FAILED] Expected | |
<bool>: false | |
to be true | |
In [It] at: /home/bartek/code/rhods/opendatahub-operator/controllers/dscinitialization/dscinitialization_test.go:291 @ 09/21/23 11:04:16.418 | |
------------------------------ | |
Summarizing 2 Failures: | |
[FAIL] Dscinitialization Test DSCInitialization controller [It] Test if all the resources are created | |
/home/bartek/code/rhods/opendatahub-operator/controllers/dscinitialization/dscinitialization_test.go:59 | |
[FAIL] Dscinitialization Test DSCInitialization controller [It] Test behaviour when namespace already exists | |
/home/bartek/code/rhods/opendatahub-operator/controllers/dscinitialization/dscinitialization_test.go:291 | |
Ran 4 of 4 Specs in 60.564 seconds | |
FAIL! -- 2 Passed | 2 Failed | 0 Pending | 0 Skipped | |
--- FAIL: TestAPIs (60.56s) | |
FAIL | |
Process finished with the exit code 1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment