(self)
| 150 | ]) |
| 151 | |
| 152 | def test_build_with_buildargs(self): |
| 153 | script = io.BytesIO('\n'.join([ |
| 154 | 'FROM scratch', |
| 155 | 'ARG test', |
| 156 | 'USER $test' |
| 157 | ]).encode('ascii')) |
| 158 | |
| 159 | stream = self.client.build( |
| 160 | fileobj=script, tag='buildargs', buildargs={'test': 'OK'} |
| 161 | ) |
| 162 | self.tmp_imgs.append('buildargs') |
| 163 | for _chunk in stream: |
| 164 | pass |
| 165 | |
| 166 | info = self.client.inspect_image('buildargs') |
| 167 | assert info['Config']['User'] == 'OK' |
| 168 | |
| 169 | @requires_api_version('1.22') |
| 170 | def test_build_shmsize(self): |
nothing calls this directly
no test coverage detected