Commit Graph

28 Commits

Author SHA1 Message Date
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