@@ -167,6 +167,24 @@ var _ = Describe("Podman Info", func() {
167167Expect (session .OutputToString ()).To (Equal ("netavark" ))
168168})
169169
170+ It ("Podman info: check default network from configuration" ,func () {
171+ configPath := filepath .Join (podmanTest .TempDir ,"containers.conf" )
172+
173+ os .Setenv ("CONTAINERS_CONF_OVERRIDE" ,configPath )
174+
175+ customNetName := "my-custom-test-network"
176+ configContent := fmt .Sprintf ("[network]\n default_network=%q\n " ,customNetName )
177+
178+ err := os .WriteFile (configPath , []byte (configContent ),os .ModePerm )
179+ Expect (err ).ToNot (HaveOccurred ())
180+ podmanTest .RestartRemoteService ()
181+
182+ session := podmanTest .Podman ([]string {"info" ,"--format" ,"{{.Host.NetworkBackendInfo.DefaultNetwork}}" })
183+ session .WaitWithDefaultTimeout ()
184+ Expect (session ).To (ExitCleanly ())
185+ Expect (session .OutputToString ()).To (Equal (customNetName ))
186+ })
187+
170188It ("Podman info: check desired storage driver" ,func () {
171189// defined in .cirrus.yml
172190want := os .Getenv ("CI_DESIRED_STORAGE" )