Skip to content

Make TestMTUNetworkCRUDL deterministic#2593

Merged
EmilienM merged 1 commit intogophercloud:masterfrom
shiftstack:deterministic-TestMTUNetworkCRUDL
Mar 16, 2023
Merged

Make TestMTUNetworkCRUDL deterministic#2593
EmilienM merged 1 commit intogophercloud:masterfrom
shiftstack:deterministic-TestMTUNetworkCRUDL

Conversation

@mandre
Copy link
Copy Markdown
Contributor

@mandre mandre commented Mar 14, 2023

It seems the MTU update API does not returned an object with the updated_at field to it's new value. This can cause our test to fail if we check the return of the Update function against the same object retrieved from a Get call, as the updated_at field can differ.

Instead, just checked for the fields we change in this test.

Fix #2592

It seems the MTU update API does not returned an object with the
`updated_at` field to it's new value. This can cause our test to fail if
we check the return of the Update function against the same object
retrieved from a Get call, as the `updated_at` field can differ.

Instead, just checked for the fields we change in this test.

Fix gophercloud#2592
@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage: 79.145%. Remained the same when pulling 6bb7672 on shiftstack:deterministic-TestMTUNetworkCRUDL into a1187d3 on gophercloud:master.

@EmilienM EmilienM merged commit 81540a7 into gophercloud:master Mar 16, 2023
@EmilienM EmilienM deleted the deterministic-TestMTUNetworkCRUDL branch March 16, 2023 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TestMTUNetworkCRUDL acceptance test is not deterministic

3 participants