Skip to content

Commit 7f1d075

Browse files
committed
Make fixtures part of tests
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.
1 parent d00e5c5 commit 7f1d075

187 files changed

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/contributor-tutorial/.template/testing/fixtures.go renamed to docs/contributor-tutorial/.template/testing/fixtures_test.go

File renamed without changes.

openstack/baremetal/apiversions/testing/fixtures.go renamed to openstack/baremetal/apiversions/testing/fixtures_test.go

File renamed without changes.

openstack/baremetal/v1/allocations/testing/fixtures.go renamed to openstack/baremetal/v1/allocations/testing/fixtures_test.go

File renamed without changes.

openstack/baremetal/v1/conductors/testing/fixtures.go renamed to openstack/baremetal/v1/conductors/testing/fixtures_test.go

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

openstack/blockstorage/apiversions/testing/fixtures.go renamed to openstack/blockstorage/apiversions/testing/fixtures_test.go

File renamed without changes.

openstack/blockstorage/extensions/availabilityzones/testing/fixtures.go renamed to openstack/blockstorage/extensions/availabilityzones/testing/fixtures_test.go

File renamed without changes.

openstack/blockstorage/extensions/backups/testing/fixtures.go renamed to openstack/blockstorage/extensions/backups/testing/fixtures_test.go

File renamed without changes.

0 commit comments

Comments
 (0)