kops/cloudmock/openstack
ederst 3eb39a42ad Allow getting a server in OpenStack mock cloud 2023-02-24 01:28:05 +01:00
..
mockblockstorage Remove bazel files from vendor 2022-04-12 13:29:03 +02:00
mockcompute Allow getting a server in OpenStack mock cloud 2023-02-24 01:28:05 +01:00
mockdns Remove bazel files from vendor 2022-04-12 13:29:03 +02:00
mockimage Remove bazel files from vendor 2022-04-12 13:29:03 +02:00
mockloadbalancer Remove bazel files from vendor 2022-04-12 13:29:03 +02:00
mocknetworking Replace fi.Bool/Float*/Int*/StringValue() with fi.ValueOf 2022-11-19 03:45:23 +02:00
README.md Add an initial structure for openstack cloudmock 2020-08-05 23:13:34 -05:00
mock.go Add an initial structure for openstack cloudmock 2020-08-05 23:13:34 -05: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.