diff options
author | Mrinal Purohit <github@mrinalpurohit.in> | 2021-10-27 10:40:06 +0530 |
---|---|---|
committer | Mrinal Purohit <github@mrinalpurohit.in> | 2021-10-27 11:15:08 +0530 |
commit | 6bc1c211491ad8e1c970c3118b8ea65375757bea (patch) | |
tree | f81fca050a8a6d54d7a1a907808074e22b579620 /nixos | |
parent | 4508ffac3ad3afe58d4c067db865edffa62fe43d (diff) | |
download | nixlib-6bc1c211491ad8e1c970c3118b8ea65375757bea.tar nixlib-6bc1c211491ad8e1c970c3118b8ea65375757bea.tar.gz nixlib-6bc1c211491ad8e1c970c3118b8ea65375757bea.tar.bz2 nixlib-6bc1c211491ad8e1c970c3118b8ea65375757bea.tar.lz nixlib-6bc1c211491ad8e1c970c3118b8ea65375757bea.tar.xz nixlib-6bc1c211491ad8e1c970c3118b8ea65375757bea.tar.zst nixlib-6bc1c211491ad8e1c970c3118b8ea65375757bea.zip |
nixos/tests: add google-cloud-sdk
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/tests/all-tests.nix | 1 | ||||
-rw-r--r-- | nixos/tests/google-cloud-sdk.nix | 13 |
2 files changed, 14 insertions, 0 deletions
diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index 9e5dbf1052bb..63c307c09833 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -157,6 +157,7 @@ in gobgpd = handleTest ./gobgpd.nix {}; gocd-agent = handleTest ./gocd-agent.nix {}; gocd-server = handleTest ./gocd-server.nix {}; + google-cloud-sdk = handleTest ./google-cloud-sdk.nix {}; google-oslogin = handleTest ./google-oslogin {}; gotify-server = handleTest ./gotify-server.nix {}; grafana = handleTest ./grafana.nix {}; diff --git a/nixos/tests/google-cloud-sdk.nix b/nixos/tests/google-cloud-sdk.nix new file mode 100644 index 000000000000..3150b2d53c2c --- /dev/null +++ b/nixos/tests/google-cloud-sdk.nix @@ -0,0 +1,13 @@ +import ./make-test-python.nix ({ pkgs, ... }: { + name = "google-cloud-sdk"; + meta = with pkgs.lib.maintainers; { maintainers = [ iammrinal0 ]; }; + + machine = { pkgs, ... }: { + environment.systemPackages = [ pkgs.google-cloud-sdk ]; + }; + + testScript = '' + import json + assert "${pkgs.google-cloud-sdk.version}" in json.loads(machine.succeed("gcloud version --format json"))["Google Cloud SDK"] + ''; +}) |