@@ -15,6 +15,8 @@ as BMC. Ironic runs in the "host network" of the kind cluster in the test. The
1515kind cluster is then configured to expose the relevant ports on the actual host
1616so that they can be reached from the BareMetalHost VMs.
1717
18+ There is a Makefile target for running this e2e script called ` run-e2e-script ` .
19+
1820Currently there are two sets of tests, which cannot be ran together in the same
1921cluster. One is the "optional" set, currently consists of only the
2022[ upgrade tests] ( upgrade_test.go ) , and the "main" set, which are the ones
@@ -25,14 +27,14 @@ setting, the script sets `GINKGO_SKIP` to `upgrade`.
2527E.g. Here is how to run the E2E main tests:
2628
2729``` bash
28- ./hack/ci -e2e.sh
30+ make run -e2e-script
2931```
3032
3133And here is how to run the E2E optional tests:
3234
3335``` bash
3436export GINKGO_FOCUS=" upgrade"
35- ./hack/ci -e2e.sh
37+ make run -e2e-script
3638```
3739
3840` GINKGO_FOCUS ` can be set manually to run specific tests. The options for these
@@ -67,7 +69,7 @@ Skipping tests works otherwise similiarly to adding focus, but in the Makefile
6769test-specific words with it or you can add another ` --skip= ` with a longer
6870string to the ` test-e2e ` target.
6971
70- ` BMC_PROTOCOL ` can also be set manually. By default the [ ci-e2e.sh] ( https://github.com/metal3-io/baremetal-operator/blob/main /hack/ci-e2e.sh)
72+ ` BMC_PROTOCOL ` can also be set manually. By default the [ ci-e2e.sh] ( ../.. /hack/ci-e2e.sh)
7173script runs it as ` redfish ` , but it can also be set to ` redfish-virtualmedia ` ,
7274` redfish ` , or ` ipmi ` . Ipmi uses ` vbmc ` as the BMO e2e emulator, whereas the
7375others use ` sushy-tools ` .
0 commit comments