diff --git a/.github/workflows/rust-tests.yml b/.github/workflows/rust-tests.yml index 29fb611c..abd6de86 100644 --- a/.github/workflows/rust-tests.yml +++ b/.github/workflows/rust-tests.yml @@ -93,3 +93,33 @@ jobs: run: cargo build --release - name: run fork tests run: cd fork-tests && make + test_network: + runs-on: ubuntu-latest + container: ubuntu:24.04 + options: --privileged + env: + RUST_BACKTRACE: full + RUST_LOG: trace + services: + docker: + image: docker:dind + options: --privileged + ports: + - 2375:2375 + steps: + - uses: actions/checkout@v2 + + - name: install opensc and dependencies + run: apt-get update && apt-get install -y curl opensc openssl gcc xxd jq gnutls-bin make docker.io + + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + components: rustfmt, clippy, llvm-tools-preview + + - uses: Swatinem/rust-cache@v2 + - name: build release + run: cargo build --release + - name: run network tests + run: cargo t -p nethsm_pkcs11 --test basic diff --git a/pkcs11/tests/tools/mod.rs b/pkcs11/tests/tools/mod.rs index 850b7438..724c3cd2 100644 --- a/pkcs11/tests/tools/mod.rs +++ b/pkcs11/tests/tools/mod.rs @@ -307,7 +307,7 @@ pub fn run_tests( }; let mut test_dropper = TestDropper { serialize_test, - command_to_kill: Command::new("podman") + command_to_kill: Command::new("docker") .args([ "run", "--rm",