Skip to content

Commit

Permalink
Merge pull request #1997 from Luap99/dnsname-test
Browse files Browse the repository at this point in the history
CI: update VM to fedora 40
  • Loading branch information
openshift-merge-bot[bot] committed May 16, 2024
2 parents fb9cee5 + 019cb75 commit 6310b06
Show file tree
Hide file tree
Showing 15 changed files with 6 additions and 97 deletions.
6 changes: 2 additions & 4 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ env:
####
#### image names to test with (double-quotes around names are critical)
####
FEDORA_NAME: "fedora-39"
IMAGE_SUFFIX: "c20240411t124913z-f39f38d13"
FEDORA_NAME: "fedora-40"
IMAGE_SUFFIX: "c20240513t140131z-f40f39d13"
FEDORA_CACHE_IMAGE_NAME: "fedora-${IMAGE_SUFFIX}"
FEDORA_CONTAINER_FQIN: "quay.io/libpod/fedora_podman:${IMAGE_SUFFIX}"

Expand Down Expand Up @@ -47,8 +47,6 @@ testing_task:
env:
NETAVARK_BINARY: "/usr/libexec/podman/netavark"
test_script:
# FIXME: 2024-03-21: remove this when bumping VM to fc40
- dnf install -y podman-plugins
- mkdir "$GOLANGCI_LINT_CACHE"
- export PATH="$PATH:$GOPATH/bin"
- gpg --batch --passphrase '' --quick-gen-key tester@localhost default default never
Expand Down
6 changes: 4 additions & 2 deletions libnetwork/cni/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1024,6 +1024,7 @@ var _ = Describe("Config", func() {
})

It("create bridge with dns", func() {
SkipIfNoDnsname()
network := types.Network{
Driver: "bridge",
DNSEnabled: true,
Expand Down Expand Up @@ -1212,6 +1213,7 @@ var _ = Describe("Config", func() {
})

It("network create internal and dns", func() {
SkipIfNoDnsname()
network := types.Network{
Driver: "bridge",
Internal: true,
Expand Down Expand Up @@ -1737,12 +1739,12 @@ func grepNotFile(path, match string) {

func grepFile(not bool, path, match string) {
data, err := os.ReadFile(path)
ExpectWithOffset(1, err).ToNot(HaveOccurred())
ExpectWithOffset(2, err).ToNot(HaveOccurred())
matcher := ContainSubstring(match)
if not {
matcher = Not(matcher)
}
ExpectWithOffset(1, string(data)).To(matcher)
ExpectWithOffset(2, string(data)).To(matcher)
}

// HaveNetworkName is a custom GomegaMatcher to match a network name
Expand Down
7 changes: 0 additions & 7 deletions libnetwork/cni/testfiles/invalid/invalid_gateway.conflist
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,6 @@
},
{
"type": "tuning"
},
{
"type": "dnsname",
"domainName": "dns.podman",
"capabilities": {
"aliases": true
}
}
]
}
7 changes: 0 additions & 7 deletions libnetwork/cni/testfiles/invalid/invalidname.conflist
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,6 @@
},
{
"type": "tuning"
},
{
"type": "dnsname",
"domainName": "dns.podman",
"capabilities": {
"aliases": true
}
}
]
}
7 changes: 0 additions & 7 deletions libnetwork/cni/testfiles/invalid/noname.conflist
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,6 @@
},
{
"type": "tuning"
},
{
"type": "dnsname",
"domainName": "dns.podman",
"capabilities": {
"aliases": true
}
}
]
}
7 changes: 0 additions & 7 deletions libnetwork/cni/testfiles/invalid/samename1.conflist
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,6 @@
},
{
"type": "tuning"
},
{
"type": "dnsname",
"domainName": "dns.podman",
"capabilities": {
"aliases": true
}
}
]
}
7 changes: 0 additions & 7 deletions libnetwork/cni/testfiles/invalid/samename2.conflist
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,6 @@
},
{
"type": "tuning"
},
{
"type": "dnsname",
"domainName": "dns.podman",
"capabilities": {
"aliases": true
}
}
]
}
7 changes: 0 additions & 7 deletions libnetwork/cni/testfiles/valid/bridge.conflist
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,6 @@
},
{
"type": "tuning"
},
{
"type": "dnsname",
"domainName": "dns.podman",
"capabilities": {
"aliases": true
}
}
]
}
7 changes: 0 additions & 7 deletions libnetwork/cni/testfiles/valid/dualstack.conflist
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,6 @@
},
{
"type": "tuning"
},
{
"type": "dnsname",
"domainName": "dns.podman",
"capabilities": {
"aliases": true
}
}
]
}
7 changes: 0 additions & 7 deletions libnetwork/cni/testfiles/valid/ipam-empty.conflist
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,6 @@
},
{
"type": "tuning"
},
{
"type": "dnsname",
"domainName": "dns.podman",
"capabilities": {
"aliases": true
}
}
]
}
7 changes: 0 additions & 7 deletions libnetwork/cni/testfiles/valid/ipam-none.conflist
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,6 @@
},
{
"type": "tuning"
},
{
"type": "dnsname",
"domainName": "dns.podman",
"capabilities": {
"aliases": true
}
}
]
}
7 changes: 0 additions & 7 deletions libnetwork/cni/testfiles/valid/ipam-static.conflist
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,6 @@
},
{
"type": "tuning"
},
{
"type": "dnsname",
"domainName": "dns.podman",
"capabilities": {
"aliases": true
}
}
]
}
7 changes: 0 additions & 7 deletions libnetwork/cni/testfiles/valid/label.conflist
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,6 @@
},
{
"type": "tuning"
},
{
"type": "dnsname",
"domainName": "dns.podman",
"capabilities": {
"aliases": true
}
}
]
}
7 changes: 0 additions & 7 deletions libnetwork/cni/testfiles/valid/mtu.conflist
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,6 @@
},
{
"type": "tuning"
},
{
"type": "dnsname",
"domainName": "dns.podman",
"capabilities": {
"aliases": true
}
}
]
}
7 changes: 0 additions & 7 deletions libnetwork/cni/testfiles/valid/vlan.conflist
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,6 @@
},
{
"type": "tuning"
},
{
"type": "dnsname",
"domainName": "dns.podman",
"capabilities": {
"aliases": true
}
}
]
}

1 comment on commit 6310b06

@packit-as-a-service
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

podman-next COPR build failed. @containers/packit-build please check.

Please sign in to comment.