From 9742e81b641a53754c9119d96b43521765266b9c Mon Sep 17 00:00:00 2001 From: Seb M'Caw Date: Tue, 24 Sep 2024 19:26:15 +0100 Subject: [PATCH] test: building on an air-gapped system (#1760) * Add test for offline build * Move constraints to YAML file * Remove redundant build check * Change crates from git repos to .tgz archives --- .../air-gapping/my_index/crates/hello.tgz | Bin 0 -> 334 bytes .../air-gapping/my_index/crates/libhello.tgz | Bin 0 -> 428 bytes .../my_index/index/he/hello/hello-1.0.1.toml | 11 +++ .../air-gapping/my_index/index/index.toml | 1 + .../index/li/libhello/libhello-1.0.0.toml | 8 ++ testsuite/tests/workflows/air-gapping/test.py | 83 ++++++++++++++++++ .../tests/workflows/air-gapping/test.yaml | 10 +++ 7 files changed, 113 insertions(+) create mode 100644 testsuite/tests/workflows/air-gapping/my_index/crates/hello.tgz create mode 100644 testsuite/tests/workflows/air-gapping/my_index/crates/libhello.tgz create mode 100644 testsuite/tests/workflows/air-gapping/my_index/index/he/hello/hello-1.0.1.toml create mode 100644 testsuite/tests/workflows/air-gapping/my_index/index/index.toml create mode 100644 testsuite/tests/workflows/air-gapping/my_index/index/li/libhello/libhello-1.0.0.toml create mode 100644 testsuite/tests/workflows/air-gapping/test.py create mode 100644 testsuite/tests/workflows/air-gapping/test.yaml diff --git a/testsuite/tests/workflows/air-gapping/my_index/crates/hello.tgz b/testsuite/tests/workflows/air-gapping/my_index/crates/hello.tgz new file mode 100644 index 0000000000000000000000000000000000000000..a39010d27cf1902c1153f4a9ddc7cd3d7570ed4c GIT binary patch literal 334 zcmV-U0kQrciwFP!000001MStlZi6rs1z=`Bg~ik^DK=mR)(#z7b?DGB;>Qg{6e0u4 z>(@4fMp4@+RY+9zd<%$sEkK8B3RzXnoii&>i=xmRSri82QP}GvhXo=EI2XRqeasWO zjfV3+)}U{@L{aLzXUX=bzGL-2s<8RDDx2{eI4S>->HJyX3*>(ZpZVLfMUtmyzlRA} zh~V4&850Nj``n8h>Ye>bzVOfU-)*`>wIXA$+h1GPBqN`km_oqX1T|)`RAM+%s&r8%>PB$`FE?`VCzr79d?1W z%(}fjKu`Z$qv%W1t4uEMOV!f8mGs8dzYg~{-qoK|v(D6Q*=^FbI~AXjvL07WKO3`l ge+R)90ssI20000000000008hiA3Kd7F90Y20A9796#xJL literal 0 HcmV?d00001 diff --git a/testsuite/tests/workflows/air-gapping/my_index/crates/libhello.tgz b/testsuite/tests/workflows/air-gapping/my_index/crates/libhello.tgz new file mode 100644 index 0000000000000000000000000000000000000000..c5882e61a64bcdbdd93a0e082d77f0fedb4cad96 GIT binary patch literal 428 zcmV;d0aN}TiwFP!000001MQVhPlGTR#yRsTUOCM~=YUcUoJ>4uvN#h>Jdy%+W3sUn z$lSNLWk4JYE{kl&`2H@y`=@R4^m$3*V8)Xqz0pp`NaDJVdYZ07swXYu6`Dz?ODv1J z@_l5QwoNo}PI#tJA*EKc%+R-;x&q^*;wY`qv*r z7G*u|p#-LsbnEZZmi~lTrUs)P&(O&~*MG&rcQ)lvOAm3T>j1D4X~?5OaJW}t|1}j! zc#X|&m! z3)gM7!LL&S>R`LFbFQexp`^(8?rCH!;L~_n<)4b&AID1$1EcJ}g0))U!niC;)pWvn zbqtOF8}Cn7qUSvh`QIW|%l|ed6#ah=q#x%z%wgQ}`CBUBIW0uU{kvFXr7;JF{7F