Integration tests are already covered a lot by the CI on GitHub and tend to be somewhat flaky on OpenShift. We don't need to run them all on OpenShift.
* reduce test make targets, organize test file structure
Signed-off-by: anandrkskd <anandrkskd@gmail.com>
* remove report collection
Signed-off-by: anandrkskd <anandrkskd@gmail.com>
* POC for odo interactive testing
Signed-off-by: anandrkskd <anandrkskd@gmail.com>
* add interactive tests to make target test-integration
Signed-off-by: anandrkskd <anandrkskd@gmail.com>
* [WIP] use func to pass test instructions
Signed-off-by: anandrkskd <anandrkskd@gmail.com>
* cleanup comments/test
Signed-off-by: anandrkskd <anandrkskd@gmail.com>
* cleanup minor changes
Signed-off-by: anandrkskd <anandrkskd@gmail.com>
* fix unit test failure
Signed-off-by: anandrkskd <anandrkskd@gmail.com>
* skip for windows
Signed-off-by: anandrkskd <anandrkskd@gmail.com>
* skip for windows by not compiling, cleanup
Signed-off-by: anandrkskd <anandrkskd@gmail.com>
* cleanup, and add the make target to test files
Signed-off-by: anandrkskd <anandrkskd@gmail.com>
* incorporate review, adding comments, cleanup
Signed-off-by: anandrkskd <anandrkskd@gmail.com>
* fix failing make validate
Signed-off-by: anandrkskd <anandrkskd@gmail.com>
* update test dependency, and possible fix for windows
Signed-off-by: anandrkskd <anandrkskd@gmail.com>
* Revert "update test dependency, and possible fix for windows"
This reverts commit 55580b7dc5.
* Final cleanup
Signed-off-by: anandrkskd <anandrkskd@gmail.com>
* Fix reports directory for operatorhub nightly tests
* copy reports for project, login logout and operatorhub tests to artifacts dir reports
* one line command for copying both reports
* Working on baseline POC of internal CI
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Fixing golangci comments
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Some fixes
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Reducing timeout for sake of PIC feedback
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Moving defer
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Some fixes
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* jenkins build is now a number and dont cancel current build
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Updating envs to prevent conflicts, if any
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Update jenkins user envs
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Disabling auto delete and adding explicit shutdown
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Fixing autodel
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Some more fixes
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Reenablong autodelete and sleeping
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Init and shutdown moved around a bit
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* 2 Connections on prow worker
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Some more fixes
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Fixing nil pointer exception on rcvqchan
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Some cleanup and fixing done message not being sent
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Fixing up messaging
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Adding actual testing
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Make it fail purposefully
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Simplifying poc
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Some more fixes
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Removing success chan as its not needed
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Removing in favor of seperate repo
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Removing related vendor
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Blah
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* updating testing scripts
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Some script updates
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* build odo and copy it to path
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Re-ordering test script
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Some fixes
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Removed unneeded setup script
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Debugging
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Some more stuff
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Re-enable hiding
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Some fixes
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Cleaning up the script
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Fixup for windows and macos testing
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Fixing env names to make it cleaner
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Allow redhat tests to specify precreated project name and delete it
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Updating script for kubeadmin login and handling some setup
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Fixup randomstring to satisfy dns format
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Some stuff to do
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Remove deleteproject
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Some more fixes
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Fixing project name
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Some fixes
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Hiding deletion projects and export project names
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Increasing timeout and memory for java
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Fixing after rebase
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Reverting fixes to tests
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Rebasing and fixing env names and adding one for ubi8 nodejs12
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Fixing up way env is read
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Fixing project name in oc import image
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Adding remaining tests
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Skipping user login tests
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Removing coloration for ginkgo
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Adding helper for oc get pods and using it in operator hub tests
oc get pods succeeds, even if there are no resources. So to account
for delays in pods becoming available the fallthough from above mentioned
issue, this was created
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Moving noColor to GINKGO_TEST_ARGS
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Adding justbeforeeach and justafter each to a context
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Fixup for newer image
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Removing Access information from file stat in pod.
1. Touching a file on mounts without `noatime` changes the access time.
2. This includes use by run script in container, hence resulting in errors.
3. We are not interested in access information anyway.
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Fixing after rebase
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Increasing curl timeout
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Rebasing and addressing comments by @dharmit
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Fixing after rebase
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Readjusting time and order
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Moving operator hub tests to top
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Removing ginko nocolor as ansi stripping is available in ci-firewall
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Fixing typo
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Adding back old openshift presubmit script with a -old
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Fixing random project for nodejs-14
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Fixing after rebase
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Fixing odo command
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* is set by platform
Signed-off-by: anandrkskd <anandrkskd@gmail.com>
* removing env ARTIFACTS_DIR as it's set by platform
Signed-off-by: anandrkskd <anandrkskd@gmail.com>
* replacing env to ARTIFACT_DIR
Signed-off-by: anandrkskd <anandrkskd@gmail.com>
* replacing env to ARTIFACT_DIR
Signed-off-by: anandrkskd <anandrkskd@gmail.com>
* Execute make target consecutively even on failure
* intentionally failing the test to verify the pr behavior
* Reverting the intentionally introduced failure
* Spliting configure-installer-test-cluster into a library.
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Fixing password for developer and libdir
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Some fixes
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Fixing periodic tests developer pass
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Changing way script gets it current dir
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Renameing function and doing a set -e
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Fixup for usage where caller script is called with `.`
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Updating remaining scripts to use same auth lib
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Moving htpass up one level
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Adding some echos
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Setting +e for login
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* Removing exit on error for parts of the script, where it should not matter
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
* switch to go modules
* update vendor (go mod vendor)
* swithing to go mod: update docs and makefile
* update goget-tools
* use go mod verify to check vendor
* Update goget-tools
- pin goget-tools versions
- update gikgo to 1.14.0
- reset GOFLAGS for goget-tools
- fix ginkgo get for Prow
* go mod: replace github.com/kr/pty with github.com/creack/pty
* update vendor (go mod vendor)
* fix make cross target
-mod=vendor was not used for corss compiling
* Move file watch to its own package
Signed-off-by: John Collier <John.J.Collier@ibm.com>
* Use parameter struct for odo push
Signed-off-by: John Collier <John.J.Collier@ibm.com>
* Implement odo watch for devfiles
Signed-off-by: John Collier <John.J.Collier@ibm.com>
* Clean up and tests
Signed-off-by: John Collier <John.J.Collier@ibm.com>
* Un-export addRecursiveWatch
Signed-off-by: John Collier <John.J.Collier@ibm.com>
* Move devfile tests into own package and add more watch tests
Signed-off-by: John Collier <John.J.Collier@ibm.com>
* Fix go sec error
Signed-off-by: John Collier <John.J.Collier@ibm.com>
* Address review comments
Signed-off-by: John Collier <John.J.Collier@ibm.com>
* Properly apply ignores for devfile watching
Signed-off-by: John Collier <John.J.Collier@ibm.com>
* Properly apply ignores for `odo push` as well
Signed-off-by: John Collier <John.J.Collier@ibm.com>
* Add dependency on operator-lifecycle-manager (release-4.1)
* Add Operator Hub client to kclient package
* Add function to list installed operators
To be more specific, it lists the `ClusterServiceVersions` in the
cluster. But a `ClusterServiceVersion` is available only when
Operator(s) is/are installed by the cluster admin.
* List the CSVs in the cluster using odo commands
* Add dependency on github.com/golang/groupcache
* Removes futile call to get services from catalog
We're already getting services from the catalog in `Complete` function
and storing it in `o.services`.
* List the Operators only if experimental mode is enabled
* Update CI cluster setup script to setup operators
* Add OperatorHub tests to test-cmd-service
* Integration tests for listing operators
* Remove specific CSV version to let it be automatically selected
* Add test suite for OperatorHub tests to run
* Separate PHONY for OperatorHub tests and run it on 4.x cluster
* Use a CRD's kind instead of DisplayName to make service creation simpler in future
* Set environment variable for experimental mode
* Modify cluster setup to install operators on 4.1
* Execute different steps to setup OperatorHub if running on OCP 4.1
* Fix operator setup script for OCP 4.x
* Changes as per the PR review
https://github.com/openshift/odo/pull/2593#pullrequestreview-363449893
* Added klog dependency through `glide update -v`
* Changes as per the PR review
https://github.com/openshift/odo/pull/2593#pullrequestreview-372480988https://github.com/openshift/odo/pull/2593#pullrequestreview-372484636
We have a lot of tests and running everithing in verbose mode create
output with few thousends of lines and it makes it really hard to find
failures.
Ginkgo is smart enought to dump all availble output when for failing
test even if verbose mode is not enabled.