@@ -30,38 +30,41 @@ type APIType string
3030// WatcherTestData is the data structure used to provide input data to envTest
3131type WatcherTestData struct {
3232 //DatabaseHostname string
33- DatabaseInstance string
34- RabbitMqClusterName string
35- Instance types.NamespacedName
36- Watcher types.NamespacedName
37- WatcherDatabaseName types.NamespacedName
38- WatcherDatabaseAccount types.NamespacedName
39- WatcherDatabaseAccountSecret types.NamespacedName
40- InternalTopLevelSecretName types.NamespacedName
41- PrometheusSecretName types.NamespacedName
42- WatcherTransportURL types.NamespacedName
43- KeystoneServiceName types.NamespacedName
44- WatcherAPI types.NamespacedName
45- MemcachedNamespace types.NamespacedName
46- ServiceAccountName types.NamespacedName
47- RoleName types.NamespacedName
48- RoleBindingName types.NamespacedName
49- WatcherDBSync types.NamespacedName
50- WatcherAPIStatefulSet types.NamespacedName
51- WatcherDecisionEngine types.NamespacedName
52- WatcherDecisionEngineStatefulSet types.NamespacedName
53- WatcherDecisionEngineSecret types.NamespacedName
54- WatcherPublicServiceName types.NamespacedName
55- WatcherInternalServiceName types.NamespacedName
56- WatcherRouteName types.NamespacedName
57- WatcherInternalRouteName types.NamespacedName
58- WatcherKeystoneEndpointName types.NamespacedName
59- WatcherApplier types.NamespacedName
60- WatcherApplierStatefulSet types.NamespacedName
61- WatcherRouteCertSecret types.NamespacedName
62- WatcherPublicCertSecret types.NamespacedName
63- WatcherInternalCertSecret types.NamespacedName
64- WatcherApplierSecret types.NamespacedName
33+ DatabaseInstance string
34+ RabbitMqClusterName string
35+ Instance types.NamespacedName
36+ Watcher types.NamespacedName
37+ WatcherDatabaseName types.NamespacedName
38+ WatcherDatabaseAccount types.NamespacedName
39+ WatcherDatabaseAccountSecret types.NamespacedName
40+ InternalTopLevelSecretName types.NamespacedName
41+ PrometheusSecretName types.NamespacedName
42+ WatcherTransportURL types.NamespacedName
43+ KeystoneServiceName types.NamespacedName
44+ WatcherAPI types.NamespacedName
45+ WatcherAPIConfigSecret types.NamespacedName
46+ MemcachedNamespace types.NamespacedName
47+ ServiceAccountName types.NamespacedName
48+ RoleName types.NamespacedName
49+ RoleBindingName types.NamespacedName
50+ WatcherDBSync types.NamespacedName
51+ WatcherAPIStatefulSet types.NamespacedName
52+ WatcherDecisionEngine types.NamespacedName
53+ WatcherDecisionEngineConfigSecret types.NamespacedName
54+ WatcherDecisionEngineStatefulSet types.NamespacedName
55+ WatcherDecisionEngineSecret types.NamespacedName
56+ WatcherPublicServiceName types.NamespacedName
57+ WatcherInternalServiceName types.NamespacedName
58+ WatcherRouteName types.NamespacedName
59+ WatcherInternalRouteName types.NamespacedName
60+ WatcherKeystoneEndpointName types.NamespacedName
61+ WatcherApplier types.NamespacedName
62+ WatcherApplierConfigSecret types.NamespacedName
63+ WatcherApplierStatefulSet types.NamespacedName
64+ WatcherRouteCertSecret types.NamespacedName
65+ WatcherPublicCertSecret types.NamespacedName
66+ WatcherInternalCertSecret types.NamespacedName
67+ WatcherApplierSecret types.NamespacedName
6568}
6669
6770// GetWatcherTestData is a function that initialize the WatcherTestData
@@ -110,10 +113,18 @@ func GetWatcherTestData(watcherName types.NamespacedName) WatcherTestData {
110113 Namespace : watcherName .Namespace ,
111114 Name : "watcher-api" ,
112115 },
116+ WatcherAPIConfigSecret : types.NamespacedName {
117+ Namespace : watcherName .Namespace ,
118+ Name : "watcher-api-config-data" ,
119+ },
113120 WatcherDecisionEngine : types.NamespacedName {
114121 Namespace : watcherName .Namespace ,
115122 Name : "watcher-decision-engine" ,
116123 },
124+ WatcherDecisionEngineConfigSecret : types.NamespacedName {
125+ Namespace : watcherName .Namespace ,
126+ Name : "watcher-decision-engine-config-data" ,
127+ },
117128 WatcherDecisionEngineStatefulSet : types.NamespacedName {
118129 Namespace : watcherName .Namespace ,
119130 Name : "watcher-decision-engine" ,
@@ -170,6 +181,10 @@ func GetWatcherTestData(watcherName types.NamespacedName) WatcherTestData {
170181 Namespace : watcherName .Namespace ,
171182 Name : "watcher-applier" ,
172183 },
184+ WatcherApplierConfigSecret : types.NamespacedName {
185+ Namespace : watcherName .Namespace ,
186+ Name : "watcher-applier-config-data" ,
187+ },
173188 WatcherApplierStatefulSet : types.NamespacedName {
174189 Namespace : watcherName .Namespace ,
175190 Name : "watcher-applier" ,
0 commit comments