Skip to content

Commit

Permalink
Remove api tests. (#529)
Browse files Browse the repository at this point in the history
* Remove api tests.

* replaced usage of api-tests
  • Loading branch information
hhovsepy committed May 12, 2022
1 parent 4d0b303 commit 2d908fb
Show file tree
Hide file tree
Showing 23 changed files with 2 additions and 1,055 deletions.
4 changes: 2 additions & 2 deletions DEVELOPING.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,10 @@ WARNING: This may not work if you have SELinux enabled. If you get permission er
When making any kind of change, you should also make the necessary changes to the link:./molecule/[Molecule tests] to ensure they still pass. You can easily run the Molecule tests on your local box using Minikube by running the link:https://github.com/kiali/kiali/blob/master/hack/ci-minikube-molecule-tests.sh[ci-minikube-molecule-tests.sh] hack script. If you want to run just a few or one Molecule test rather than the whole suite, you can run something like this (omit `CLUSTER_TYPE` if running the test on OpenShift; you can omit `MINIKUBE_PROFILE` if your profile is the default of `minikube`).

```
CLUSTER_TYPE=minikube MINIKUBE_PROFILE=ci MOLECULE_USE_DEV_IMAGES=true MOLECULE_SCENARIO="api-test" make clean build test cluster-push molecule-test
CLUSTER_TYPE=minikube MINIKUBE_PROFILE=ci MOLECULE_USE_DEV_IMAGES=true MOLECULE_SCENARIO="roles-test" make clean build test cluster-push molecule-test
```

where `api-test` is the Molecule test(s) you want to run. The value of link:https://github.com/kiali/kiali/blob/v1.25.0/make/Makefile.molecule.mk#L5-L8[`MOLECULE_SCENARIO`] is a space-separated list of Molecule tests - the full list of Molecule tests are link:./molecule[found here]. There are other environment variables you can set (such as `MOLECULE_DEBUG` for turning on debug messages) - see the link:https://github.com/kiali/kiali/blob/master/make/Makefile.molecule.mk[make/Makefile.molecule.mk] file in the kiali/kiali repo.
where `roles-test` is the Molecule test(s) you want to run. The value of link:https://github.com/kiali/kiali/blob/v1.25.0/make/Makefile.molecule.mk#L5-L8[`MOLECULE_SCENARIO`] is a space-separated list of Molecule tests - the full list of Molecule tests are link:./molecule[found here]. There are other environment variables you can set (such as `MOLECULE_DEBUG` for turning on debug messages) - see the link:https://github.com/kiali/kiali/blob/master/make/Makefile.molecule.mk[make/Makefile.molecule.mk] file in the kiali/kiali repo.

NOTE: If you have never run the Molecule tests before, the Molecule container image will be built for you automatically. If you need to rebuild the image for some reason, run `FORCE_MOLECULE_BUILD=true make molecule-build`.

Expand Down
28 changes: 0 additions & 28 deletions molecule/api-test/apps.test.yaml

This file was deleted.

23 changes: 0 additions & 23 deletions molecule/api-test/cleanup.yml

This file was deleted.

32 changes: 0 additions & 32 deletions molecule/api-test/config.test.yaml

This file was deleted.

40 changes: 0 additions & 40 deletions molecule/api-test/converge.yml

This file was deleted.

233 changes: 0 additions & 233 deletions molecule/api-test/create-simple-mesh.yml

This file was deleted.

0 comments on commit 2d908fb

Please sign in to comment.