@@ -1180,9 +1180,9 @@ class AwsBatchTaskHandlerTest extends Specification {
1180
1180
// Labels with invalid characters
1181
1181
' label#with#hash' | 50 | ' label_with_hash'
1182
1182
' label$with%special&chars' | 50 | ' label_with_special_chars'
1183
- ' label(with)brackets[and]braces{}' | 50 | ' label_with_brackets_and_braces__ '
1183
+ ' label(with)brackets[and]braces{}' | 50 | ' label_with_brackets_and_braces '
1184
1184
' label*with?wildcards' | 50 | ' label_with_wildcards'
1185
- ' unicode_λαβελ_test' | 50 | ' unicode____abel_test '
1185
+ ' unicode_λαβελ_test' | 50 | ' unicode_test '
1186
1186
and :
1187
1187
// Multiple consecutive invalid characters
1188
1188
' label###multiple###hashes' | 50 | ' label_multiple_hashes'
@@ -1200,8 +1200,8 @@ class AwsBatchTaskHandlerTest extends Specification {
1200
1200
and :
1201
1201
// Length truncation
1202
1202
' very-long-label-that-exceeds-max' | 10 | ' very-long-'
1203
- ' very-long-label-ending-with-_' | 25 | ' very-long-label-ending-w '
1204
- ' very-long-label-ending-with-___' | 28 | ' very-long-label-ending-w '
1203
+ ' very-long-label-ending-with-_' | 25 | ' very-long-label-ending-wi '
1204
+ ' very-long-label-ending-with-___' | 28 | ' very-long-label-ending-with- '
1205
1205
and :
1206
1206
// Edge cases
1207
1207
null | 50 | null
@@ -1242,8 +1242,8 @@ class AwsBatchTaskHandlerTest extends Specification {
1242
1242
and :
1243
1243
// Invalid characters in keys and values
1244
1244
[' key#with#hash' : ' value$with%special&chars' ] | [' key_with_hash' : ' value_with_special_chars' ]
1245
- [' key(brackets)' : ' value[squares]{braces}' ] | [' key_brackets_ ' : ' value_squares__braces_ ' ]
1246
- [' unicode_λkey' : ' unicode_λvalue' ] | [' unicode__key ' : ' unicode__value ' ]
1245
+ [' key(brackets)' : ' value[squares]{braces}' ] | [' key_brackets ' : ' value_squares_braces ' ]
1246
+ [' unicode_λkey' : ' unicode_λvalue' ] | [' unicode_key ' : ' unicode_value ' ]
1247
1247
and :
1248
1248
// Multiple entries with mixed validity
1249
1249
[' validKey' : ' validValue' , ' invalid#key' : ' invalid$value' , ' another.valid:key' : ' another+valid@value' ] |
@@ -1255,7 +1255,7 @@ class AwsBatchTaskHandlerTest extends Specification {
1255
1255
and :
1256
1256
// Null keys or values
1257
1257
[' validKey' : null , null : ' validValue' , ' goodKey' : ' goodValue' ] |
1258
- [' goodKey' : ' goodValue' ]
1258
+ [null : ' validValue ' , ' goodKey' : ' goodValue' ]
1259
1259
and :
1260
1260
// Real-world example with Nextflow resource labels
1261
1261
[
@@ -1271,7 +1271,7 @@ class AwsBatchTaskHandlerTest extends Specification {
1271
1271
' uniqueRunId' : ' tw-12345-workflow-run' ,
1272
1272
' taskHash' : ' task.hash.0x1a2b3c4d_special' ,
1273
1273
' pipelineUser' : ' user@domain.com' ,
1274
- ' pipelineRunName' : ' my-pipeline-run_2024_ ' ,
1274
+ ' pipelineRunName' : ' my-pipeline-run_2024 ' ,
1275
1275
' pipelineSessionId' : ' session_id_with_special_chars' ,
1276
1276
' pipelineResume' : ' false' ,
1277
1277
' pipelineName' : ' my_pipeline/name:version+tag'
0 commit comments