Skip to content

Commit

Permalink
update testdata for configref
Browse files Browse the repository at this point in the history
Signed-off-by: Gerd Oberlechner <[email protected]>
  • Loading branch information
geoberle committed Dec 18, 2024
1 parent 9a4bf76 commit 8ecce5f
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 12 deletions.
4 changes: 4 additions & 0 deletions tooling/templatize/pkg/ev2/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,20 @@ func TestScopeBindingVariables(t *testing.T) {
}
expectedVars := map[string]string{
"__aksName__": "$config(aksName)",
"__childZone__": "$config(childZone)",
"__globalRG__": "$config(globalRG)",
"__imageSyncRG__": "$config(imageSyncRG)",
"__maestro_helm_chart__": "$config(maestro_helm_chart)",
"__maestro_image__": "$config(maestro_image)",
"__managementClusterRG__": "$config(managementClusterRG)",
"__managementClusterSubscription__": "$config(managementClusterSubscription)",
"__parentZone__": "$config(parentZone)",
"__provider__": "$config(provider)",
"__region__": "$config(region)",
"__regionRG__": "$config(regionRG)",
"__serviceClusterRG__": "$config(serviceClusterRG)",
"__serviceClusterSubscription__": "$config(serviceClusterSubscription)",
"__vaultBaseUrl__": "$config(vaultBaseUrl)",
"__clusterService.imageTag__": "$config(clusterService.imageTag)",
"__clusterService.replicas__": "$config(clusterService.replicas)",
}
Expand Down
4 changes: 4 additions & 0 deletions tooling/templatize/testdata/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ defaults:
clusterService:
imageTag: abcdef
replicas: 3
parentZone: example.com
childZone: child.example.com
vaultBaseUrl: myvault.azure.com
provider: Self
clouds:
fairfax:
defaults:
Expand Down
8 changes: 4 additions & 4 deletions tooling/templatize/testdata/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@ resourceGroups:
- name: DelegateChildZoneBase
action: DelegateChildZoneExtension
parentZoneName:
value: bla
configRef: parentZone
childZoneName:
value: blub
value: childZone
dependsOn:
- deploy
- name: issuerTest
action: SetCertificateIssuer
vaultBaseUrl:
value: bla
configRef: vaultBaseUrl
provider:
value: blub
configRef: provider
dependsOn:
- deploy
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ resourceGroups:
dependsOn:
- deploy
parentZoneName:
value: bla
configRef: parentZone
childZoneName:
value: blub
value: childZone
- name: issuerTest
action: SetCertificateIssuer
dependsOn:
- deploy
vaultBaseUrl:
value: bla
configRef: vaultBaseUrl
provider:
value: blub
configRef: provider
8 changes: 4 additions & 4 deletions tooling/templatize/testdata/zz_fixture_TestRawOptions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@ resourceGroups:
- name: DelegateChildZoneBase
action: DelegateChildZoneExtension
parentZoneName:
value: bla
configRef: parentZone
childZoneName:
value: blub
value: childZone
dependsOn:
- deploy
- name: issuerTest
action: SetCertificateIssuer
vaultBaseUrl:
value: bla
configRef: vaultBaseUrl
provider:
value: blub
configRef: provider
dependsOn:
- deploy

0 comments on commit 8ecce5f

Please sign in to comment.