summaryrefslogtreecommitdiffstats
path: root/nixos/tests/awscli.nix
diff options
context:
space:
mode:
authorTim Steinbach <tim@nequissimus.com>2020-11-25 13:00:41 -0500
committerTim Steinbach <tim@nequissimus.com>2020-11-25 13:00:41 -0500
commit4196aa9660a3168ef28dd783a0fff4e11695506e (patch)
treeeaa9c4ef7975b5e7f1294fc5ce03f1fec6f20b30 /nixos/tests/awscli.nix
parent360a14dcf098642aba17221b698522af4c62aa0b (diff)
awscli: Add test
Diffstat (limited to 'nixos/tests/awscli.nix')
-rw-r--r--nixos/tests/awscli.nix17
1 files changed, 17 insertions, 0 deletions
diff --git a/nixos/tests/awscli.nix b/nixos/tests/awscli.nix
new file mode 100644
index 000000000000..35bdd6d99b1a
--- /dev/null
+++ b/nixos/tests/awscli.nix
@@ -0,0 +1,17 @@
+import ./make-test-python.nix ({ pkgs, ...} : {
+ name = "awscli";
+ meta = with pkgs.stdenv.lib.maintainers; {
+ maintainers = [ nequissimus ];
+ };
+
+ machine = { pkgs, ... }:
+ {
+ environment.systemPackages = [ pkgs.awscli ];
+ };
+
+ testScript =
+ ''
+ assert "${pkgs.python3Packages.botocore.version}" in machine.succeed("aws --version")
+ assert "${pkgs.awscli.version}" in machine.succeed("aws --version")
+ '';
+})