diff --git a/tests/Orchestration/Base.php b/tests/Orchestration/Base.php index f687661..a969d79 100644 --- a/tests/Orchestration/Base.php +++ b/tests/Orchestration/Base.php @@ -17,7 +17,9 @@ abstract protected static function getAdapterName(): string; */ public static $containerID; - public function setUp(): void {} + public function setUp(): void { + \exec("rm -rf /usr/src/code/tests/Orchestration/Resources/screens"); // cleanup + } public function tearDown(): void {} @@ -329,7 +331,6 @@ public function testExecContainer(): void /** * Test for Success */ - /* $output = ''; static::getOrchestration()->execute( @@ -346,14 +347,9 @@ public function testExecContainer(): void $length += 5; // "start" $length += 3; // "end" - \var_dump(\strlen($output)); - \var_dump(\substr($output, 0, 100)); - \var_dump(\substr($output, -100)); - $this->assertEquals($length, \strlen($output)); - $this->assertStringStartsWith('start', $output); - $this->assertStringEndsWith('end', $output); - */ + $this->assertStringStartsWith('START', $output); + $this->assertStringEndsWith('END', $output); } /** diff --git a/tests/Orchestration/Resources/php.tar.gz b/tests/Orchestration/Resources/php.tar.gz index a2fccbb..0127e31 100644 Binary files a/tests/Orchestration/Resources/php.tar.gz and b/tests/Orchestration/Resources/php.tar.gz differ diff --git a/tests/Orchestration/Resources/php/README.md b/tests/Orchestration/Resources/php/README.md new file mode 100644 index 0000000..8f9b2f4 --- /dev/null +++ b/tests/Orchestration/Resources/php/README.md @@ -0,0 +1,5 @@ +If you do changes to confent of this folder, run following command inside `Resources` directory: + +```sh +tar -zcf ./php.tar.gz php +``` \ No newline at end of file diff --git a/tests/Orchestration/Resources/timeout.tar.gz b/tests/Orchestration/Resources/timeout.tar.gz index d1c7c03..5010c0c 100644 Binary files a/tests/Orchestration/Resources/timeout.tar.gz and b/tests/Orchestration/Resources/timeout.tar.gz differ diff --git a/tests/Orchestration/Resources/timeout/README.md b/tests/Orchestration/Resources/timeout/README.md new file mode 100644 index 0000000..aa24845 --- /dev/null +++ b/tests/Orchestration/Resources/timeout/README.md @@ -0,0 +1,5 @@ +If you do changes to confent of this folder, run following command inside `Resources` directory: + +```sh +tar -zcf ./timeout.tar.gz timeout +``` \ No newline at end of file