|
@@ -6,6 +6,8 @@ import java.time.OffsetDateTime;
|
|
|
import java.time.ZoneOffset;
|
|
|
import java.time.format.DateTimeFormatter;
|
|
|
|
|
|
+import static com.provectus.kafka.ui.settings.BaseSource.QASE_ENABLED;
|
|
|
+import static com.provectus.kafka.ui.settings.BaseSource.SUITE_NAME;
|
|
|
import static org.apache.commons.lang3.BooleanUtils.FALSE;
|
|
|
import static org.apache.commons.lang3.BooleanUtils.TRUE;
|
|
|
import static org.apache.commons.lang3.StringUtils.isEmpty;
|
|
@@ -15,9 +17,7 @@ public class QaseExtension {
|
|
|
|
|
|
public static void testRunSetup() {
|
|
|
String qaseApiToken = System.getProperty("QASEIO_API_TOKEN");
|
|
|
- String qaseEnabled = System.getProperty("INPUT_QASE_ENABLED");
|
|
|
- String testSuite = System.getProperty("INPUT_TEST_SUITE");
|
|
|
- if (isEmpty(qaseApiToken) || !Boolean.parseBoolean(qaseEnabled)) {
|
|
|
+ if (isEmpty(qaseApiToken) || !Boolean.parseBoolean(QASE_ENABLED)) {
|
|
|
log.warn("Integration with Qase is disabled due to run config or token wasn't defined.");
|
|
|
System.setProperty("QASE_ENABLE", FALSE);
|
|
|
} else {
|
|
@@ -27,7 +27,7 @@ public class QaseExtension {
|
|
|
System.setProperty("QASE_API_TOKEN", qaseApiToken);
|
|
|
System.setProperty("QASE_USE_BULK", TRUE);
|
|
|
System.setProperty("QASE_RUN_NAME", DateTimeFormatter.ofPattern("dd.MM.yyyy HH:mm")
|
|
|
- .format(OffsetDateTime.now(ZoneOffset.UTC)) + ": " + "Automation " + testSuite.toUpperCase() + " suite");
|
|
|
+ .format(OffsetDateTime.now(ZoneOffset.UTC)) + ": " + "Automation " + SUITE_NAME.toUpperCase() + " suite");
|
|
|
}
|
|
|
}
|
|
|
}
|