summaryrefslogtreecommitdiffstats
path: root/src/k8splugin/api/brokerhandler_test.go
diff options
context:
space:
mode:
authorKiran Kamineni <kiran.k.kamineni@intel.com>2019-08-07 15:45:54 -0700
committerKiran Kamineni <kiran.k.kamineni@intel.com>2019-08-13 12:48:48 -0700
commitf22ab29dff2b69aaadd748c34c259f25dacec52d (patch)
tree1790140cbc7baa5e73f3acf862852f5001e9c0a0 /src/k8splugin/api/brokerhandler_test.go
parent845cdd2aa5d790e57b0b2999180df4abc6724bf1 (diff)
Add query parameters support to instance API
Add support for query parameters to find instances with rb-name, rb-version, profile-name as query parameters eg: curl IP:PORT/v1/instance?rb-name=test&rb-version=v1 Issue-ID: MULTICLOUD-662 Change-Id: If68c87885c8b8dd097cbb3860e8c7320310a6ef7 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
Diffstat (limited to 'src/k8splugin/api/brokerhandler_test.go')
-rw-r--r--src/k8splugin/api/brokerhandler_test.go18
1 files changed, 1 insertions, 17 deletions
diff --git a/src/k8splugin/api/brokerhandler_test.go b/src/k8splugin/api/brokerhandler_test.go
index 319c64e7..8ef5e184 100644
--- a/src/k8splugin/api/brokerhandler_test.go
+++ b/src/k8splugin/api/brokerhandler_test.go
@@ -285,7 +285,7 @@ func TestBrokerFindHandler(t *testing.T) {
},
},
instClient: &mockInstanceClient{
- items: []app.InstanceResponse{
+ miniitems: []app.InstanceMiniResponse{
{
ID: "HaKpys8e",
Request: app.InstanceRequest{
@@ -295,22 +295,6 @@ func TestBrokerFindHandler(t *testing.T) {
CloudRegion: "region1",
},
Namespace: "testnamespace",
- Resources: []helm.KubernetesResource{
- {
- GVK: schema.GroupVersionKind{
- Group: "apps",
- Version: "v1",
- Kind: "Deployment"},
- Name: "test-deployment",
- },
- {
- GVK: schema.GroupVersionKind{
- Group: "",
- Version: "v1",
- Kind: "Service"},
- Name: "test-service",
- },
- },
},
},
},