|
31 | 31 | import io.seqera.tower.cli.utils.PaginationInfo; |
32 | 32 | import io.seqera.tower.model.DataLinkDto; |
33 | 33 | import org.junit.jupiter.api.BeforeEach; |
| 34 | +import org.junit.jupiter.api.condition.DisabledIfEnvironmentVariable; |
34 | 35 | import org.junit.jupiter.params.ParameterizedTest; |
35 | 36 | import org.junit.jupiter.params.provider.CsvSource; |
36 | 37 | import org.junit.jupiter.params.provider.EnumSource; |
@@ -805,6 +806,8 @@ void testUploadSingleFile(OutputType format, MockServerClient mock) throws IOExc |
805 | 806 |
|
806 | 807 | @ParameterizedTest |
807 | 808 | @EnumSource(value = OutputType.class, names = {"json"}) |
| 809 | + @DisabledIfEnvironmentVariable(named = "TOWER_CLI", matches = ".+", |
| 810 | + disabledReason = "shrinks the part size through a system property, which cannot reach the native binary running as a separate process") |
808 | 811 | void testUploadMultipartFileInParallel(OutputType format, MockServerClient mock) throws IOException { |
809 | 812 | // credentials fetch |
810 | 813 | mock.when( |
@@ -915,6 +918,8 @@ void testUploadMultipartFileInParallel(OutputType format, MockServerClient mock) |
915 | 918 |
|
916 | 919 | @ParameterizedTest |
917 | 920 | @EnumSource(value = OutputType.class, names = {"json"}) |
| 921 | + @DisabledIfEnvironmentVariable(named = "TOWER_CLI", matches = ".+", |
| 922 | + disabledReason = "shrinks the part size through a system property, which cannot reach the native binary running as a separate process") |
918 | 923 | void testUploadFailsWhenPartCountDisagreesWithPlatform(OutputType format, MockServerClient mock) throws IOException { |
919 | 924 | // credentials fetch |
920 | 925 | mock.when( |
|
0 commit comments