Skip to content

Commit

Permalink
Merge pull request #2857 from gophercloud/bp-v1-9379f86-ada7a8b
Browse files Browse the repository at this point in the history
[v1] Fix networking acceptance tests
  • Loading branch information
pierreprinetti committed Jan 2, 2024
2 parents 05b77af + e707ba8 commit 511095e
Showing 1 changed file with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ func TestPortsbindingCRUD(t *testing.T) {
defer networking.DeletePort(t, client, port.ID)

tools.PrintResource(t, port)
th.AssertEquals(t, port.HostID, hostID)
th.AssertEquals(t, port.VNICType, "normal")
th.AssertDeepEquals(t, port.Profile, profile)
th.AssertEquals(t, hostID, port.HostID)
th.AssertEquals(t, "normal", port.VNICType)
th.AssertDeepEquals(t, profile, port.Profile)

// Update port
newPortName := ""
Expand All @@ -59,7 +59,6 @@ func TestPortsbindingCRUD(t *testing.T) {
finalUpdateOpts = portsbinding.UpdateOptsExt{
UpdateOptsBuilder: updateOpts,
HostID: &newHostID,
VNICType: "baremetal",
Profile: newProfile,
}

Expand All @@ -73,9 +72,9 @@ func TestPortsbindingCRUD(t *testing.T) {
th.AssertNoErr(t, err)

tools.PrintResource(t, newPort)
th.AssertEquals(t, newPort.Description, newPortName)
th.AssertEquals(t, newPort.Description, newPortDescription)
th.AssertEquals(t, newPort.HostID, newHostID)
th.AssertEquals(t, newPort.VNICType, "baremetal")
th.AssertDeepEquals(t, newPort.Profile, newProfile)
th.AssertEquals(t, newPortName, newPort.Description)
th.AssertEquals(t, newPortDescription, newPort.Description)
th.AssertEquals(t, newHostID, newPort.HostID)
th.AssertEquals(t, "normal", newPort.VNICType)
th.AssertDeepEquals(t, newProfile, newPort.Profile)
}

0 comments on commit 511095e

Please sign in to comment.