Skip to content

Commit

Permalink
tests: user syrup compatible warning job status
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikZigo committed Apr 21, 2017
1 parent 99e92a9 commit d4a0541
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/Keboola/Orchestrator/FunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ public function testOrchestrations()
continue;
}

if ($job['status'] === 'warn') {
if ($job['status'] === 'warning') {
$warnCount++;
continue;
}
Expand Down Expand Up @@ -327,7 +327,7 @@ public function testOrchestrations()
}

$this->assertLessThan(1, $errorsCount, "Result of API command 'getOrchestrationJobs' should return any job with 'error' status");
$this->assertLessThan(1, $warnCount, "Result of API command 'getOrchestrationJobs' should return any job with 'warn' status");
$this->assertLessThan(1, $warnCount, "Result of API command 'getOrchestrationJobs' should return any job with 'warning' status");
$this->assertGreaterThan(0, $successCount, "Result of API command 'getOrchestrationJobs' should return least one job with 'success' status");
$this->assertLessThan(1, $otherCount, "Result of API command 'getOrchestrationJobs' should return only finished jobs");

Expand Down Expand Up @@ -529,7 +529,7 @@ public function testOrchestrationsError()
continue;
}

if ($job['status'] === 'warn') {
if ($job['status'] === 'warning') {
$warnCount++;
continue;
}
Expand Down Expand Up @@ -558,7 +558,7 @@ public function testOrchestrationsError()
}

$this->assertLessThan(1, $successCount, "Result of API command 'getOrchestrationJobs' should return any job with 'status' status");
$this->assertLessThan(1, $warnCount, "Result of API command 'getOrchestrationJobs' should return any job with 'warn' status");
$this->assertLessThan(1, $warnCount, "Result of API command 'getOrchestrationJobs' should return any job with 'warning' status");
$this->assertGreaterThan(0, $errorsCount, "Result of API command 'getOrchestrationJobs' should return least one job with 'error' status");
$this->assertLessThan(1, $otherCount, "Result of API command 'getOrchestrationJobs' should return only finished jobs");

Expand Down Expand Up @@ -704,7 +704,7 @@ public function testOrchestrationsWarn()
continue;
}

if ($job['status'] === 'warn') {
if ($job['status'] === 'warning') {
$warnCount++;
continue;
}
Expand Down Expand Up @@ -734,7 +734,7 @@ public function testOrchestrationsWarn()

$this->assertLessThan(1, $successCount, "Result of API command 'getOrchestrationJobs' should return any job with 'status' status");
$this->assertLessThan(1, $errorsCount, "Result of API command 'getOrchestrationJobs' should return any job with 'error' status");
$this->assertGreaterThan(0, $warnCount, "Result of API command 'getOrchestrationJobs' should return least one job with 'warn' status");
$this->assertGreaterThan(0, $warnCount, "Result of API command 'getOrchestrationJobs' should return least one job with 'warning' status");
$this->assertLessThan(1, $otherCount, "Result of API command 'getOrchestrationJobs' should return only finished jobs");

// delete orchestration
Expand Down

0 comments on commit d4a0541

Please sign in to comment.