@@ -1157,9 +1157,9 @@ class AwsBatchTaskHandlerTest extends Specification {
1157
1157
// Labels with invalid characters
1158
1158
' label#with#hash' | 50 | ' label_with_hash'
1159
1159
' label$with%special&chars' | 50 | ' label_with_special_chars'
1160
- ' label(with)brackets[and]braces{}' | 50 | ' label_with_brackets_and_braces__ '
1160
+ ' label(with)brackets[and]braces{}' | 50 | ' label_with_brackets_and_braces '
1161
1161
' label*with?wildcards' | 50 | ' label_with_wildcards'
1162
- ' unicode_λαβελ_test' | 50 | ' unicode____abel_test '
1162
+ ' unicode_λαβελ_test' | 50 | ' unicode_test '
1163
1163
and :
1164
1164
// Multiple consecutive invalid characters
1165
1165
' label###multiple###hashes' | 50 | ' label_multiple_hashes'
@@ -1177,8 +1177,8 @@ class AwsBatchTaskHandlerTest extends Specification {
1177
1177
and :
1178
1178
// Length truncation
1179
1179
' very-long-label-that-exceeds-max' | 10 | ' very-long-'
1180
- ' very-long-label-ending-with-_' | 25 | ' very-long-label-ending-w '
1181
- ' very-long-label-ending-with-___' | 28 | ' very-long-label-ending-w '
1180
+ ' very-long-label-ending-with-_' | 25 | ' very-long-label-ending-wi '
1181
+ ' very-long-label-ending-with-___' | 28 | ' very-long-label-ending-with- '
1182
1182
and :
1183
1183
// Edge cases
1184
1184
null | 50 | null
@@ -1219,8 +1219,8 @@ class AwsBatchTaskHandlerTest extends Specification {
1219
1219
and :
1220
1220
// Invalid characters in keys and values
1221
1221
[' key#with#hash' : ' value$with%special&chars' ] | [' key_with_hash' : ' value_with_special_chars' ]
1222
- [' key(brackets)' : ' value[squares]{braces}' ] | [' key_brackets_ ' : ' value_squares__braces_ ' ]
1223
- [' unicode_λkey' : ' unicode_λvalue' ] | [' unicode__key ' : ' unicode__value ' ]
1222
+ [' key(brackets)' : ' value[squares]{braces}' ] | [' key_brackets ' : ' value_squares_braces ' ]
1223
+ [' unicode_λkey' : ' unicode_λvalue' ] | [' unicode_key ' : ' unicode_value ' ]
1224
1224
and :
1225
1225
// Multiple entries with mixed validity
1226
1226
[' validKey' : ' validValue' , ' invalid#key' : ' invalid$value' , ' another.valid:key' : ' another+valid@value' ] |
@@ -1232,7 +1232,7 @@ class AwsBatchTaskHandlerTest extends Specification {
1232
1232
and :
1233
1233
// Null keys or values
1234
1234
[' validKey' : null , null : ' validValue' , ' goodKey' : ' goodValue' ] |
1235
- [' goodKey' : ' goodValue' ]
1235
+ [null : ' validValue ' , ' goodKey' : ' goodValue' ]
1236
1236
and :
1237
1237
// Real-world example with Nextflow resource labels
1238
1238
[
@@ -1248,7 +1248,7 @@ class AwsBatchTaskHandlerTest extends Specification {
1248
1248
' uniqueRunId' : ' tw-12345-workflow-run' ,
1249
1249
' taskHash' : ' task.hash.0x1a2b3c4d_special' ,
1250
1250
' pipelineUser' :
' [email protected] ' ,
1251
- ' pipelineRunName' : ' my-pipeline-run_2024_ ' ,
1251
+ ' pipelineRunName' : ' my-pipeline-run_2024 ' ,
1252
1252
' pipelineSessionId' : ' session_id_with_special_chars' ,
1253
1253
' pipelineResume' : ' false' ,
1254
1254
' pipelineName' : ' my_pipeline/name:version+tag'
0 commit comments