Skip to content

Commit 86a2569

Browse files
test(conformance): mark the sandbox log tests unsupported on k3s-ha
Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
1 parent 3bc5d69 commit 86a2569

5 files changed

Lines changed: 10 additions & 38 deletions

File tree

‎tests/suites/conformance/src/credential_gating.rs‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -326,9 +326,6 @@ async fn profile_websocket_endpoint_rewrites_text_frames(cx: &mut Context) -> te
326326
/// or its variable name.
327327
#[testkit::test]
328328
async fn profile_endpoints_bind_static_credentials(cx: &mut Context) -> testkit::Result {
329-
if crate::skip_reading_sandbox_logs("profile_endpoints_bind_static_credentials") {
330-
return Ok(());
331-
}
332329
const SECRET_A: &str = "e2e-bound-secret";
333330
const SECRET_B: &str = "e2e-provider-b-secret";
334331
let authorized = |request: &Request| {

‎tests/suites/conformance/src/lib.rs‎

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -31,25 +31,3 @@ mod smoke;
3131
mod ssh;
3232
mod templates;
3333
mod workspaces;
34-
35-
/// Names the number of gateway replicas when an environment runs more than
36-
/// one.
37-
const GATEWAY_REPLICAS_ENV: &str = "OPENSHELL_TEST_GATEWAY_REPLICAS";
38-
39-
/// Whether a test that reads sandbox logs should skip itself, and says so
40-
/// when it should: a gateway replica holds only the logs of the sandboxes
41-
/// connected to it, and a read can reach another one (#5462). Remove this
42-
/// once #5462 is fixed or an environment can skip tests itself (#5752).
43-
fn skip_reading_sandbox_logs(test: &str) -> bool {
44-
let replicas = std::env::var(GATEWAY_REPLICAS_ENV)
45-
.ok()
46-
.and_then(|value| value.parse::<u32>().ok())
47-
.unwrap_or(1);
48-
if replicas > 1 {
49-
eprintln!(
50-
"[{test}] skipping: the gateway has {replicas} replicas and sandbox logs \
51-
are read from only one (#5462, #5752)"
52-
);
53-
}
54-
replicas > 1
55-
}

‎tests/suites/conformance/src/network_egress.rs‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,6 @@ async fn middleware_redacts_request_bodies(cx: &mut Context) -> testkit::Result
218218
/// byte reaches upstream, and the sandbox logs why.
219219
#[testkit::test]
220220
async fn fail_closed_middleware_blocks_uninspectable_traffic(cx: &mut Context) -> testkit::Result {
221-
if crate::skip_reading_sandbox_logs("fail_closed_middleware_blocks_uninspectable_traffic") {
222-
return Ok(());
223-
}
224221
let server = TcpServer::echo().await?;
225222
let policy = middleware_policy(server.port, "fail_closed", "")?;
226223
let sandbox = cx

‎tests/suites/conformance/unsupported.yaml‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,13 @@
1717
# the bug. A test can appear more than once with different issues, but not twice
1818
# for one environment. Branch Checks runs the program with each environment's
1919
# entries to validate this file; see tests/suites/conformance/README.md.
20-
[]
20+
# A gateway replica holds only the logs of the sandboxes connected to it, so a
21+
# log read on k3s-ha can miss them (#5462).
22+
- test: conformance::credential_gating::profile_endpoints_bind_static_credentials
23+
issue: https://github.com/NVIDIA/OpenShell/issues/5752
24+
environments:
25+
- ubuntu-k3s/k3s-ha
26+
- test: conformance::network_egress::fail_closed_middleware_blocks_uninspectable_traffic
27+
issue: https://github.com/NVIDIA/OpenShell/issues/5752
28+
environments:
29+
- ubuntu-k3s/k3s-ha

‎tests/tmachine/ansible/playbooks/openshell-k3s-ha.yaml‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,3 @@
104104
become: false
105105
vars:
106106
openshell_client_gateway_endpoint: "https://openshell.openshell.svc.cluster.local:{{ k3s_gateway_address.stdout.split(':')[1] }}"
107-
108-
# Sandbox logs are read from one replica only (#5462); tests that read
109-
# them skip themselves here until #5752.
110-
- name: Publish gateway test variables
111-
ansible.builtin.include_tasks: test-env.yaml
112-
vars:
113-
test_env_name: gateway
114-
test_env_vars:
115-
OPENSHELL_TEST_GATEWAY_REPLICAS: "3"

0 commit comments

Comments
 (0)