@@ -40,7 +40,11 @@ func TestBuilderTrait(t *testing.T) {
40
40
WithNewTestNamespace (t , func (ctx context.Context , g * WithT , ns string ) {
41
41
t .Run ("Run build strategy routine" , func (t * testing.T ) {
42
42
name := RandomizedSuffixName ("java" )
43
- g .Expect (KamelRun (t , ctx , ns , "files/Java.java" , "--name" , name , "-t" , "builder.order-strategy=sequential" , "-t" , "builder.strategy=routine" ).Execute ()).To (Succeed ())
43
+ g .Expect (KamelRun (t , ctx , ns , "files/Java.java" , "--name" , name ,
44
+ // This is required in order to avoid reusing a Kit already existing (which is the default behavior)
45
+ "--build-property" , "strategy=sequential" ,
46
+ "-t" , "builder.order-strategy=sequential" ,
47
+ ).Execute ()).To (Succeed ())
44
48
45
49
g .Eventually (IntegrationPodPhase (t , ctx , ns , name ), TestTimeoutLong ).Should (Equal (corev1 .PodRunning ))
46
50
g .Eventually (IntegrationConditionStatus (t , ctx , ns , name , v1 .IntegrationConditionReady ), TestTimeoutShort ).Should (Equal (corev1 .ConditionTrue ))
@@ -66,7 +70,8 @@ func TestBuilderTrait(t *testing.T) {
66
70
"--name" , name ,
67
71
// This is required in order to avoid reusing a Kit already existing (which is the default behavior)
68
72
"--build-property" , "strategy=dependencies" ,
69
- "-t" , "builder.order-strategy=dependencies" ).Execute ()).To (Succeed ())
73
+ "-t" , "builder.order-strategy=dependencies" ,
74
+ ).Execute ()).To (Succeed ())
70
75
71
76
g .Eventually (IntegrationPodPhase (t , ctx , ns , name ), TestTimeoutLong ).Should (Equal (corev1 .PodRunning ))
72
77
g .Eventually (IntegrationConditionStatus (t , ctx , ns , name , v1 .IntegrationConditionReady ), TestTimeoutShort ).Should (Equal (corev1 .ConditionTrue ))
@@ -133,7 +138,6 @@ func TestBuilderTrait(t *testing.T) {
133
138
builderKitName := fmt .Sprintf ("camel-k-%s-builder" , integrationKitName )
134
139
135
140
g .Eventually (BuildConfig (t , ctx , integrationKitNamespace , integrationKitName )().Strategy , TestTimeoutShort ).Should (Equal (v1 .BuildStrategyPod ))
136
- g .Eventually (BuildConfig (t , ctx , integrationKitNamespace , integrationKitName )().OrderStrategy , TestTimeoutShort ).Should (Equal (v1 .BuildOrderStrategySequential ))
137
141
g .Eventually (BuildConfig (t , ctx , integrationKitNamespace , integrationKitName )().RequestCPU , TestTimeoutShort ).Should (Equal ("500m" ))
138
142
g .Eventually (BuildConfig (t , ctx , integrationKitNamespace , integrationKitName )().LimitCPU , TestTimeoutShort ).Should (Equal ("1000m" ))
139
143
g .Eventually (BuildConfig (t , ctx , integrationKitNamespace , integrationKitName )().RequestMemory , TestTimeoutShort ).Should (Equal ("2Gi" ))
@@ -150,7 +154,11 @@ func TestBuilderTrait(t *testing.T) {
150
154
151
155
t .Run ("Run custom pipeline task" , func (t * testing.T ) {
152
156
name := RandomizedSuffixName ("java-pipeline" )
153
- g .Expect (KamelRun (t , ctx , ns , "files/Java.java" , "--name" , name , "-t" , "builder.tasks=custom1;alpine;tree" , "-t" , "builder.tasks=custom2;alpine;cat maven/pom.xml" , "-t" , "builder.strategy=pod" ).Execute ()).To (Succeed ())
157
+ g .Expect (KamelRun (t , ctx , ns , "files/Java.java" , "--name" , name ,
158
+ "-t" , "builder.tasks=custom1;alpine;tree" ,
159
+ "-t" , "builder.tasks=custom2;alpine;cat maven/pom.xml" ,
160
+ "-t" , "builder.strategy=pod" ,
161
+ ).Execute ()).To (Succeed ())
154
162
155
163
g .Eventually (IntegrationPodPhase (t , ctx , ns , name ), TestTimeoutLong ).Should (Equal (corev1 .PodRunning ))
156
164
g .Eventually (IntegrationConditionStatus (t , ctx , ns , name , v1 .IntegrationConditionReady ), TestTimeoutLong ).Should (Equal (corev1 .ConditionTrue ))
0 commit comments