7
7
8
8
import io .fabric8 .kubernetes .api .model .ConfigMap ;
9
9
import io .fabric8 .kubernetes .api .model .ObjectMetaBuilder ;
10
- import io .javaoperatorsdk .operator .junit .LocalOperatorExtension ;
10
+ import io .javaoperatorsdk .operator .junit .LocallyRunOperatorExtension ;
11
11
import io .javaoperatorsdk .operator .sample .dependentannotationsecondarymapper .DependentAnnotationSecondaryMapperReconciler ;
12
12
import io .javaoperatorsdk .operator .sample .dependentannotationsecondarymapper .DependentAnnotationSecondaryMapperResource ;
13
13
@@ -21,8 +21,8 @@ class DependentAnnotationSecondaryMapperIT {
21
21
public static final String TEST_RESOURCE_NAME = "test1" ;
22
22
23
23
@ RegisterExtension
24
- LocalOperatorExtension operator =
25
- LocalOperatorExtension .builder ()
24
+ LocallyRunOperatorExtension operator =
25
+ LocallyRunOperatorExtension .builder ()
26
26
.withReconciler (DependentAnnotationSecondaryMapperReconciler .class )
27
27
.build ();
28
28
@@ -33,9 +33,8 @@ void mapsSecondaryByAnnotation() {
33
33
var reconciler =
34
34
operator .getReconcilerOfType (DependentAnnotationSecondaryMapperReconciler .class );
35
35
36
- await ().pollDelay (Duration .ofMillis (150 )).untilAsserted (() -> {
37
- assertThat (reconciler .getNumberOfExecutions ()).isEqualTo (1 );
38
- });
36
+ await ().pollDelay (Duration .ofMillis (150 ))
37
+ .untilAsserted (() -> assertThat (reconciler .getNumberOfExecutions ()).isEqualTo (1 ));
39
38
var configMap = operator .get (ConfigMap .class , TEST_RESOURCE_NAME );
40
39
41
40
var annotations = configMap .getMetadata ().getAnnotations ();
@@ -49,9 +48,8 @@ void mapsSecondaryByAnnotation() {
49
48
configMap .getData ().put ("additional_data" , "data" );
50
49
operator .replace (ConfigMap .class , configMap );
51
50
52
- await ().pollDelay (Duration .ofMillis (150 )).untilAsserted (() -> {
53
- assertThat (reconciler .getNumberOfExecutions ()).isEqualTo (2 );
54
- });
51
+ await ().pollDelay (Duration .ofMillis (150 ))
52
+ .untilAsserted (() -> assertThat (reconciler .getNumberOfExecutions ()).isEqualTo (2 ));
55
53
}
56
54
57
55
0 commit comments