From 00df726998b3a8d3e942d92f3d89e48e20729abc Mon Sep 17 00:00:00 2001 From: clux Date: Mon, 2 May 2022 22:49:21 +0100 Subject: [PATCH] Add failing tests for oneOf Signed-off-by: clux --- justfile | 10 +++++----- src/analyzer.rs | 1 - 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/justfile b/justfile index e9ccc55..4fcb6b3 100644 --- a/justfile +++ b/justfile @@ -68,11 +68,11 @@ test-linkerd-serverauth: cargo test --test runner -- --nocapture test-linkerd-server: - #kubectl apply --server-side -f tests/server-crd.yaml - #cargo run --bin kopium -- -ibz servers.policy.linkerd.io > tests/gen.rs - #echo "pub type CR = Server;" >> tests/gen.rs - #kubectl apply -f tests/server.yaml - #cargo test --test runner -- --nocapture + kubectl apply --server-side -f tests/server-crd.yaml + cargo run --bin kopium -- -ibz servers.policy.linkerd.io > tests/gen.rs + echo "pub type CR = Server;" >> tests/gen.rs + kubectl apply -f tests/server.yaml + cargo test --test runner -- --nocapture test-istio-destrule: kubectl apply --server-side -f tests/destinationrule-crd.yaml diff --git a/src/analyzer.rs b/src/analyzer.rs index 4d67455..b9486ab 100644 --- a/src/analyzer.rs +++ b/src/analyzer.rs @@ -672,7 +672,6 @@ type: object } #[test] - #[ignore] // oneof support not done fn enum_oneof() { init(); let schema_str = r#"