Skip to content

Commit 2febad3

Browse files
authored
[v8] add missing NetworkPolicyV1Endpoint field to Data struct (#3418)
* add missing NetworkPolicyV1Endpoint field to Data struct
1 parent 29d0291 commit 2febad3

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

cf/configuration/coreconfig/config_data.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ type Data struct {
3333
LogCacheEndPoint string
3434
MinCLIVersion string
3535
MinRecommendedCLIVersion string
36+
NetworkPolicyV1Endpoint string
3637
OrganizationFields models.OrganizationFields
3738
PluginRepos []models.PluginRepo
3839
RefreshToken string

cf/configuration/coreconfig/config_data_test.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ var _ = Describe("V3 Config files", func() {
5555
}
5656
],
5757
"MinCLIVersion": "6.0.0",
58-
"MinRecommendedCLIVersion": "6.9.0"
58+
"MinRecommendedCLIVersion": "6.9.0",
59+
"NetworkPolicyV1Endpoint": "the-network-policy-endpoint"
5960
}`
6061

6162
// V2 by virtue of ConfigVersion only
@@ -104,7 +105,8 @@ var _ = Describe("V3 Config files", func() {
104105
}
105106
],
106107
"MinCLIVersion": "6.0.0",
107-
"MinRecommendedCLIVersion": "6.9.0"
108+
"MinRecommendedCLIVersion": "6.9.0",
109+
"NetworkPolicyV1Endpoint": "the-network-policy-endpoint"
108110
}`
109111

110112
Describe("NewData", func() {
@@ -133,6 +135,7 @@ var _ = Describe("V3 Config files", func() {
133135
SSHOAuthClient: "ssh-oauth-client-id",
134136
MinCLIVersion: "6.0.0",
135137
MinRecommendedCLIVersion: "6.9.0",
138+
NetworkPolicyV1Endpoint: "the-network-policy-endpoint",
136139
OrganizationFields: models.OrganizationFields{
137140
GUID: "the-org-guid",
138141
Name: "the-org",
@@ -185,6 +188,7 @@ var _ = Describe("V3 Config files", func() {
185188
SSHOAuthClient: "ssh-oauth-client-id",
186189
MinCLIVersion: "6.0.0",
187190
MinRecommendedCLIVersion: "6.9.0",
191+
NetworkPolicyV1Endpoint: "the-network-policy-endpoint",
188192
OrganizationFields: models.OrganizationFields{
189193
GUID: "the-org-guid",
190194
Name: "the-org",

0 commit comments

Comments
 (0)