Zander Mackie
483c53ad9d
Use single table for all ContainerImagePullPolicy tests
...
- Cleans up assertions
- Centralizes and simplifies handler functions
Signed-off-by: Zander Mackie <zmackie@gmail.com >
2019-05-06 14:16:26 -07:00
Zander Mackie
ffba7659cc
Improve testing of never pull and always pull scenarios
...
Signed-off-by: Zander Mackie <zmackie@gmail.com >
2019-05-06 14:16:26 -07:00
Zander Mackie
ec56136d61
Use closure for common pulling and tagging bevior in container creation
...
Signed-off-by: Zander Mackie <zmackie@gmail.com >
2019-05-06 14:16:26 -07:00
Zander Mackie
965664d89b
Improve flow pull behavior before container creation.
...
- Also improve test coverage
Signed-off-by: Zander Mackie <zmackie@gmail.com >
2019-05-06 14:16:26 -07:00
Zander Mackie
22cd418967
Adds flag modifying pull behavior for running and creating containers
...
- Follows the proposal on issue [#34394 ](https://github.com/moby/moby/issues/34394 )
- Maintains current behavior as default (Pull image if missing)
- Adds tristate flag allowing modification (PullMissing, PullAlways, PullNever)
Signed-off-by: Zander Mackie <zmackie@gmail.com >
2019-05-06 14:16:26 -07:00