Skip to content

Commit

Permalink
adding test case for bzip2 and check for php warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
rshariffdeen committed Apr 4, 2017
1 parent 3bff55d commit 86ccd28
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
9 changes: 8 additions & 1 deletion tests/functional/Web55ContainerCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public function _after(FunctionalTester $I)
}


public function ContainerTest(AcceptanceTester $I){
public function ContainerTest(AcceptanceTester $I){
$I->wantTo("verify ubuntu container up and running");
$I->runShellCommand("docker inspect -f {{.State.Running}} dev_web_55");
$I->seeInShellOutput("true");
Expand Down Expand Up @@ -88,6 +88,7 @@ public function phpTest(AcceptanceTester $I){
$I->wantTo("verify php 5.5 is installed in the container");
$I->runShellCommand("docker exec dev_web_55 php --version");
$I->seeInShellOutput('PHP 5.5');
$I->dontSeeInShellOutput('PHP Warning');
}

public function nodeTest(AcceptanceTester $I){
Expand All @@ -114,6 +115,12 @@ public function bowerTest(AcceptanceTester $I){
$I->seeInShellOutput('1');
}

public function bzip2Test(AcceptanceTester $I){
$I->wantTo("verify bzip2 is installed in the container");
$I->runShellCommand("docker exec dev_web_56 bzip2 -V");
$I->seeInShellOutput('Version 1.0.6');
}

public function phpModuleTest(AcceptanceTester $I){
$I->wantTo("verify required php modules are available");
$I->runShellCommand("docker exec dev_web_55 php -m");
Expand Down
11 changes: 10 additions & 1 deletion tests/functional/Web56ContainerCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public function _after(FunctionalTester $I)
}


public function ContainerTest(AcceptanceTester $I){
public function ContainerTest(AcceptanceTester $I){
$I->wantTo("verify ubuntu container up and running");
$I->runShellCommand("docker inspect -f {{.State.Running}} dev_web_56");
$I->seeInShellOutput("true");
Expand Down Expand Up @@ -88,6 +88,7 @@ public function phpTest(AcceptanceTester $I){
$I->wantTo("verify php 5.6 is installed in the container");
$I->runShellCommand("docker exec dev_web_56 php --version");
$I->seeInShellOutput('PHP 5.6');
$I->dontSeeInShellOutput('PHP Warning');
}

public function nodeTest(AcceptanceTester $I){
Expand All @@ -114,6 +115,12 @@ public function bowerTest(AcceptanceTester $I){
$I->seeInShellOutput('1');
}

public function bzip2Test(AcceptanceTester $I){
$I->wantTo("verify bzip2 is installed in the container");
$I->runShellCommand("docker exec dev_web_56 bzip2 -V");
$I->seeInShellOutput('Version 1.0.6');
}

public function phpModuleTest(AcceptanceTester $I){
$I->wantTo("verify required php modules are available");
$I->runShellCommand("docker exec dev_web_56 php -m");
Expand Down Expand Up @@ -161,4 +168,6 @@ public function mysqlServerTest(AcceptanceTester $I){
$I->seeInShellOutput('2 packets transmitted, 2 packets received');
}



}

0 comments on commit 86ccd28

Please sign in to comment.