Merge pull request #143375 from Synthetica9/google-cloud-sdk
This commit is contained in:
commit
7dd444121a
3 changed files with 4 additions and 17 deletions
|
@ -157,7 +157,6 @@ in
|
||||||
gobgpd = handleTest ./gobgpd.nix {};
|
gobgpd = handleTest ./gobgpd.nix {};
|
||||||
gocd-agent = handleTest ./gocd-agent.nix {};
|
gocd-agent = handleTest ./gocd-agent.nix {};
|
||||||
gocd-server = handleTest ./gocd-server.nix {};
|
gocd-server = handleTest ./gocd-server.nix {};
|
||||||
google-cloud-sdk = handleTest ./google-cloud-sdk.nix {};
|
|
||||||
google-oslogin = handleTest ./google-oslogin {};
|
google-oslogin = handleTest ./google-oslogin {};
|
||||||
gotify-server = handleTest ./gotify-server.nix {};
|
gotify-server = handleTest ./gotify-server.nix {};
|
||||||
grafana = handleTest ./grafana.nix {};
|
grafana = handleTest ./grafana.nix {};
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
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"]
|
|
||||||
'';
|
|
||||||
})
|
|
|
@ -117,9 +117,10 @@ in stdenv.mkDerivation rec {
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
passthru = {
|
doInstallCheck = true;
|
||||||
tests = { inherit (nixosTests) google-cloud-sdk; };
|
installCheckPhase = ''
|
||||||
};
|
$out/bin/gcloud version --format json | jq '."Google Cloud SDK"' | grep "${version}"
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Tools for the google cloud platform";
|
description = "Tools for the google cloud platform";
|
||||||
|
|
Loading…
Reference in a new issue