3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/nixos/tests/google-cloud-sdk.nix
2021-10-27 11:15:08 +05:30

14 lines
416 B
Nix

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"]
'';
})