fix(test): fixed compile errors
This commit is contained in:
parent
a72341356b
commit
f32479aaf8
2 changed files with 7 additions and 11 deletions
|
|
@ -110,7 +110,6 @@ func createTestDeploymentPlan() *DeploymentPlan {
|
||||||
{
|
{
|
||||||
Type: ActionCreate,
|
Type: ActionCreate,
|
||||||
Target: config.InfraTemplate{
|
Target: config.InfraTemplate{
|
||||||
Organization: "testorg",
|
|
||||||
Region: "US",
|
Region: "US",
|
||||||
CloudletOrg: "cloudletorg",
|
CloudletOrg: "cloudletorg",
|
||||||
CloudletName: "cloudlet1",
|
CloudletName: "cloudlet1",
|
||||||
|
|
@ -137,8 +136,9 @@ func createTestManagerConfig(t *testing.T) *config.EdgeConnectConfig {
|
||||||
return &config.EdgeConnectConfig{
|
return &config.EdgeConnectConfig{
|
||||||
Kind: "edgeconnect-deployment",
|
Kind: "edgeconnect-deployment",
|
||||||
Metadata: config.Metadata{
|
Metadata: config.Metadata{
|
||||||
Name: "test-app",
|
Name: "test-app",
|
||||||
AppVersion: "1.0.0",
|
AppVersion: "1.0.0",
|
||||||
|
Organization: "testorg",
|
||||||
},
|
},
|
||||||
Spec: config.Spec{
|
Spec: config.Spec{
|
||||||
K8sApp: &config.K8sApp{
|
K8sApp: &config.K8sApp{
|
||||||
|
|
@ -146,7 +146,6 @@ func createTestManagerConfig(t *testing.T) *config.EdgeConnectConfig {
|
||||||
},
|
},
|
||||||
InfraTemplate: []config.InfraTemplate{
|
InfraTemplate: []config.InfraTemplate{
|
||||||
{
|
{
|
||||||
Organization: "testorg",
|
|
||||||
Region: "US",
|
Region: "US",
|
||||||
CloudletOrg: "cloudletorg",
|
CloudletOrg: "cloudletorg",
|
||||||
CloudletName: "cloudlet1",
|
CloudletName: "cloudlet1",
|
||||||
|
|
@ -309,7 +308,6 @@ func TestApplyDeploymentMultipleInstances(t *testing.T) {
|
||||||
{
|
{
|
||||||
Type: ActionCreate,
|
Type: ActionCreate,
|
||||||
Target: config.InfraTemplate{
|
Target: config.InfraTemplate{
|
||||||
Organization: "testorg",
|
|
||||||
Region: "US",
|
Region: "US",
|
||||||
CloudletOrg: "cloudletorg1",
|
CloudletOrg: "cloudletorg1",
|
||||||
CloudletName: "cloudlet1",
|
CloudletName: "cloudlet1",
|
||||||
|
|
@ -321,7 +319,6 @@ func TestApplyDeploymentMultipleInstances(t *testing.T) {
|
||||||
{
|
{
|
||||||
Type: ActionCreate,
|
Type: ActionCreate,
|
||||||
Target: config.InfraTemplate{
|
Target: config.InfraTemplate{
|
||||||
Organization: "testorg",
|
|
||||||
Region: "EU",
|
Region: "EU",
|
||||||
CloudletOrg: "cloudletorg2",
|
CloudletOrg: "cloudletorg2",
|
||||||
CloudletName: "cloudlet2",
|
CloudletName: "cloudlet2",
|
||||||
|
|
|
||||||
|
|
@ -112,8 +112,9 @@ func createTestConfig(t *testing.T) *config.EdgeConnectConfig {
|
||||||
return &config.EdgeConnectConfig{
|
return &config.EdgeConnectConfig{
|
||||||
Kind: "edgeconnect-deployment",
|
Kind: "edgeconnect-deployment",
|
||||||
Metadata: config.Metadata{
|
Metadata: config.Metadata{
|
||||||
Name: "test-app",
|
Name: "test-app",
|
||||||
AppVersion: "1.0.0",
|
AppVersion: "1.0.0",
|
||||||
|
Organization: "testorg",
|
||||||
},
|
},
|
||||||
Spec: config.Spec{
|
Spec: config.Spec{
|
||||||
K8sApp: &config.K8sApp{
|
K8sApp: &config.K8sApp{
|
||||||
|
|
@ -121,7 +122,6 @@ func createTestConfig(t *testing.T) *config.EdgeConnectConfig {
|
||||||
},
|
},
|
||||||
InfraTemplate: []config.InfraTemplate{
|
InfraTemplate: []config.InfraTemplate{
|
||||||
{
|
{
|
||||||
Organization: "testorg",
|
|
||||||
Region: "US",
|
Region: "US",
|
||||||
CloudletOrg: "TestCloudletOrg",
|
CloudletOrg: "TestCloudletOrg",
|
||||||
CloudletName: "TestCloudlet",
|
CloudletName: "TestCloudlet",
|
||||||
|
|
@ -192,7 +192,7 @@ func TestPlanExistingDeploymentNoChanges(t *testing.T) {
|
||||||
Name: "test-app",
|
Name: "test-app",
|
||||||
Version: "1.0.0",
|
Version: "1.0.0",
|
||||||
},
|
},
|
||||||
Deployment: "kubernetes",
|
Deployment: "kubernetes",
|
||||||
DeploymentManifest: manifestContent,
|
DeploymentManifest: manifestContent,
|
||||||
RequiredOutboundConnections: []edgeconnect.SecurityRule{
|
RequiredOutboundConnections: []edgeconnect.SecurityRule{
|
||||||
{
|
{
|
||||||
|
|
@ -286,7 +286,6 @@ func TestPlanMultipleInfrastructures(t *testing.T) {
|
||||||
|
|
||||||
// Add a second infrastructure target
|
// Add a second infrastructure target
|
||||||
testConfig.Spec.InfraTemplate = append(testConfig.Spec.InfraTemplate, config.InfraTemplate{
|
testConfig.Spec.InfraTemplate = append(testConfig.Spec.InfraTemplate, config.InfraTemplate{
|
||||||
Organization: "testorg",
|
|
||||||
Region: "EU",
|
Region: "EU",
|
||||||
CloudletOrg: "EUCloudletOrg",
|
CloudletOrg: "EUCloudletOrg",
|
||||||
CloudletName: "EUCloudlet",
|
CloudletName: "EUCloudlet",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue