Skip to content

Commit

Permalink
Enable logs test
Browse files Browse the repository at this point in the history
  • Loading branch information
Meldiron committed Aug 12, 2024
1 parent fd6c224 commit ae4c202
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 9 deletions.
14 changes: 5 additions & 9 deletions tests/Orchestration/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}

Expand Down Expand Up @@ -329,7 +331,6 @@ public function testExecContainer(): void
/**
* Test for Success
*/
/*
$output = '';

static::getOrchestration()->execute(
Expand All @@ -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);
}

/**
Expand Down
Binary file modified tests/Orchestration/Resources/php.tar.gz
Binary file not shown.
5 changes: 5 additions & 0 deletions tests/Orchestration/Resources/php/README.md
Original file line number Diff line number Diff line change
@@ -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
```
Binary file modified tests/Orchestration/Resources/timeout.tar.gz
Binary file not shown.
5 changes: 5 additions & 0 deletions tests/Orchestration/Resources/timeout/README.md
Original file line number Diff line number Diff line change
@@ -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
```

0 comments on commit ae4c202

Please sign in to comment.