19
19
import io .quarkus .test .junit .QuarkusTest ;
20
20
21
21
import static io .csviri .operator .glue .TestData .*;
22
- import static io .csviri .operator .glue .TestUtils .GC_WAIT_TIMEOUT_SECOND ;
22
+ import static io .csviri .operator .glue .TestUtils .GC_WAIT_TIMEOUT ;
23
23
import static io .csviri .operator .glue .customresource .TestCustomResource .CR_GROUP ;
24
24
import static org .assertj .core .api .Assertions .assertThat ;
25
25
import static org .awaitility .Awaitility .await ;
@@ -55,7 +55,7 @@ void smokeTest() {
55
55
@ Test
56
56
void templating () {
57
57
create (TestUtils
58
- .loadResourceFlowOperator ("/glueoperator/SimpleGlueOperator.yaml" ));
58
+ .loadGlueOperator ("/glueoperator/SimpleGlueOperator.yaml" ));
59
59
60
60
var cr = create (testCustomResource ());
61
61
String initialValue = cr .getSpec ().getValue ();
@@ -78,7 +78,7 @@ void templating() {
78
78
79
79
delete (cr );
80
80
81
- await ().timeout (Duration . ofMinutes ( 5 ) ).untilAsserted (() -> {
81
+ await ().timeout (GC_WAIT_TIMEOUT ).untilAsserted (() -> {
82
82
var cm1 = get (ConfigMap .class , name );
83
83
var actualCR = get (TestCustomResource .class , name );
84
84
assertThat (cm1 ).isNull ();
@@ -91,7 +91,7 @@ void templating() {
91
91
void simpleConcurrencyTest () {
92
92
int num = 10 ;
93
93
create (TestUtils
94
- .loadResourceFlowOperator ("/glueoperator/Concurrency.yaml" ));
94
+ .loadGlueOperator ("/glueoperator/Concurrency.yaml" ));
95
95
96
96
var resources =
97
97
IntStream .range (0 , num ).mapToObj (n -> create (testCustomResource (n ))).toList ();
@@ -115,9 +115,9 @@ void simpleConcurrencyTest() {
115
115
void simpleConcurrencyForMultipleOperatorTest () {
116
116
int num = 10 ;
117
117
create (TestUtils
118
- .loadResourceFlowOperator ("/glueoperator/Concurrency.yaml" ));
118
+ .loadGlueOperator ("/glueoperator/Concurrency.yaml" ));
119
119
create (TestUtils
120
- .loadResourceFlowOperator ("/glueoperator/Concurrency2.yaml" ));
120
+ .loadGlueOperator ("/glueoperator/Concurrency2.yaml" ));
121
121
122
122
var crs =
123
123
IntStream .range (0 , num ).mapToObj (n -> create (testCustomResource (n ))).toList ();
@@ -137,7 +137,7 @@ void simpleConcurrencyForMultipleOperatorTest() {
137
137
crs .forEach (this ::delete );
138
138
cr2s .forEach (this ::delete );
139
139
140
- await ().timeout (GC_WAIT_TIMEOUT_SECOND )
140
+ await ().timeout (GC_WAIT_TIMEOUT )
141
141
.untilAsserted (() -> IntStream .range (0 , num ).forEach (n -> {
142
142
var cm = get (ConfigMap .class , TEST_RESOURCE_PREFIX + n );
143
143
assertThat (cm ).isNull ();
@@ -149,7 +149,7 @@ void simpleConcurrencyForMultipleOperatorTest() {
149
149
@ Test
150
150
void nonUniqueNameTest () {
151
151
var go = create (TestUtils
152
- .loadResourceFlowOperator ("/glueoperator/NonUniqueName.yaml" ));
152
+ .loadGlueOperator ("/glueoperator/NonUniqueName.yaml" ));
153
153
154
154
await ().untilAsserted (() -> {
155
155
var actual = get (GlueOperator .class , go .getMetadata ().getName ());
@@ -163,7 +163,7 @@ void nonUniqueNameTest() {
163
163
@ Test
164
164
void parentWithLabelSelector () {
165
165
create (TestUtils
166
- .loadResourceFlowOperator ("/glueoperator/ParentLabelSelector.yaml" ));
166
+ .loadGlueOperator ("/glueoperator/ParentLabelSelector.yaml" ));
167
167
168
168
var cr = create (testCustomResource ());
169
169
String name = cr .getMetadata ().getName ();
0 commit comments