Skip to content

Commit 4d7fa4d

Browse files
committed
add unit testing for hostname replacement
1 parent 274e026 commit 4d7fa4d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/dummies/v1beta2/vars.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,11 +364,12 @@ func SetDummyIsoNetToNameOnly() {
364364

365365
func SetDummyBootstrapSecretVar() {
366366
BootstrapSecretName := "such-secret-much-wow"
367+
BootstrapSecretValue := "{{ ds.meta_data.hostname }}"
367368
BootstrapSecret = &corev1.Secret{
368369
ObjectMeta: metav1.ObjectMeta{
369370
Namespace: ClusterNameSpace,
370371
Name: BootstrapSecretName},
371-
Data: map[string][]byte{"value": make([]byte, 0)}}
372+
Data: map[string][]byte{"value": []byte(BootstrapSecretValue)}}
372373
}
373374

374375
// Sets cluster spec to specified network.

0 commit comments

Comments
 (0)