From 4a2d96c215a193180075bd009dcc0af73e666b48 Mon Sep 17 00:00:00 2001 From: mdhont Date: Fri, 1 Sep 2023 13:35:10 +0200 Subject: [PATCH] [bitnami/dotnet] Fix Goss tests for dotnet, dotnet-sdk and aspnet-core Signed-off-by: mdhont --- .vib/aspnet-core/goss/aspnet-core.yaml | 2 +- .vib/aspnet-core/goss/vars.yaml | 2 +- .vib/dotnet-sdk/goss/dotnet-sdk.yaml | 2 +- .vib/dotnet-sdk/goss/vars.yaml | 2 +- .vib/dotnet/goss/dotnet.yaml | 2 +- .vib/dotnet/goss/vars.yaml | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.vib/aspnet-core/goss/aspnet-core.yaml b/.vib/aspnet-core/goss/aspnet-core.yaml index a6e0cbeee38fd..f7f0bcba6826b 100644 --- a/.vib/aspnet-core/goss/aspnet-core.yaml +++ b/.vib/aspnet-core/goss/aspnet-core.yaml @@ -5,7 +5,7 @@ command: check-bin-caps: exec: getcap /opt/bitnami/aspnet-core/bin/dotnet stdout: - - {{ .Vars.binary.capabilities }} + - /{{ .Vars.binary.capabilities }}/ exit-status: 0 check-installed-runtimes: exec: dotnet --list-runtimes diff --git a/.vib/aspnet-core/goss/vars.yaml b/.vib/aspnet-core/goss/vars.yaml index c50c3059b437a..020ebbaecdaf0 100644 --- a/.vib/aspnet-core/goss/vars.yaml +++ b/.vib/aspnet-core/goss/vars.yaml @@ -12,4 +12,4 @@ version: bin_name: dotnet flag: --info binary: - capabilities: cap_net_bind_service=eip + capabilities: cap_net_bind_service[+=]eip diff --git a/.vib/dotnet-sdk/goss/dotnet-sdk.yaml b/.vib/dotnet-sdk/goss/dotnet-sdk.yaml index 5166dcee85ab9..d73d9b21cdcea 100644 --- a/.vib/dotnet-sdk/goss/dotnet-sdk.yaml +++ b/.vib/dotnet-sdk/goss/dotnet-sdk.yaml @@ -5,7 +5,7 @@ command: check-bin-caps: exec: getcap /opt/bitnami/dotnet-sdk/bin/dotnet stdout: - - {{ .Vars.binary.capabilities }} + - /{{ .Vars.binary.capabilities }}/ exit-status: 0 check-installed-runtimes: exec: dotnet --list-runtimes diff --git a/.vib/dotnet-sdk/goss/vars.yaml b/.vib/dotnet-sdk/goss/vars.yaml index 41795a70807db..29f5e475e1ab2 100644 --- a/.vib/dotnet-sdk/goss/vars.yaml +++ b/.vib/dotnet-sdk/goss/vars.yaml @@ -13,4 +13,4 @@ version: bin_name: dotnet flag: --version binary: - capabilities: cap_net_bind_service=eip + capabilities: cap_net_bind_service[+=]eip diff --git a/.vib/dotnet/goss/dotnet.yaml b/.vib/dotnet/goss/dotnet.yaml index bc9437c9b3553..92475ef415939 100644 --- a/.vib/dotnet/goss/dotnet.yaml +++ b/.vib/dotnet/goss/dotnet.yaml @@ -5,7 +5,7 @@ command: check-bin-caps: exec: getcap /opt/bitnami/dotnet/bin/dotnet stdout: - - {{ .Vars.binary.capabilities }} + - /{{ .Vars.binary.capabilities }}/ exit-status: 0 check-installed-runtimes: exec: dotnet --list-runtimes diff --git a/.vib/dotnet/goss/vars.yaml b/.vib/dotnet/goss/vars.yaml index 1b330164fa743..237c9a07870a3 100644 --- a/.vib/dotnet/goss/vars.yaml +++ b/.vib/dotnet/goss/vars.yaml @@ -12,4 +12,4 @@ version: bin_name: dotnet flag: --info binary: - capabilities: cap_net_bind_service=eip + capabilities: cap_net_bind_service[+=]eip