diff options
author | Ritu Sood <Ritu.Sood@intel.com> | 2020-04-23 21:48:53 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-04-23 21:48:53 +0000 |
commit | 7e20d29b2d82f4ebbe347b7ed39a1c5d51752314 (patch) | |
tree | ae767627445355986dc59860a9d05af287eb2be9 /src/orchestrator/pkg/module/app_intent_test.go | |
parent | 334322f5995394dfa6a948101064634eaaf5f0b5 (diff) | |
parent | 6e0b4df46f51f9793f2d88626234edaaf9992403 (diff) |
Merge "Added intentResolver"
Diffstat (limited to 'src/orchestrator/pkg/module/app_intent_test.go')
-rw-r--r-- | src/orchestrator/pkg/module/app_intent_test.go | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/src/orchestrator/pkg/module/app_intent_test.go b/src/orchestrator/pkg/module/app_intent_test.go index 726ce0a3..089f09ff 100644 --- a/src/orchestrator/pkg/module/app_intent_test.go +++ b/src/orchestrator/pkg/module/app_intent_test.go @@ -21,6 +21,7 @@ import ( "strings" "testing" + gpic "github.com/onap/multicloud-k8s/src/orchestrator/pkg/gpic" "github.com/onap/multicloud-k8s/src/orchestrator/pkg/infra/db" ) @@ -47,8 +48,8 @@ func TestCreateAppIntent(t *testing.T) { }, Spec: SpecData{ AppName: "SampleApp", - Intent: IntentStruc{ - AllOfArray: []AllOf{ + Intent: gpic.IntentStruc{ + AllOfArray: []gpic.AllOf{ { ProviderName: "aws", ClusterName: "edge1", @@ -60,7 +61,7 @@ func TestCreateAppIntent(t *testing.T) { //ClusterLabelName: "edge2", }, { - AnyOfArray: []AnyOf{ + AnyOfArray: []gpic.AnyOf{ {ProviderName: "aws", ClusterLabelName: "east-us1"}, {ProviderName: "aws", @@ -71,7 +72,7 @@ func TestCreateAppIntent(t *testing.T) { }, }, - AnyOfArray: []AnyOf{}, + AnyOfArray: []gpic.AnyOf{}, }, }, }, @@ -89,8 +90,8 @@ func TestCreateAppIntent(t *testing.T) { }, Spec: SpecData{ AppName: "SampleApp", - Intent: IntentStruc{ - AllOfArray: []AllOf{ + Intent: gpic.IntentStruc{ + AllOfArray: []gpic.AllOf{ { ProviderName: "aws", ClusterName: "edge1", @@ -102,7 +103,7 @@ func TestCreateAppIntent(t *testing.T) { //ClusterLabelName: "edge2", }, { - AnyOfArray: []AnyOf{ + AnyOfArray: []gpic.AnyOf{ {ProviderName: "aws", ClusterLabelName: "east-us1"}, {ProviderName: "aws", @@ -112,7 +113,7 @@ func TestCreateAppIntent(t *testing.T) { }, }, }, - AnyOfArray: []AnyOf{}, + AnyOfArray: []gpic.AnyOf{}, }, }, }, @@ -202,8 +203,8 @@ func TestGetAppIntent(t *testing.T) { }, Spec: SpecData{ AppName: "SampleApp", - Intent: IntentStruc{ - AllOfArray: []AllOf{ + Intent: gpic.IntentStruc{ + AllOfArray: []gpic.AllOf{ { ProviderName: "aws", ClusterName: "edge1", @@ -213,7 +214,7 @@ func TestGetAppIntent(t *testing.T) { ClusterName: "edge2", }, { - AnyOfArray: []AnyOf{ + AnyOfArray: []gpic.AnyOf{ {ProviderName: "aws", ClusterLabelName: "east-us1"}, {ProviderName: "aws", |