diff options
author | Lukasz Rajewski <lukasz.rajewski@orange.com> | 2021-07-29 16:42:45 +0200 |
---|---|---|
committer | Lukasz Rajewski <lukasz.rajewski@orange.com> | 2021-07-30 15:31:05 +0000 |
commit | 57745be5310a5f676dcbe656e62d9cfdb8603c74 (patch) | |
tree | 63036b2cb86d001e2a0dc772ef9e6fa6414b7756 /src/k8splugin/internal/app/config_test.go | |
parent | cf5527b09bfc263760ea6472d80bc6f1b438a37e (diff) |
Fix of release name for config
Fix of release name for config. It is taken now from
the instance first, and then from the profile.
Issue-ID: MULTICLOUD-1379
Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com>
Change-Id: I3bd41a1e51abf6326de1eda42361782bea3147b2
(cherry picked from commit 85c893d3737b86e831b22b652683933e305f117b)
Diffstat (limited to 'src/k8splugin/internal/app/config_test.go')
-rw-r--r-- | src/k8splugin/internal/app/config_test.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/k8splugin/internal/app/config_test.go b/src/k8splugin/internal/app/config_test.go index 028895d7..f20ef055 100644 --- a/src/k8splugin/internal/app/config_test.go +++ b/src/k8splugin/internal/app/config_test.go @@ -19,10 +19,11 @@ package app import ( "fmt" - "github.com/onap/multicloud-k8s/src/k8splugin/internal/db" "reflect" "strings" "testing" + + "github.com/onap/multicloud-k8s/src/k8splugin/internal/db" // pkgerrors "github.com/pkg/errors" ) @@ -90,7 +91,7 @@ func TestCreateConfig(t *testing.T) { db.Etcd = testCase.mockdb db.DBconn = provideMockModelData(testCase.instanceID, testCase.rbName, testCase.rbVersion, testCase.profileName) - resolve = func(rbName, rbVersion, profileName string, p Config) (configResourceList, error) { + resolve = func(rbName, rbVersion, profileName string, p Config, releaseName string) (configResourceList, error) { return configResourceList{}, nil } impl := NewConfigClient() @@ -203,7 +204,7 @@ func TestRollbackConfig(t *testing.T) { db.Etcd = testCase.mockdb db.DBconn = provideMockModelData(testCase.instanceID, testCase.rbName, testCase.rbVersion, testCase.profileName) - resolve = func(rbName, rbVersion, profileName string, p Config) (configResourceList, error) { + resolve = func(rbName, rbVersion, profileName string, p Config, releaseName string) (configResourceList, error) { return configResourceList{}, nil } impl := NewConfigClient() |