Skip to content

Commit

Permalink
Adjust tests for HeatAuthEncryptionKey length
Browse files Browse the repository at this point in the history
This change adjusts the tests for the HeatAuthEncryptionKey length
validation. It also changes the name of the Key in the map to reflect documented
recommendations.

Signed-off-by: Brendan Shephard <bshephar@redhat.com>
  • Loading branch information
bshephar committed Oct 3, 2024
1 parent a01bff8 commit 1e7f876
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/functional/base_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ func GetDefaultHeatSpec() map[string]interface{} {
"heatEngine": GetDefaultHeatEngineSpec(),
"heatAPI": GetDefaultHeatAPISpec(),
"heatCfnAPI": GetDefaultHeatCFNAPISpec(),
"passwordSelectors": map[string]interface{}{
"AuthEncryptionKey": "HeatAuthEncryptionKey",
},
}
}

Expand Down Expand Up @@ -75,8 +78,8 @@ func CreateHeatSecret(namespace string, name string) *corev1.Secret {
return th.CreateSecret(
types.NamespacedName{Namespace: namespace, Name: name},
map[string][]byte{
"HeatPassword": []byte("12345678"),
"AuthEncryptionKey": []byte("1234567812345678123456781212345678345678"),
"HeatPassword": []byte("12345678"),
"HeatAuthEncryptionKey": []byte("1234567812345678123456781212345678345678"),
},
)
}
Expand Down

0 comments on commit 1e7f876

Please sign in to comment.