Total Complexity | 1 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | class ServiceTest extends TestCase |
||
11 | { |
||
12 | private const PAYLOAD = <<< 'JSON' |
||
13 | { |
||
14 | "serviceName" : "foo", |
||
15 | "service": { |
||
16 | "image" : "foo", |
||
17 | "internalPorts" : [1, 2, 3], |
||
18 | "dependsOn" : ["foo", "bar"], |
||
19 | "ports" : [{"source": 80, "target": 8080}], |
||
20 | "environment" : { |
||
21 | "FOO": { |
||
22 | "value": "fooo", |
||
23 | "type": "containerEnvVariable" |
||
24 | } |
||
25 | }, |
||
26 | "labels" : { |
||
27 | "foo": {"value": "fooo"}, |
||
28 | "bar": {"value": "baar"} |
||
29 | }, |
||
30 | "volumes" : [ |
||
31 | { |
||
32 | "type" : "volume", |
||
33 | "source" : "foo", |
||
34 | "target" : "bar", |
||
35 | "readOnly" : true |
||
36 | } |
||
37 | ] |
||
38 | } |
||
39 | } |
||
40 | JSON; |
||
41 | |||
42 | /** |
||
43 | * @throws ServiceException |
||
44 | */ |
||
45 | public function testCheckValidity() : void |
||
53 |