fix(test): fixed compile errors
Some checks failed
test / test (push) Failing after 12s

This commit is contained in:
Richard Robert Reitz 2025-10-07 17:09:36 +02:00
parent e04370a376
commit 6a91b556a5
2 changed files with 7 additions and 11 deletions

View file

@ -110,7 +110,6 @@ func createTestDeploymentPlan() *DeploymentPlan {
{
Type: ActionCreate,
Target: config.InfraTemplate{
Organization: "testorg",
Region: "US",
CloudletOrg: "cloudletorg",
CloudletName: "cloudlet1",
@ -137,8 +136,9 @@ func createTestManagerConfig(t *testing.T) *config.EdgeConnectConfig {
return &config.EdgeConnectConfig{
Kind: "edgeconnect-deployment",
Metadata: config.Metadata{
Name: "test-app",
AppVersion: "1.0.0",
Name: "test-app",
AppVersion: "1.0.0",
Organization: "testorg",
},
Spec: config.Spec{
K8sApp: &config.K8sApp{
@ -146,7 +146,6 @@ func createTestManagerConfig(t *testing.T) *config.EdgeConnectConfig {
},
InfraTemplate: []config.InfraTemplate{
{
Organization: "testorg",
Region: "US",
CloudletOrg: "cloudletorg",
CloudletName: "cloudlet1",
@ -309,7 +308,6 @@ func TestApplyDeploymentMultipleInstances(t *testing.T) {
{
Type: ActionCreate,
Target: config.InfraTemplate{
Organization: "testorg",
Region: "US",
CloudletOrg: "cloudletorg1",
CloudletName: "cloudlet1",
@ -321,7 +319,6 @@ func TestApplyDeploymentMultipleInstances(t *testing.T) {
{
Type: ActionCreate,
Target: config.InfraTemplate{
Organization: "testorg",
Region: "EU",
CloudletOrg: "cloudletorg2",
CloudletName: "cloudlet2",

View file

@ -112,8 +112,9 @@ func createTestConfig(t *testing.T) *config.EdgeConnectConfig {
return &config.EdgeConnectConfig{
Kind: "edgeconnect-deployment",
Metadata: config.Metadata{
Name: "test-app",
AppVersion: "1.0.0",
Name: "test-app",
AppVersion: "1.0.0",
Organization: "testorg",
},
Spec: config.Spec{
K8sApp: &config.K8sApp{
@ -121,7 +122,6 @@ func createTestConfig(t *testing.T) *config.EdgeConnectConfig {
},
InfraTemplate: []config.InfraTemplate{
{
Organization: "testorg",
Region: "US",
CloudletOrg: "TestCloudletOrg",
CloudletName: "TestCloudlet",
@ -192,7 +192,7 @@ func TestPlanExistingDeploymentNoChanges(t *testing.T) {
Name: "test-app",
Version: "1.0.0",
},
Deployment: "kubernetes",
Deployment: "kubernetes",
DeploymentManifest: manifestContent,
RequiredOutboundConnections: []edgeconnect.SecurityRule{
{
@ -286,7 +286,6 @@ func TestPlanMultipleInfrastructures(t *testing.T) {
// Add a second infrastructure target
testConfig.Spec.InfraTemplate = append(testConfig.Spec.InfraTemplate, config.InfraTemplate{
Organization: "testorg",
Region: "EU",
CloudletOrg: "EUCloudletOrg",
CloudletName: "EUCloudlet",