|
5 | 5 | "net"
|
6 | 6 |
|
7 | 7 | "github.com/containers/common/libnetwork/types"
|
| 8 | + "github.com/containers/podman/v5/pkg/domain/entities" |
8 | 9 | . "github.com/containers/podman/v5/test/utils"
|
9 | 10 | "github.com/containers/storage/pkg/stringid"
|
10 | 11 | . "github.com/onsi/ginkgo/v2"
|
@@ -32,7 +33,7 @@ var _ = Describe("Podman network create", func() {
|
32 | 33 | Expect(inspect).Should(ExitCleanly())
|
33 | 34 |
|
34 | 35 | // JSON the network configuration into something usable
|
35 |
| - var results []types.Network |
| 36 | + var results []entities.NetworkInspectReport |
36 | 37 | err := json.Unmarshal([]byte(inspect.OutputToString()), &results)
|
37 | 38 | Expect(err).ToNot(HaveOccurred())
|
38 | 39 | Expect(results).To(HaveLen(1))
|
@@ -84,7 +85,7 @@ var _ = Describe("Podman network create", func() {
|
84 | 85 | Expect(inspect).Should(ExitCleanly())
|
85 | 86 |
|
86 | 87 | // JSON the network configuration into something usable
|
87 |
| - var results []types.Network |
| 88 | + var results []entities.NetworkInspectReport |
88 | 89 | err := json.Unmarshal([]byte(inspect.OutputToString()), &results)
|
89 | 90 | Expect(err).ToNot(HaveOccurred())
|
90 | 91 | Expect(results).To(HaveLen(1))
|
@@ -125,7 +126,7 @@ var _ = Describe("Podman network create", func() {
|
125 | 126 | Expect(inspect).Should(ExitCleanly())
|
126 | 127 |
|
127 | 128 | // JSON the network configuration into something usable
|
128 |
| - var results []types.Network |
| 129 | + var results []entities.NetworkInspectReport |
129 | 130 | err := json.Unmarshal([]byte(inspect.OutputToString()), &results)
|
130 | 131 | Expect(err).ToNot(HaveOccurred())
|
131 | 132 | Expect(results).To(HaveLen(1))
|
@@ -168,7 +169,7 @@ var _ = Describe("Podman network create", func() {
|
168 | 169 | Expect(inspect).Should(ExitCleanly())
|
169 | 170 |
|
170 | 171 | // JSON the network configuration into something usable
|
171 |
| - var results []types.Network |
| 172 | + var results []entities.NetworkInspectReport |
172 | 173 | err := json.Unmarshal([]byte(inspect.OutputToString()), &results)
|
173 | 174 | Expect(err).ToNot(HaveOccurred())
|
174 | 175 | Expect(results).To(HaveLen(1))
|
@@ -213,7 +214,7 @@ var _ = Describe("Podman network create", func() {
|
213 | 214 | Expect(inspect).Should(ExitCleanly())
|
214 | 215 |
|
215 | 216 | // JSON the network configuration into something usable
|
216 |
| - var results []types.Network |
| 217 | + var results []entities.NetworkInspectReport |
217 | 218 | err := json.Unmarshal([]byte(inspect.OutputToString()), &results)
|
218 | 219 | Expect(err).ToNot(HaveOccurred())
|
219 | 220 | Expect(results).To(HaveLen(1))
|
@@ -254,7 +255,7 @@ var _ = Describe("Podman network create", func() {
|
254 | 255 | Expect(inspect).Should(ExitCleanly())
|
255 | 256 |
|
256 | 257 | // JSON the network configuration into something usable
|
257 |
| - var results []types.Network |
| 258 | + var results []entities.NetworkInspectReport |
258 | 259 | err := json.Unmarshal([]byte(inspect.OutputToString()), &results)
|
259 | 260 | Expect(err).ToNot(HaveOccurred())
|
260 | 261 | Expect(results).To(HaveLen(1))
|
@@ -284,7 +285,7 @@ var _ = Describe("Podman network create", func() {
|
284 | 285 | Expect(inspect).Should(ExitCleanly())
|
285 | 286 |
|
286 | 287 | // JSON the network configuration into something usable
|
287 |
| - var results []types.Network |
| 288 | + var results []entities.NetworkInspectReport |
288 | 289 | err := json.Unmarshal([]byte(inspect.OutputToString()), &results)
|
289 | 290 | Expect(err).ToNot(HaveOccurred())
|
290 | 291 | Expect(results).To(HaveLen(1))
|
@@ -323,7 +324,7 @@ var _ = Describe("Podman network create", func() {
|
323 | 324 | Expect(inspect).Should(ExitCleanly())
|
324 | 325 |
|
325 | 326 | // JSON the network configuration into something usable
|
326 |
| - var results []types.Network |
| 327 | + var results []entities.NetworkInspectReport |
327 | 328 | err := json.Unmarshal([]byte(inspect.OutputToString()), &results)
|
328 | 329 | Expect(err).ToNot(HaveOccurred())
|
329 | 330 | Expect(results).To(HaveLen(1))
|
@@ -711,7 +712,7 @@ var _ = Describe("Podman network create", func() {
|
711 | 712 | Expect(inspect).Should(ExitCleanly())
|
712 | 713 |
|
713 | 714 | // JSON the network configuration into something usable
|
714 |
| - var results []types.Network |
| 715 | + var results []entities.NetworkInspectReport |
715 | 716 | err := json.Unmarshal([]byte(inspect.OutputToString()), &results)
|
716 | 717 | Expect(err).ToNot(HaveOccurred())
|
717 | 718 | Expect(results).To(HaveLen(1))
|
|
0 commit comments