trustee-guest-components/0007-Fedora-remove-testcontainers-dependency.patch
Uri Lublin f5a12748a0 Initial commit on c10s
Added gating.yaml

Resolves: RHEL-73770
2025-01-21 15:01:46 +02:00

58 lines
1.9 KiB
Diff

From c7c063bd76b9b1c8befb514b77b4524a40015066 Mon Sep 17 00:00:00 2001
From: Uri Lublin <uril@redhat.com>
Date: Tue, 10 Dec 2024 02:50:53 +0200
Subject: [PATCH] Fedora: remove testcontainers dependency
Content-type: text/plain
Not in Fedora.
Skip tests that use it.
Signed-off-by: Uri Lublin <uril@redhat.com>
---
Cargo.toml | 1 -
attestation-agent/kbs_protocol/Cargo.toml | 1 -
attestation-agent/kbs_protocol/src/client/rcar_client.rs | 3 ++-
3 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/Cargo.toml b/Cargo.toml
index e7dc965..7fb9b15 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -42,7 +42,6 @@ serial_test = "3"
sha2 = "0.10.7"
strum = { version = "0.26", features = ["derive"] }
tempfile = "3.14"
-testcontainers = "0.14"
thiserror = "2.0"
tokio = "1.42"
toml = "0.8.19"
diff --git a/attestation-agent/kbs_protocol/Cargo.toml b/attestation-agent/kbs_protocol/Cargo.toml
index ab86141..e29be9c 100644
--- a/attestation-agent/kbs_protocol/Cargo.toml
+++ b/attestation-agent/kbs_protocol/Cargo.toml
@@ -30,7 +30,6 @@ zeroize.workspace = true
rstest.workspace = true
serial_test.workspace = true
tempfile.workspace = true
-testcontainers.workspace = true
tokio = { workspace = true, features = [ "rt", "macros", "fs", "process" ]}
[build-dependencies]
diff --git a/attestation-agent/kbs_protocol/src/client/rcar_client.rs b/attestation-agent/kbs_protocol/src/client/rcar_client.rs
index 45b194e..1059927 100644
--- a/attestation-agent/kbs_protocol/src/client/rcar_client.rs
+++ b/attestation-agent/kbs_protocol/src/client/rcar_client.rs
@@ -355,7 +355,8 @@ impl KbsClientCapabilities for KbsClient<Box<dyn EvidenceProvider>> {
}
}
-#[cfg(test)]
+// Fedora: no testcontainers so ignore the following test
+#[cfg(any())]
mod test {
use crypto::HashAlgorithm;
use rstest::rstest;
--
2.47.1