commit | 0d58cb9592852ddb9cc767a33958c65b5eab8deb | [log] [tgz] |
---|---|---|
author | Serge Bazanski <serge@monogon.tech> | Mon Apr 17 18:38:56 2023 +0200 |
committer | Serge Bazanski <serge@monogon.tech> | Tue Apr 18 16:13:46 2023 +0000 |
tree | dffec8a2fc8278408f3d22e35588b3ce024044cf | |
parent | d1b174725e1fd9c40201bbd6047f6bc0755c8e34 [diff] |
c/shepherd/equinix/wrapngo: isolate live API tests So far all wrapngo tests were fired directly against a live Equinix endpoint, and the entire test harness was skipped if such an endpoint was not configured/available. This consolidates all of the live tests into a single test with sub-tests, and only that test is skipped if endpoint data is not provided. This will in turn allow us to have some unit/regression tests for wrapngo that do not need to contact the live Equinix API. Change-Id: I2590a41b935b5d5417520d7510025f6289cece63 Reviewed-on: https://review.monogon.dev/c/monogon/+/1557 Tested-by: Jenkins CI Reviewed-by: Tim Windelschmidt <tim@monogon.tech>
This is the main repository containing the source code for the Monogon Platform.
This is pre-release software - take a look, and check back later!
Our build environment is self-contained and requires only minimal host dependencies:
/dev/kvm
(if you want to run tests).Our docs assume that Bazelisk is available as bazel
on your PATH.
Refer to SETUP.md for detailed instructions.
Build CLI and node image:
bazel build //metropolis/cli/dbg //:launch -c dbg
Launch an ephemeral test node:
bazel test //:launch -c dbg --test_output=streamed
Run a kubectl command while the test is running:
bazel-bin/metropolis/cli/dbg/dbg_/dbg kubectl describe node
Run full test suite:
bazel test -c dbg //...