From fc3a7699904575239cc510db78784b67a924c1e0 Mon Sep 17 00:00:00 2001 From: Harry Metske Date: Wed, 19 Feb 2025 11:23:35 +0100 Subject: [PATCH 1/3] add missing NetworkPolicyV1Endpoint field to Data struct --- cf/configuration/coreconfig/config_data.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cf/configuration/coreconfig/config_data.go b/cf/configuration/coreconfig/config_data.go index a5314a124c4..f017333c768 100644 --- a/cf/configuration/coreconfig/config_data.go +++ b/cf/configuration/coreconfig/config_data.go @@ -33,6 +33,7 @@ type Data struct { LogCacheEndPoint string MinCLIVersion string MinRecommendedCLIVersion string + NetworkPolicyV1Endpoint string OrganizationFields models.OrganizationFields PluginRepos []models.PluginRepo RefreshToken string From 226490f9d94f1101db1b5a6b68aba7d76c43d586 Mon Sep 17 00:00:00 2001 From: Harry Metske Date: Wed, 19 Feb 2025 12:06:09 +0100 Subject: [PATCH 2/3] try fixing the test case --- cf/configuration/coreconfig/config_data_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cf/configuration/coreconfig/config_data_test.go b/cf/configuration/coreconfig/config_data_test.go index e3f44d726c9..034955bb8df 100644 --- a/cf/configuration/coreconfig/config_data_test.go +++ b/cf/configuration/coreconfig/config_data_test.go @@ -56,6 +56,7 @@ var _ = Describe("V3 Config files", func() { ], "MinCLIVersion": "6.0.0", "MinRecommendedCLIVersion": "6.9.0" + "NetworkPolicyV1Endpoint": "the-network-policy-endpoint" }` // V2 by virtue of ConfigVersion only @@ -105,6 +106,7 @@ var _ = Describe("V3 Config files", func() { ], "MinCLIVersion": "6.0.0", "MinRecommendedCLIVersion": "6.9.0" + "NetworkPolicyV1Endpoint": "the-network-policy-endpoint" }` Describe("NewData", func() { @@ -133,6 +135,7 @@ var _ = Describe("V3 Config files", func() { SSHOAuthClient: "ssh-oauth-client-id", MinCLIVersion: "6.0.0", MinRecommendedCLIVersion: "6.9.0", + NetworkPolicyV1Endpoint: "the-network-policy-endpoint", OrganizationFields: models.OrganizationFields{ GUID: "the-org-guid", Name: "the-org", @@ -185,6 +188,7 @@ var _ = Describe("V3 Config files", func() { SSHOAuthClient: "ssh-oauth-client-id", MinCLIVersion: "6.0.0", MinRecommendedCLIVersion: "6.9.0", + NetworkPolicyV1Endpoint: "the-network-policy-endpoint", OrganizationFields: models.OrganizationFields{ GUID: "the-org-guid", Name: "the-org", From 7dac874893f7fa7f508c6c945c40155c8d25ceb7 Mon Sep 17 00:00:00 2001 From: Harry Metske Date: Wed, 19 Feb 2025 12:07:49 +0100 Subject: [PATCH 3/3] try fixing the test case, add missing comma's --- cf/configuration/coreconfig/config_data_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cf/configuration/coreconfig/config_data_test.go b/cf/configuration/coreconfig/config_data_test.go index 034955bb8df..3d0b01b6b53 100644 --- a/cf/configuration/coreconfig/config_data_test.go +++ b/cf/configuration/coreconfig/config_data_test.go @@ -55,7 +55,7 @@ var _ = Describe("V3 Config files", func() { } ], "MinCLIVersion": "6.0.0", - "MinRecommendedCLIVersion": "6.9.0" + "MinRecommendedCLIVersion": "6.9.0", "NetworkPolicyV1Endpoint": "the-network-policy-endpoint" }` @@ -105,7 +105,7 @@ var _ = Describe("V3 Config files", func() { } ], "MinCLIVersion": "6.0.0", - "MinRecommendedCLIVersion": "6.9.0" + "MinRecommendedCLIVersion": "6.9.0", "NetworkPolicyV1Endpoint": "the-network-policy-endpoint" }`