diff options
author | Eric Multanen <eric.w.multanen@intel.com> | 2020-02-20 22:41:34 -0800 |
---|---|---|
committer | Eric Multanen <eric.w.multanen@intel.com> | 2020-02-28 09:50:10 -0800 |
commit | 0fd6ec7e4956b03858d3d4351dcda37662b63d1d (patch) | |
tree | 9eb7923790d1667e7b1d83b7e8a26a31be9e01e6 /src/orchestrator/api/projecthandler_test.go | |
parent | 9ee11aa7d0bf1cef6d741efcb3a99981ef47208b (diff) |
Add v2 cluster registration api to k8s orchestrator
Adds orchestrator API support for creating
cluster-providers, registering clusters and their
kubeconfig, adding labels to cluster and key value
paisr to clusters.
See: https://wiki.onap.org/display/DW/V2+API+Specification#V2APISpecification-ClusterRegistrationAPI
Issue-ID: MULTICLOUD-922
Signed-off-by: Eric Multanen <eric.w.multanen@intel.com>
Change-Id: I775a308e9ffb19acf65cb0e5752705998bc5b659
Diffstat (limited to 'src/orchestrator/api/projecthandler_test.go')
-rw-r--r-- | src/orchestrator/api/projecthandler_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/orchestrator/api/projecthandler_test.go b/src/orchestrator/api/projecthandler_test.go index 1e273349..c6da4e05 100644 --- a/src/orchestrator/api/projecthandler_test.go +++ b/src/orchestrator/api/projecthandler_test.go @@ -119,7 +119,7 @@ func TestProjectCreateHandler(t *testing.T) { for _, testCase := range testCases { t.Run(testCase.label, func(t *testing.T) { request := httptest.NewRequest("POST", "/v2/projects", testCase.reader) - resp := executeRequest(request, NewRouter(testCase.projectClient, nil, nil)) + resp := executeRequest(request, NewRouter(testCase.projectClient, nil, nil, nil)) //Check returned code if resp.StatusCode != testCase.expectedCode { @@ -188,7 +188,7 @@ func TestProjectGetHandler(t *testing.T) { for _, testCase := range testCases { t.Run(testCase.label, func(t *testing.T) { request := httptest.NewRequest("GET", "/v2/projects/"+testCase.name, nil) - resp := executeRequest(request, NewRouter(testCase.projectClient, nil, nil)) + resp := executeRequest(request, NewRouter(testCase.projectClient, nil, nil, nil)) //Check returned code if resp.StatusCode != testCase.expectedCode { @@ -237,7 +237,7 @@ func TestProjectDeleteHandler(t *testing.T) { for _, testCase := range testCases { t.Run(testCase.label, func(t *testing.T) { request := httptest.NewRequest("DELETE", "/v2/projects/"+testCase.name, nil) - resp := executeRequest(request, NewRouter(testCase.projectClient, nil, nil)) + resp := executeRequest(request, NewRouter(testCase.projectClient, nil, nil, nil)) //Check returned code if resp.StatusCode != testCase.expectedCode { |