diff --git a/tests/keyset.bats b/tests/keyset.bats index b2c606d..69d40fd 100644 --- a/tests/keyset.bats +++ b/tests/keyset.bats @@ -15,6 +15,9 @@ function teardown() { } @test "Create new keysets" { + if [ "$(arch)" != "x86_64" ]; then + skip "Not supported on $(arch)" + fi trust keyset add zomg trust keyset add --org "My organization" homenet cnt=$(trust keyset list | wc -l) diff --git a/tests/project.bats b/tests/project.bats index b469554..01e8f68 100644 --- a/tests/project.bats +++ b/tests/project.bats @@ -9,11 +9,25 @@ function teardown() { } @test "Keyset creation creates default project" { + if [ "$(arch)" != "x86_64" ]; then + skip "Not supported on $(arch)" + fi trust keyset add zomg trust project list zomg | grep default } @test "Create project" { + trust keyset add snakeoil + trust project add snakeoil newproject + trust project list snakeoil | grep newproject + cnt=$(trust project list snakeoil | wc -l) + [ $cnt -eq 2 ] +} + +@test "Create project in custom keyset" { + if [ "$(arch)" != "x86_64" ]; then + skip "Not supported on $(arch)" + fi trust keyset add zomg trust project add zomg newproject trust project list zomg | grep newproject diff --git a/tests/sudi.bats b/tests/sudi.bats index a4f8091..baf9179 100644 --- a/tests/sudi.bats +++ b/tests/sudi.bats @@ -9,17 +9,26 @@ function teardown() { } @test "Keyset creation creates sudi" { + if [ "$(arch)" != "x86_64" ]; then + skip "Not supported on $(arch)" + fi trust keyset add zomg trust sudi list zomg default } @test "Project creation creates sudi" { + if [ "$(arch)" != "x86_64" ]; then + skip "Not supported on $(arch)" + fi trust keyset add zomg trust project add zomg newproject trust sudi list zomg newproject } @test "Create sudi" { + if [ "$(arch)" != "x86_64" ]; then + skip "Not supported on $(arch)" + fi trust keyset add zomg trust project add zomg newproject trust sudi add zomg newproject # auto-create uuid