-
Notifications
You must be signed in to change notification settings - Fork 514
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make fixtures part of tests #2811
Merged
pierreprinetti
merged 1 commit into
gophercloud:master
from
shiftstack:fixtures-internal
Oct 16, 2023
Merged
Make fixtures part of tests #2811
pierreprinetti
merged 1 commit into
gophercloud:master
from
shiftstack:fixtures-internal
Oct 16, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
By renaming the fixtures to `fixtures_test`, we mark them as test, and no longer part of the public API. Some files were left out as they were included in other tests: $ grep "/testing" -R openstack | cut -d " " -f 2 | sort | uniq "github.com/gophercloud/gophercloud/openstack/baremetalintrospection/v1/introspection/testing" "github.com/gophercloud/gophercloud/openstack/baremetal/inventory/testing" "github.com/gophercloud/gophercloud/openstack/common/extensions/testing" "github.com/gophercloud/gophercloud/openstack/identity/v3/tokens/testing" "github.com/gophercloud/gophercloud/openstack/networking/v2/extensions/layer3/floatingips/testing" "github.com/gophercloud/gophercloud/openstack/networking/v2/networks/testing" "github.com/gophercloud/gophercloud/openstack/networking/v2/ports/testing" "github.com/gophercloud/gophercloud/openstack/objectstorage/v1/accounts/testing" "github.com/gophercloud/gophercloud/openstack/objectstorage/v1/containers/testing" This should prevent `go-apidiff` from complaining when modifying fixtures.
LGTM in principle; let's see what the CI thinks of that. |
pierreprinetti
approved these changes
Oct 16, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Baremetal fails in the deployment phase
Labels |
mandre
added a commit
to shiftstack/gophercloud
that referenced
this pull request
Mar 22, 2024
The PR removing the code for CDN [1] merged around the same time the fixtures were modified to no longer be part of the public API [2], causing these files to stay in the tree. This commit cleans up files that shouldn't be here. [1] gophercloud#2809 [2] gophercloud#2811
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
By renaming the fixtures to
fixtures_test
, we mark them as test, and no longer part of the public API.Some files were left out as they were included in other tests:
This should prevent
go-apidiff
from complaining when modifying fixtures.