kops/cloudmock/openstack
Arnaud M. a8001b8fba
Remove unused const, variables and function reported by Golangci-lint (#17582)
* Remove unused const, variables and function reported by Golangci-lint

Signed-off-by: Arnaud Meukam <ameukam@gmail.com>

* make gomod executed
Signed-off-by: Arnaud Meukam <ameukam@gmail.com>

---------

Signed-off-by: Arnaud Meukam <ameukam@gmail.com>
2025-08-28 07:53:13 -07:00
..
mockblockstorage Upgrade to Gophercloud v2 2024-10-23 12:33:34 +02:00
mockcompute Remove unused const, variables and function reported by Golangci-lint (#17582) 2025-08-28 07:53:13 -07:00
mockdns Upgrade to Gophercloud v2 2024-10-23 12:33:34 +02:00
mockimage Upgrade to Gophercloud v2 2024-10-23 12:33:34 +02:00
mockloadbalancer Upgrade to Gophercloud v2 2024-10-23 12:33:34 +02:00
mocknetworking Use switch/case statement 2025-08-22 20:36:02 -05:00
README.md Add an initial structure for openstack cloudmock 2020-08-05 23:13:34 -05:00
mock.go Upgrade to Gophercloud v2 2024-10-23 12:33:34 +02:00

README.md

Openstack Cloudmock

Design

Because the gophercloud library does not provide client interfaces whose client-side functions could be mocked like aws-sdk-go, this cloudmock uses a local HTTP server and updates state based on incoming requests from the gophercloud clients. This is how the gophercloud library tests themselves are implemented.

Each package represents one of the Openstack service clients and contains its own net/http/httptest server. Each package defines the endpoints for that client's resources.

Troubleshooting

One recommended way to troubleshoot requests and responses is with Wireshark or an equivalent, monitoring the loopback interface.