-
Notifications
You must be signed in to change notification settings - Fork 329
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: fix and inline custom domains test (#2130)
- Loading branch information
Showing
16 changed files
with
284 additions
and
172 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
load("//rs/tests:common.bzl", "BOUNDARY_NODE_GUESTOS_RUNTIME_DEPS", "GUESTOS_RUNTIME_DEPS", "MACRO_DEPENDENCIES", "UNIVERSAL_VM_RUNTIME_DEPS") | ||
load("//rs/tests:system_tests.bzl", "oci_tar", "system_test_nns", "uvm_config_image") | ||
|
||
package(default_visibility = ["//rs:system-tests-pkg"]) | ||
|
||
CERTIFICATE_ORCHESTRATOR_RUNTIME_DEPS = ["//rs/boundary_node/certificate_issuance/certificate_orchestrator:certificate_orchestrator"] | ||
|
||
oci_tar( | ||
name = "coredns.tar", | ||
image = "@coredns", | ||
repo_tags = ["coredns:latest"], | ||
) | ||
|
||
oci_tar( | ||
name = "pebble.tar", | ||
image = "@pebble", | ||
repo_tags = ["pebble:latest"], | ||
) | ||
|
||
oci_tar( | ||
name = "python3.tar", | ||
image = "@python3", | ||
repo_tags = ["python3:latest"], | ||
) | ||
|
||
oci_tar( | ||
name = "openssl.tar", | ||
image = "@alpine_openssl", | ||
repo_tags = ["openssl:latest"], | ||
) | ||
|
||
uvm_config_image( | ||
name = "custom_domains_uvm_config_image", | ||
srcs = [ | ||
# Docker images | ||
":coredns_tar", | ||
":openssl_tar", | ||
":pebble_tar", | ||
":python3_tar", | ||
|
||
# Assets | ||
":activate.sh", | ||
":pebble_cache.py", | ||
":cloudflare_api.py", | ||
], | ||
remap_paths = {"activate.sh": "activate"}, | ||
tags = ["manual"], # this target will be built if required as a dependency of another target | ||
) | ||
|
||
# This system test is meant for manual testing of the boundary node custom domain offering. | ||
# It runs through all the steps from registering a custom domain, to accessing, to updating, and | ||
# finally removing it. This test is not meant to run as part of a regular pipeline. | ||
system_test_nns( | ||
name = "custom_domains_integration_test", | ||
srcs = [ | ||
"setup.rs", | ||
], | ||
crate_root = "custom_domains_integration_test.rs", | ||
env = { | ||
"CERTIFICATE_ORCHESTRATOR_WASM_PATH": "$(rootpath //rs/boundary_node/certificate_issuance/certificate_orchestrator:certificate_orchestrator)", | ||
"CUSTOM_DOMAIN_UVM_CONFIG_PATH": "$(rootpath :custom_domains_uvm_config_image)", | ||
"ASSET_CANISTER_WASM_PATH": "$(rootpath @asset_canister//file)", | ||
}, | ||
proc_macro_deps = MACRO_DEPENDENCIES, | ||
tags = [ | ||
"manual", | ||
], | ||
target_compatible_with = ["@platforms//os:linux"], # requires libssh that does not build on Mac OS | ||
runtime_deps = BOUNDARY_NODE_GUESTOS_RUNTIME_DEPS + | ||
GUESTOS_RUNTIME_DEPS + | ||
UNIVERSAL_VM_RUNTIME_DEPS + | ||
CERTIFICATE_ORCHESTRATOR_RUNTIME_DEPS + [ | ||
":custom_domains_uvm_config_image", | ||
"@asset_canister//file", | ||
], | ||
deps = [ | ||
# Keep sorted. | ||
"//rs/boundary_node/certificate_issuance/certificate_orchestrator_interface", | ||
"//rs/interfaces/registry", | ||
"//rs/protobuf", | ||
"//rs/registry/keys", | ||
"//rs/registry/nns_data_provider", | ||
"//rs/registry/routing_table", | ||
"//rs/registry/subnet_type", | ||
"//rs/tests/driver:ic-system-test-driver", | ||
"@crate_index//:anyhow", | ||
"@crate_index//:candid", | ||
"@crate_index//:chacha20poly1305", | ||
"@crate_index//:ic-agent", | ||
"@crate_index//:k256", | ||
"@crate_index//:pem", | ||
"@crate_index//:rand", | ||
"@crate_index//:rand_chacha", | ||
"@crate_index//:reqwest", | ||
"@crate_index//:serde_json", | ||
"@crate_index//:slog", | ||
"@crate_index//:tokio", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
[package] | ||
name = "ic-boundary-nodes-custom-domains-test" | ||
version.workspace = true | ||
authors.workspace = true | ||
edition.workspace = true | ||
description.workspace = true | ||
documentation.workspace = true | ||
|
||
[dependencies] | ||
anyhow = { workspace = true } | ||
candid = { workspace = true } | ||
chacha20poly1305 = "0.10.0" | ||
certificate_orchestrator_interface = { path = "../../../boundary_node/certificate_issuance/certificate_orchestrator_interface" } | ||
ic-agent = { workspace = true } | ||
ic-interfaces-registry = { path = "../../../interfaces/registry" } | ||
ic-protobuf = { path = "../../../protobuf" } | ||
ic-registry-keys = { path = "../../../registry/keys" } | ||
ic-registry-nns-data-provider = { path = "../../../registry/nns_data_provider" } | ||
ic-registry-routing-table = { path = "../../../registry/routing_table" } | ||
ic-registry-subnet-type = { path = "../../../registry/subnet_type" } | ||
ic-system-test-driver = { path = "../../driver" } | ||
indoc = "1.0.9" | ||
k256 = { workspace = true } | ||
pem = "1.0.1" | ||
rand = { workspace = true } | ||
rand_chacha = { workspace = true } | ||
reqwest = { workspace = true } | ||
serde_json = { workspace = true } | ||
slog = { workspace = true } | ||
tokio = { workspace = true } | ||
|
||
[[bin]] | ||
name = "ic-systest-custom-domains-integration" | ||
path = "custom_domains_integration_test.rs" |
File renamed without changes.
File renamed without changes.
Oops, something went wrong.