Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ubuntu] add testcase for podman networking #7763

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion images/linux/scripts/installers/containers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,15 @@

source $HELPER_SCRIPTS/os.sh

install_packages=(podman buildah skopeo)
#
# pin podman due to https://github.com/actions/runner-images/issues/7753
# https://bugs.launchpad.net/ubuntu/+source/libpod/+bug/2024394
#
if isUbuntu20; then
install_packages=(podman buildah skopeo)
else
install_packages=(podman=3.4.4+ds1-1ubuntu1 buildah skopeo)
fi

# Packages is available in the official Ubuntu upstream starting from Ubuntu 21
if isUbuntu20; then
Expand Down
6 changes: 6 additions & 0 deletions images/linux/scripts/tests/Tools.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,12 @@ Describe "Containers" {

"$ContainerCommand -v" | Should -ReturnZeroExitCode
}

# https://github.com/actions/runner-images/issues/7753
It "podman networking" -TestCases "podman CNI plugins" {
"podman network create -d bridge test-net && podman network ls" | Should -Not -MatchCommandOutput "Error"
}

}

Describe "nvm" {
Expand Down