Skip to content
This repository has been archived by the owner on Jan 12, 2025. It is now read-only.

Commit

Permalink
tests; added more gh-release tests
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbraun89 authored Apr 8, 2023
1 parent ac4b1b2 commit 892f355
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 10 deletions.
2 changes: 0 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ def fix_requirement_line(line: str) -> str:
]




setup(
name="nanolayer",
use_scm_version=True,
Expand Down
32 changes: 24 additions & 8 deletions tests/installers/gh_release/test_gh_release_installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
@pytest.mark.parametrize(
"test_command,excpected_result,image,repo,target,docker_platform",
[
(
(
"upx --version",
0,
"mcr.microsoft.com/devcontainers/base:debian",
Expand All @@ -24,55 +24,55 @@
"doctl",
"linux/amd64",
),
(
(# classic
"argocd --help",
0,
"mcr.microsoft.com/devcontainers/base:debian",
"argoproj/argo-cd",
"argocd",
"linux/amd64",
),
(
( # alpine
"argocd --help",
0,
"mcr.microsoft.com/devcontainers/base:alpine",
"argoproj/argo-cd",
"argocd",
"linux/amd64",
),
(
( # arm
"argocd --help",
0,
"mcr.microsoft.com/devcontainers/base:debian",
"argoproj/argo-cd",
"argocd",
"linux/arm64",
),
(
( # two binaries at same repo
"which kubectx",
0,
"mcr.microsoft.com/devcontainers/base:debian",
"ahmetb/kubectx",
"kubectx",
"linux/amd64",
),
(
( # two binaries at same repo
"which kubens",
0,
"mcr.microsoft.com/devcontainers/base:debian",
"ahmetb/kubectx",
"kubens",
"linux/amd64",
),
(
( # control group for arm
"terrascan version",
0,
"mcr.microsoft.com/devcontainers/base:debian",
"tenable/terrascan",
"terrascan",
"linux/amd64",
),
(
( # arm
"terrascan version",
0,
"mcr.microsoft.com/devcontainers/base:debian",
Expand All @@ -88,6 +88,22 @@
"gh",
"linux/amd64",
),
( # folder named btop in archive
"btop --version",
0,
"mcr.microsoft.com/devcontainers/base:debian",
"aristocratos/btop",
"btop",
"linux/amd64",
),
( # zip archive for linux
"exa --version",
0,
"mcr.microsoft.com/devcontainers/base:debian",
"ogham/exa",
"exa",
"linux/amd64",
),
(
"pwsh --version",
1,
Expand Down

0 comments on commit 892f355

Please sign in to comment.