@@ -105,28 +105,28 @@ describe('getClusterProperties', () => {
105105 expect ( getClusterProperties ( ) . clusterType ) . toBe ( 'TEST' ) ;
106106 } ) ;
107107
108- it ( 'returns DEVSANDBOX when CLUSTER_TYPE is "OSD" but and DEVSANDBOX is "true" ' , ( ) => {
108+ it ( 'returns DEVSANDBOX when DEVSANDBOX is "true" regardless of CLUSTER_TYPE ' , ( ) => {
109109 window . SERVER_FLAGS = {
110110 ...originServerFlags ,
111- telemetry : { CLUSTER_TYPE : 'OSD ' , DEVSANDBOX : 'true' } ,
111+ telemetry : { CLUSTER_TYPE : 'ROSA ' , DEVSANDBOX : 'true' } ,
112112 } ;
113113 expect ( getClusterProperties ( ) . clusterType ) . toBe ( 'DEVSANDBOX' ) ;
114114 } ) ;
115115
116- it ( 'returns the clusterType that it is configured if CLUSTER_TYPE is not OSD (in the future) but DEVSANDBOX is still "true" ' , ( ) => {
116+ it ( 'returns DEVSANDBOX when DEVSANDBOX is "true" even if CLUSTER_TYPE is a different value ' , ( ) => {
117117 window . SERVER_FLAGS = {
118118 ...originServerFlags ,
119119 telemetry : { CLUSTER_TYPE : 'a_FUTURE_DEVSANDBOX_KEY' , DEVSANDBOX : 'true' } ,
120120 } ;
121- expect ( getClusterProperties ( ) . clusterType ) . toBe ( 'a_FUTURE_DEVSANDBOX_KEY ' ) ;
121+ expect ( getClusterProperties ( ) . clusterType ) . toBe ( 'DEVSANDBOX ' ) ;
122122 } ) ;
123123
124- it ( 'returns the clusterType that it is configured if CLUSTER_TYPE is OSD but DEVSANDBOX is not exactly "true"' , ( ) => {
124+ it ( 'returns the configured clusterType when DEVSANDBOX is not exactly "true"' , ( ) => {
125125 window . SERVER_FLAGS = {
126126 ...originServerFlags ,
127- telemetry : { CLUSTER_TYPE : 'OSD ' , DEVSANDBOX : 'false' } ,
127+ telemetry : { CLUSTER_TYPE : 'ROSA ' , DEVSANDBOX : 'false' } ,
128128 } ;
129- expect ( getClusterProperties ( ) . clusterType ) . toBe ( 'OSD ' ) ;
129+ expect ( getClusterProperties ( ) . clusterType ) . toBe ( 'ROSA ' ) ;
130130 } ) ;
131131} ) ;
132132
@@ -208,12 +208,12 @@ describe('useTelemetry', () => {
208208 } ) ;
209209 } ) ;
210210
211- it ( 'calls the listener with clusterType DEVSANDBOX when CLUSTER_TYPE is OSD and DEVSANDBOX is "true"' , ( ) => {
211+ it ( 'calls the listener with clusterType DEVSANDBOX when DEVSANDBOX is "true"' , ( ) => {
212212 window . SERVER_FLAGS = {
213213 ...originServerFlags ,
214214 consoleVersion : 'x.y.z' ,
215215 telemetry : {
216- CLUSTER_TYPE : 'OSD ' ,
216+ CLUSTER_TYPE : 'ROSA ' ,
217217 DEVSANDBOX : 'true' ,
218218 STATE : CLUSTER_TELEMETRY_ANALYTICS . ENFORCE ,
219219 } ,
0 commit comments