(name, command)
| 37 | |
| 38 | |
| 39 | def manifest_with_command(name, command): |
| 40 | return { |
| 41 | 'apiVersion': 'v1', |
| 42 | 'kind': 'Pod', |
| 43 | 'metadata': { |
| 44 | 'name': name |
| 45 | }, |
| 46 | 'spec': { |
| 47 | 'containers': [{ |
| 48 | 'image': 'busybox', |
| 49 | 'name': 'sleep', |
| 50 | "args": [ |
| 51 | "/bin/sh", |
| 52 | "-c", |
| 53 | command |
| 54 | ] |
| 55 | }] |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | |
| 60 | class TestClient(unittest.TestCase): |
no outgoing calls
no test coverage detected