running a molecule test locally

2 views
Skip to first unread message

John Mazzitelli

unread,
Nov 6, 2020, 1:10:54 PM11/6/20
to kiali-dev
Running a molecule test is very easy. If you change a test (or want to test something that a molecule test exercises), you should run it.

Some of this is documented here: https://github.com/kiali/kiali-operator/blob/master/DEVELOPING.adoc#run-molecule-tests

In short, do this:

CLUSTER_TYPE=minikube MOLECULE_USE_DEV_IMAGES=true MOLECULE_SCENARIO="api-test" make build cluster-push molecule-test

* MOLECULE_SCENARIO is set to the test(s) you want to run (space-separated if you want to run more than one).
* If you are on OpenShift, just omit the CLUSTER_TYPE env var.
* If you want to test the latest released images on quay (not local dev builds), just omit the MOLECULE_USE_DEV_IMAGES env var and no need to run "build cluster-push" targets (so it would just be: MOLECULE_SCENARIO="testname" make molecule-test).


John Mazzitelli

unread,
Nov 18, 2020, 6:53:30 AM11/18/20
to kiali-dev
Running a molecule test is very easy. If you change an API, or a test, or you want to test something that a molecule test exercises, you should run it (and you should also consider changing or adding a test - typically in the "api-test" molecule scenario, but can be elsewhere in other scenarios).

John Mazzitelli

unread,
Nov 18, 2020, 11:08:22 AM11/18/20
to kiali-dev
Note: This assumes you have disabled SELinux ;-)
> --
> You received this message because you are subscribed to the Google Groups
> "kiali-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to kiali-dev+...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/kiali-dev/1632472893.24918559.1605700404306.JavaMail.zimbra%40redhat.com.
>
>

Reply all
Reply to author
Forward
0 new messages