zalenium
zalenium copied to clipboard
Fixing the docker images filter issue with ListImagesParam.byName method in getLatestDownloadedImage method
Thanks for contributing to Zalenium! Please give us as much information as possible to merge this PR quickly.
Description
DockerClient.ListImagesParam.byName method was not filtering the images based on the image name. Rather it was giving all available docker images in system which in turn returns the first available image from the getLatestDownloadedImage method from the DockerContainerClient file. I have used java filtering to solve this issue.
Motivation and Context
As getLatestDownloadedImage method was return wrong image name, zalenium was starting the wrong container.
How Has This Been Tested?
I have tested these changes locally as well as on our servers, which after the changes works perfectly fine.
Types of changes
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
- [x] My code follows the code style of this project.
- [ ] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly.
- [x] I have read the CONTRIBUTING document.
- [ ] I have added tests to cover my changes.
- [x] All new and existing tests passed.