Skip to content

Commit

Permalink
add disable property test
Browse files Browse the repository at this point in the history
  • Loading branch information
jedla97 committed Dec 10, 2024
1 parent 25e1c60 commit 5723500
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
- name: Build in JVM mode
shell: bash
run: |
mvn -B --no-transfer-progress -fae -Dreruns=0 -s .github/quarkus-snapshots-mvn-settings.xml clean verify -am "-Dinclude.quarkus-cli-tests" -f quarkus-cli "-Dts.quarkus.cli.cmd=C:\Users\runneradmin\quarkus-dev-cli.bat" "-Ddisable-on-win-without-lang-pack"
mvn -B --no-transfer-progress -fae -Dreruns=0 -s .github/quarkus-snapshots-mvn-settings.xml clean verify -am "-Dinclude.quarkus-cli-tests" -f quarkus-cli "-Dts.quarkus.cli.cmd=C:\Users\runneradmin\quarkus-dev-cli.bat" "-Dts.disable-on-win-without-lang-pack"
- name: Detect flaky tests
id: flaky-test-detector
if: ${{ hashFiles('**/flaky-run-report.json') != '' }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public void createPropertyCommand_NoSecret_ApplicationPropertiesExists() {

@Order(3)
@Test
@DisabledIfSystemProperty(named = "disable-on-win-without-lang-pack", matches = "true",
@DisabledIfSystemProperty(named = "ts.disable-on-win-without-lang-pack", matches = "true",
disabledReason = "Some windows don't have all language pack/locales so it causing it fail")
public void createPropertyCommand_EncryptValue_UseExistingEncryptionKey() {
// configured props tested by SetPropertyTest#createPropertyCommand_EncryptValue_UseExistingEncryptionKey
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,21 +47,21 @@ public void shouldCreateApplicationOnJvmWithSpecialChars() {
}

@Test
@DisabledIfSystemProperty(named = "disable-on-win-without-lang-pack", matches = "true",
@DisabledIfSystemProperty(named = "ts.disable-on-win-without-lang-pack", matches = "true",
disabledReason = "Some windows don't have all language pack/locales so it causing it fail")
public void shouldCreateApplicationOnJvmWithDiacritics() {
assertCreateJavaApplicationAtFolder(FOLDER_WITH_DIACRITICS);
}

@Test
@DisabledIfSystemProperty(named = "disable-on-win-without-lang-pack", matches = "true",
@DisabledIfSystemProperty(named = "ts.disable-on-win-without-lang-pack", matches = "true",
disabledReason = "Some windows don't have all language pack/locales so it causing it fail")
public void shouldCreateApplicationOnJvmWithJapanese() {
assertCreateJavaApplicationAtFolder(FOLDER_WITH_JAPANESE);
}

@Test
@DisabledIfSystemProperty(named = "disable-on-win-without-lang-pack", matches = "true",
@DisabledIfSystemProperty(named = "ts.disable-on-win-without-lang-pack", matches = "true",
disabledReason = "Some windows don't have all language pack/locales so it causing it fail")
public void shouldCreateApplicationOnJvmWithInternationalization() {
assertCreateJavaApplicationAtFolder(FOLDER_WITH_INTERNATIONALIZATION);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

import jakarta.inject.Inject;

import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;

import io.quarkus.test.junit.QuarkusTest;
Expand All @@ -36,9 +35,8 @@ void createPropertyCommand_NoSecret_ApplicationPropertiesExists() {
}

@Test
@DisabledIfSystemProperty(named = "disable-on-win-without-lang-pack", matches = "true",
@DisabledIfSystemProperty(named = "ts.disable-on-win-without-lang-pack", matches = "true",
disabledReason = "Some windows don't have all language pack/locales so it causing it fail")
@Disabled
void createPropertyCommand_EncryptValue_UseExistingEncryptionKey() {
assertEquals(CREATE_3.propertyValue, config.getRawValue(CREATE_3.propertyName));
}
Expand Down

0 comments on commit 5723500

Please sign in to comment.