20 Commits

Author SHA1 Message Date
Philippe Martin
56741d6d88 Use Redis operator to test odo service create with parameters (#5142)
* Do not install PG operator

* Rewrite tests with Redis operator
2021-10-13 19:56:13 +02:00
Priti Kumari
9dba98a9e2 Enable olm and Run operatorhub tests on kubernetes cluster (#4754)
* Running operatorhub tests on kubernetes cluster

* Fixing script path

* Align spec field in service binding subscription yaml

* Adding debugging steps for Finding ImagePullBackOff Reason

* Adding mongodb operator and modifying test accordingly to resolve https://github.com/openshift/odo/issues/4651#issuecomment-851269315

* Fixing command typo for kubernetes

* Fixing regex issue

* Fixing mongodb subscription yaml format

* Injecting docker account secrets into kubernetes cluster for etcd services

* remove setup-kube-operators file

* Separate setup for kubernetes operator

* Adding operators common for both ocp and minikube

* sync function for ocp and minikube

* Adding some tests refactor

* refactoring operator hub tests for redis operator

* Finding reason for the pending state of redis pod and fix regex format

* Fixing regex format

* Using redis instance CR definition from example file

* Modifying test to use RedisCluster operator

* Fixing redis-secret failure for specific namespace in the test

* removing not used function for copying example

* Refactoring operator test

* redis pod name are changing so frequently so updating it once again

* Refactored operator link test

* Skipping postgresql test for kubernetes

* Fixing invalid devfile with link

* Fixing file not found error

* Address review comments

* Run all tests on ocp and kubernetes

* Shifting to Redis CRD instead of RedisCluster and review comments

* Fixing failure related to no name

* Address cosmetic changes as per review

* olm installation on minikube
2021-07-06 10:05:27 -04:00
Girish Ramnani
9cfcbc3485 param based odo service create for operator backed services (#4704)
* initial work towards param based odo service create

* change

* add type data to cr

* add to devfile

* update olm

* remove logs

* towards tests

* init tests

* more test

* fix tests

* fix unit again

* set default service name

* mod fix

* addressed some comments

* add postgres operator in setup and in test

* fix

* fix some tests

* fix helpers

* helper flag

* merge conflicts

* add tests and install operator

* certain cases fix

* fix intg tests

* update scripts

* fix intg test

* changed function name

* changes

* fix comments

* docs update

* link fix

* small fix

* comment

* unit tests

* doc fix

* renamed as per comments

* comment
2021-06-24 03:42:47 -04:00
Priti Kumari
9d246db05b Adding ubi8/nodejs-14 image as supported (#4304)
* Add nodejs latest image on ocp 4.7 as supported

* updating the odo init version to 1.18

* Updated odo init image version

* updated init image version
2021-01-29 02:18:48 -05:00
Mohammed Ahmed
e51cecfbea Configure-installer script refactor part 2 (#4292)
* Moving to static htpasswd file as it is for ephermal test cluster anyway

 - password still remains password@123

Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>

* Moving kubeadmin to its own script

Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>

* Updating script name

Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>

* Adding check for non-existent KUBECONFIG

Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>

* Removing reset_kubeconfig

Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>

* Fixing reset_kubeconfig as it should not be called unless user wants to do it

Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>

* Addressing comment by girish

Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
2021-01-14 07:05:14 -05:00
Priti Kumari
585fd6dc5c Adding the latest java image ubi8/openjdk-11 in odo supported list (#4206)
* Adding the latest java image ubi8/openjdk-11 on ocp 4.6 version as supported

* Modifying the init image version
2020-11-25 06:49:03 +01:00
Mohammed Ahmed
c941d6932d Splitting configure-installer-test-cluster into a library. (#4194)
* 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>
2020-11-24 20:33:23 +01:00
Priti Kumari
b742a0ce65 Adding ubi8/nodejs-12 images as supported (#4070)
* Adding ubi8/nodejs-12 images as supported

* Updated image stream yaml

* Revert image stream yaml changes

* verify ubi8 nodejs image with e2e test

* Added image namespace in the script file

* changing dc from source bin to deployment

* Revert the dc change

* update odo-init-container to v1.1.6

Co-authored-by: Tomas Kral <tkral@redhat.com>
2020-11-06 10:06:13 +01:00
Amit Rout
81154f8c41 Applying secret to namespace for authenticated registry (#3737)
* Applying secret to namespace for authenticated registry

* Updated installer config script

* Addressing review comments

* Addressing review comments
2020-08-12 23:37:38 +02:00
Priti Kumari
8791263cf1 Fixing kubeconfig path and login session for 4.x cluster (#3528) 2020-07-11 17:30:38 +02:00
Priti Kumari
b1d8462e7b Copy kubeconfig to temporary file and add permissions (#3462)
* Copy kubeconfig to temporary file and grant the permissions to read write execute

* Limiting the file permission to read write only

* Updating copy kubeconfig to temp dir on the basis of review comment

* Fixing login kubeconfig issue
2020-07-07 01:35:51 -04:00
Dharmit Shah
580ddfc7aa Make sure that desired operators are installed in CI (#2944)
* Make sure that desired operators are installed in CI

The flake we're seeing is not reproducible so I've added a while loop
which will make sure that the operators we're interested in are
installed. The yaml definition works fine so there's no issue on that
front.

* Make changes as per PR review

https://github.com/openshift/odo/pull/2944#pullrequestreview-397183250
https://github.com/openshift/odo/pull/2944#pullrequestreview-397185616

* Fix shell syntax errors
2020-04-22 16:59:51 +02:00
Dharmit Shah
51544e2342 Adds ability to list Operators available in the cluster (#2593)
* 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-372480988
https://github.com/openshift/odo/pull/2593#pullrequestreview-372484636
2020-03-11 05:06:15 -04:00
Mohammed Ahmed
d7ef621945 Making pre-test setup script check api server stability (#1703)
* Making pre-test setup script check api server stability

The script now checks if api server is stable after success login
and if not does reasonable retry of login

Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>

* Stabalizing OC_STABLE_LOGIN by initializing and adding `set -x`
2019-05-12 17:27:24 +02:00
Tomas Kral
ffa2756f7c Various e2e fixes for OpenShiftCI (#1517)
* fix java_e2e tests

increase waitForPodTimeOut

increate timeout for 'oc import-image'

configure-installer-test-cluster: show version

rename openjdk image stream to java, and don't import it on OpenShift CI

* fix source_e2e test

* e2e: waitForCmdOut show command out on failure

* e2e: use oc to delete projects

* fix e2e_test.go

* specify branch in git tests

* fix component e2e (project)

* e2e: add debug to cmdRunner

* e2e add project fflag
2019-03-31 22:12:07 -07:00
Mohammed Ahmed
7d915d15d7 Increasing wait time and detecting failure of login as developer (#1477)
Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
2019-03-19 03:17:38 -07:00
Mohammed Ahmed
41f66157b2 Removing unnessaary make bin from script. (#1460)
* Removing unnessaary make bin from script.

Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>

* Modifying e2e tests to not check project name

* Increasing time out

* Removing timeout as its added to test
2019-03-16 10:13:34 -07:00
Amit Rout
445e1efce7 Fixing username as per e2e_test file (#1451) 2019-03-14 01:59:19 -07:00
Mohammed Ahmed
925147d952 Fixing script to be able to skip logging in as admin, if needed (#1452)
* Fixing script to be able to skip logging in as admin, if needed

Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>

* Adding make bin

* Updating script to try success login multiple times

* Adding reference for CI environment variable

* Removing hard sleep in favor of checking successful login

* Removing unused env
2019-03-14 00:41:19 -07:00
Mohammed Ahmed
631b53d2a3 Adding scripts to handle initialization of cluster for openshift CI. (#1441)
* Adding scripts to handle initialization of cluster for openshift CI.

This also fixes couple of usernames on the side

Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>

* Adding http-tools to build root so we can use htpasswd

* Adding login as developer and creation of first project

* Moving script to ./scripts and renaming makefile command

* Renaming scripts to incude tests in configure cluster script

* Making script more configurable

* Adding namespace to secret commands.

* Fixing missing username

* Simplifying script by removing unnessasary variables

* Adding TODO and slightly reduction wait time for auth config

* Making assets dir overwritable

* Making configure script executable.

* Fixing message for not existing kubeconfig

* Redirecting out and err of commands where we are not interested in msg

* Updating to 18 secs default sleep which can be overridden

* Adding workaround for missing wildfly in OpenShift 4.0

* Adding basic ci docs for prow

Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
2019-03-13 11:20:34 +05:30