Commit Graph

46 Commits

Author SHA1 Message Date
Parthvi Vala
b38d31ffdd Skip IBM Cloud tests for changes that do not affect odo behavior (#6924)
Signed-off-by: Parthvi Vala <pvala@redhat.com>
2023-06-23 09:42:46 +02:00
Philippe Martin
cd9cc55c26 Send tests results to Sheet (#6873)
* Send tests results to Sheet

* Save tests from Windows tests + do not fail if junit file not found

* Change package name

* Remove cleanup old entries (keeping implementation)

* Add job number
2023-06-16 08:34:47 -04:00
Philippe Martin
029c5387d5 Skip tests if all changes in docs (#6870)
* Skip tests if all changes in website (and .ibm for testing this PR)

* Use Merge  base

* Add rule for podman-test on GH Actions
2023-06-06 07:32:52 -04:00
Philippe Martin
2e0a882dea fix 6812 (#6814)
* todo

* Log Devfile Registry

* remove end space

* Clean comment
2023-05-15 04:54:25 -04:00
Philippe Martin
235539dfe9 Get DEVFILE_REGISTRY value for tests, to use local Registry (#6705)
* Get DEVFILE_REGISTRY value for tests

* Pass DEVFILE_REGISTRY to Windows tests

* Add values for devfile registry Helm deployment
2023-03-31 12:13:35 -04:00
Armel Soro
7b9f214299 Bump Go to 1.19 (#6586)
* Set Go version in go.mod

go mod edit -go=1.19

* Fix formatting issues reported by gofmt

* Fix SA1019 check (usage of deprecated "io/ioutil"), reported by golangci-lint

SA1019: "io/ioutil" has been deprecated since Go 1.16:
As of Go 1.16, the same functionality is now provided by package io or package os,
and those implementations should be preferred in new code.
See the specific function documentation for details. (staticcheck)

* Use Go 1.19 in our Dockerfiles

* Use Go 1.19 in the rpm-prepare.sh script

* Update the tag for the IBM Cloud CI image
2023-02-16 09:03:48 -05:00
Philippe Martin
4b2e935e5d Use oc v4.11 instead v4.7 to fix version retrieval (#6559) 2023-02-02 10:13:44 +01:00
Philippe Martin
f767206cfc Fix identification of message on github PR (#6544) 2023-01-27 13:00:04 -05:00
Philippe Martin
facfb79cca Run Docs tests on CI/CD (#6521)
* Run Docs tests on CI/CD

* Remove warnings from test output

* Replace version in mdx files
2023-01-25 13:50:02 -05:00
Philippe Martin
d0e2292443 Do not use same log file for openshift tests auth/noauth (#6428) 2022-12-19 11:50:49 -05:00
Anand Kumar Singh
8094d563d9 update env name for ODO_ROBOT_KEY (#6393)
Signed-off-by: anandrkskd <anandrkskd@gmail.com>

Signed-off-by: anandrkskd <anandrkskd@gmail.com>
2022-12-12 10:50:50 -05:00
Philippe Martin
83cdda6960 Test with OpenShift cluster non authenticated (#6395)
* Test with OpenShift cluster non authenticated

* Add analyze commands

* Add same tests as with NoCluster

* Do not try to cleanup namespaces

* Assert non authenticated

* Change Makefile target name
2022-12-09 06:41:38 -05:00
Philippe Martin
35e3cc3edb Integration tests: Declare devfile volumes as ephemeral (#6356)
* Declare devfile volumes as ephemeral + run persistent volumes on Openshift only

* Disable e2e test on Kubernetes
2022-11-29 07:49:14 -05:00
Anand Kumar Singh
ab273dcac6 fix: add exit code check for no-cluster tests (#6345)
Signed-off-by: anandrkskd <anandrkskd@gmail.com>

Signed-off-by: anandrkskd <anandrkskd@gmail.com>
2022-11-24 09:22:43 -05:00
Philippe Martin
4c30c8ef0c More tests without cluster (#6303)
* Run build-images command without cluster

* Test odo remove binding without cluster

* Make odo describe component work without cluster

* Tests: configure cluster depending on nocluster label

* Make odo list component work when --namespace is not used

* Test odo list component before deployment without cluster

* Some Generic tests

* Unset KUBERNETES_SERVICE_HOST to disable in-cluster config

* Set KUBECONFIG to empty file for no-cluster tests

* Run no-cluster tests on Windows

* Fix ListIngresses related changes

* Add warning/error when no cluster connection is available
2022-11-21 11:06:04 -05:00
Philippe Martin
a301e86af8 Build and push .ibm/images/Dockerfile image (#6309)
* Build and push .ibm/images/Dockerfile image

* Add robot account

* Use checkout@v3
2022-11-16 10:30:10 +00:00
Dharmit Shah
f062c11a11 Update odo to use go 1.18 (#6166)
* Update odo to use go 1.18

Signed-off-by: Dharmit Shah <shahdharmit@gmail.com>

* Update golangci-lint version in Makefile

Signed-off-by: Dharmit Shah <shahdharmit@gmail.com>

* Use go 1.18, not go 1.19

Erroneously I had used go 1.19 at various places.

Signed-off-by: Dharmit Shah <shahdharmit@gmail.com>

* Rearrange imports; fix golangci-lint errors

Fixed a bunch of golangci-lint errors like below:

`File is not `gofmt`-ed with `-s``

using the command: `golangci-lint run --fix`

Signed-off-by: Dharmit Shah <shahdharmit@gmail.com>

* Use go install instead of go get

This is because with go 1.18, `go get` behaves as `go get -d` by
default. Which means that it will only download, but not install.

Signed-off-by: Dharmit Shah <shahdharmit@gmail.com>

Signed-off-by: Dharmit Shah <shahdharmit@gmail.com>
2022-11-09 05:31:38 -05:00
Philippe Martin
2dab7fbda9 Define label for integration tests not needing cluster (#6242) 2022-10-31 18:16:24 -04:00
Anand Kumar Singh
ae06ffc02b Fix Windows tests for PR targeting branches other than main (#6177)
* copy repo from ibmcloud instead of copying

Signed-off-by: anandrkskd <anandrkskd@gmail.com>

* suspend quarkus test

Signed-off-by: anandrkskd <anandrkskd@gmail.com>

* Speed up test execution on Windows with a shallow checkout instead of an 'scp'

'scp' happens to be a slow operation, because it is dependent on the network
and copies everything, including the full Git history checked out by the
IBM Cloud container.
The shallow clone/fetch allows to retrieve only the last commit in the
PR branch, rather than fetching the full Git history (which might take time
too).

Signed-off-by: anandrkskd <anandrkskd@gmail.com>
Co-authored-by: Armel Soro <asoro@redhat.com>
2022-10-03 10:36:19 +02:00
Philippe Martin
59f4f8348a Manual sync of files pressing p (#6089)
* Set character mode for input stream

* Move watchers in receiver + sync when p pressed

* Integration tests manual sync

* Add a console to DevSession

* Vendor

* Skip pressKey tests on Windows

* Add interactive test for p press

* Add info about pressing p key

* Doc

* Review

* Rephrase Manul sync

* Fix HotReloadCapable

* Document timers

* Document enableCharInput

* Document geyKey and getKeyWatcher functions

* Avoid to Kill in AfterEach after running Kill before
2022-09-09 18:54:54 +02:00
Philippe Martin
588472ede5 Fix interactive tests on Windows (#6091)
* Use ActiveState/termtest for interactive tests, which works with Windows

* Fix interactive tests to pass on Windows

* Fix windows tests script

* Set SKIP_WELCOMING_MESSAGES on Windowd tests

* No not resize terminal

* Kill previous odo processes

* Increase timeout for Expect()
2022-09-06 11:33:28 +02:00
Anand Kumar Singh
39b8c7e4c2 fix flake and use operatorhub to install EDB (#6004)
* fix flake

Signed-off-by: anandrkskd <anandrkskd@gmail.com>

* fix flake

Signed-off-by: anandrkskd <anandrkskd@gmail.com>

* check if namespace is created

Signed-off-by: anandrkskd <anandrkskd@gmail.com>

* check if namespace without sercice is created

Signed-off-by: anandrkskd <anandrkskd@gmail.com>

Signed-off-by: anandrkskd <anandrkskd@gmail.com>
2022-08-29 11:26:57 -04:00
Philippe Martin
f4a860ec2e Install and use a reverse proxy for staging devfile registry (#5922)
* Kubernetes Manifests to deploy nginx reverse proxy for staging devfile registry

* Get the external address of the loadBalancer service for devfile proxy

* If DEVFILE_PROXY is defined, use it as Devfile registry

* Fix get address from Windows

* Add some log displaying proxy address found

* Filter requests on user agent

* Add Go-http-client user-agent

* Add doc
2022-07-20 11:31:25 +02:00
Anand Kumar Singh
c7f3f3b1d1 reduce test make targets, organize test file structure (#5931)
* 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>
2022-07-13 05:32:11 +00:00
Anand Kumar Singh
c12ed3109d update dockerfile to install dependencies (#5784)
Signed-off-by: anandrkskd <anandrkskd@gmail.com>
2022-06-02 05:36:05 -04:00
Philippe Martin
bd8e78a05e odo dev store information about currently forwarded ports (#5703)
* Save state (forwarded ports + PID + timestamp) to local file and cleanup

* Integration tests

* Documentation

* Update docs/website/versioned_docs/version-3.0.0/command-reference/dev.md

Co-authored-by: Armel Soro <armel@rm3l.org>

* Fail when an error happens writing state file
In case of error during initialization, odo dev cleanup the resources

* Fix typo

* Test localPort matches a number

* Remove PID and timestamp from state + rename to devstate.json

* Run IBM cloud tests as non root

* Fix doc

* Review

* Remove reference to PID/timestamp from doc

Co-authored-by: Armel Soro <armel@rm3l.org>
2022-05-05 04:12:25 -04:00
Anand Kumar Singh
098389b027 update go version to use go 1.17 (#5497)
* update go version to 1.17

Signed-off-by: anandrkskd <anandrkskd@gmail.com>

* update go version to 1.17 and fix failure

Signed-off-by: anandrkskd <anandrkskd@gmail.com>
2022-04-29 12:20:35 -04:00
Anand Kumar Singh
3f40f0a4d2 fix PATH for odo binary (#5702)
Signed-off-by: anandrkskd <anandrkskd@gmail.com>
2022-04-28 17:08:01 -04:00
Rodolfo Napoles
f280a61b0d refactoring generic-test (#5628)
* rebasing

* Incorporated additional feedback, removed make test-generic from openshift-tests.sh as it runs test-integration
2022-04-28 15:50:04 -04:00
Anand Kumar Singh
96ea52e882 change path to fix windows log (#5692)
Signed-off-by: anandrkskd <anandrkskd@gmail.com>
2022-04-26 03:34:59 -04:00
Rodolfo Napoles
83f26da94d Reorganized test file directory structure (#5537)
* Rebased was required

* Replicated changes to  openshiftci related scripts to avoid test failure
2022-03-16 01:42:11 -04:00
Anand Kumar Singh
dad8b6eeea fix openshift login failure (#5530)
Signed-off-by: anandrkskd <anandrkskd@gmail.com>

add login check

Signed-off-by: anandrkskd <anandrkskd@gmail.com>
2022-03-14 10:54:18 -04:00
Anand Kumar Singh
575d9ce7d6 Fix windows script to use correct API KEY (#5512)
* fix windows script to use correct API KEY

Signed-off-by: anandrkskd <anandrkskd@gmail.com>

* remove github login

Signed-off-by: anandrkskd <anandrkskd@gmail.com>

* k8s updated qe key

Signed-off-by: anandrkskd <anandrkskd@gmail.com>

* use serviceid API key

Signed-off-by: anandrkskd <anandrkskd@gmail.com>

* update save_log func

Signed-off-by: anandrkskd <anandrkskd@gmail.com>

* make script executable

Signed-off-by: anandrkskd <anandrkskd@gmail.com>
2022-03-07 05:02:48 -05:00
Anand Kumar Singh
3eb92b6a47 POC for odo interactive testing (#5466)
* 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>
2022-03-02 13:50:26 -05:00
Rodolfo Napoles
6b0d5b73e9 Change to use API_KEY_QE (#5448) 2022-02-25 08:49:11 -05:00
Anand Kumar Singh
b7fed623c5 fix comment override for windows test (#5417)
Signed-off-by: anandrkskd <anandrkskd@gmail.com>
2022-02-09 14:37:54 -05:00
Rodolfo Napoles
3c9870c508 minor changes to use service IDs and clusters in the Developer QE account (#5440)
* minor changes to use clusters in the Developer QE account

* removed unnecessary command
2022-02-08 08:50:18 -05:00
Philippe Martin
850c7cd723 Remove commands that wont be implemented for v3-alpha1 (#5433)
* Remove odo staorage commands

* Remove "odo service" + "odo catalog * service" commands

* Remove odo link/unlink commands

* Remove related integration tests

* Remove application concept

* fix rebase

* fix test

* Remove config command

* Remove env command

* Remove application package

* Remove config package

* Move odogenerator and unions packages into kclient

* Move notify package to cli/version

* Fix script mockgen

* Remove odo debug command oand debug package

* Remove odo component describe/exec/log/status/test

* Remove operator-hub tests from IBM tests

* Remove operator hub tests from CI

* Fix e2e tests
2022-02-06 23:42:15 -05:00
Anand Kumar Singh
a59b9877f4 split unit test into unit test and validate test (#5355)
* split unit test into unit test and validate test

Signed-off-by: anandrkskd <anandrkskd@gmail.com>

* add comments and remove goget-tools from unit test

Signed-off-by: anandrkskd <anandrkskd@gmail.com>
2022-01-24 03:48:19 -05:00
Philippe Martin
9b06e01a3d Run Operator Hub integration tests on IBMKubernetes cluster (#5307) 2021-12-21 11:12:20 +01:00
Philippe Martin
2b00f1cc01 Use odo-robot to post logs to PR (#5302) 2021-12-20 13:30:28 +01:00
Philippe Martin
4500270286 Cleanup tests namespaces before to run tests (#5292) 2021-12-17 07:43:05 +01:00
Anand Kumar Singh
11e43f531c Windows tests on Ibm pipeline (#5281)
* windows tests on ibm pipeline

Signed-off-by: anandrkskd <anandrkskd@gmail.com>

* fix devfile watch tests

Signed-off-by: anandrkskd <anandrkskd@gmail.com>

* use env for windows IP instead

Signed-off-by: anandrkskd <anandrkskd@gmail.com>

* use env for windows IP instead

Signed-off-by: anandrkskd <anandrkskd@gmail.com>
2021-12-16 14:17:50 +01:00
Anand Kumar Singh
12b79aaa58 Add sucess and failure for ibmcloud tests comments (#5280)
* Add sucess and failure for ibmcloud tests comments

Signed-off-by: anandrkskd <anandrkskd@gmail.com>

* add result to unit test and kubernetes test

Signed-off-by: anandrkskd <anandrkskd@gmail.com>
2021-12-10 11:08:27 +00:00
Philippe Martin
07ef685df7 Use an image with pre-installed oc/kubectl/ibmcloud for IBM Pipelines (#5269)
* Use an image with pre-installed oc/kubectl/ibmcloud for IBM Pipelines

* Increase time for unit tests (very long on single CPU VM)

* Dockerfile for build image
2021-12-03 17:02:46 +01:00
Philippe Martin
c86110a681 Scripts for IBM Pipelines (#5196) 2021-11-10 18:40:38 +01:00