Fix powerjob test when python is not available (#12315)

This commit is contained in:
Lauri Tulmin 2024-09-23 16:04:17 +03:00 committed by GitHub
parent 3633d2b151
commit faff2d995a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 4 deletions

View File

@ -207,9 +207,10 @@ class PowerJobBasicProcessorTest {
trace -> {
trace.hasSpansSatisfyingExactly(
span -> {
// not asserting status as it is either unset or error depending on whether python
// is available or not
span.hasName(String.format("%s.process", PythonProcessor.class.getSimpleName()))
.hasKind(SpanKind.INTERNAL)
.hasStatus(StatusData.unset())
.hasAttributesSatisfyingExactly(
attributeAssertions(
PythonProcessor.class.getName(), jobId, jobParam, PYTHON_PROCESSOR));
@ -219,7 +220,6 @@ class PowerJobBasicProcessorTest {
@Test
void testHttpProcessor() throws Exception {
long jobId = 1;
String jobParam = "{\"method\":\"GET\"}";
TaskContext taskContext = genTaskContext(jobId, jobParam);
@ -243,7 +243,6 @@ class PowerJobBasicProcessorTest {
@Test
void testFileCleanerProcessor() throws Exception {
long jobId = 1;
JSONObject params = new JSONObject();
params.put("dirPath", "/abc");
@ -305,7 +304,6 @@ class PowerJobBasicProcessorTest {
@Test
void testDynamicDataSourceProcessor() throws Exception {
long jobId = 1;
String jobParam = "{\"dirPath\":\"/abc\"}";
TaskContext taskContext = genTaskContext(jobId, jobParam);