@@ 107-117 (lines=11) @@ | ||
104 | } |
|
105 | ||
106 | ||
107 | public function testExecutorPushTag() |
|
108 | { |
|
109 | self::setPath('/groupName/projectName/deploy'); |
|
110 | $result = shell_exec("bash -c \"echo abc\""); |
|
111 | if ($result === "abc\n") { |
|
112 | $response = $this->runApp('{"ENV":"production"}'); |
|
113 | ||
114 | $this->assertEquals(200, $response->getStatusCode()); |
|
115 | $this->assertEquals("Application groupName/projectName action deploy called with ENV set to production", (string)$response->getBody()); |
|
116 | } |
|
117 | } |
|
118 | ||
119 | ||
120 | public function testExecutorPushErrorTag() |
|
@@ 120-129 (lines=10) @@ | ||
117 | } |
|
118 | ||
119 | ||
120 | public function testExecutorPushErrorTag() |
|
121 | { |
|
122 | self::setPath('/groupName/projectName/error'); |
|
123 | $result = shell_exec("bash -c \"echo abc\""); |
|
124 | if ($result === "abc\n") { |
|
125 | $response = $this->runApp('{"ENV":"production"}'); |
|
126 | ||
127 | $this->assertEquals(500, $response->getStatusCode()); |
|
128 | } |
|
129 | } |
|
130 | ||
131 | ||
132 | /** |