Skip to content

(REPLATS-101) Update spec helpers for > 1 image#232

Merged
Iristyle merged 1 commit into
mainfrom
update-spec-helpers-for-multiple-images
Apr 8, 2021
Merged

(REPLATS-101) Update spec helpers for > 1 image#232
Iristyle merged 1 commit into
mainfrom
update-spec-helpers-for-multiple-images

Conversation

@Iristyle

@Iristyle Iristyle commented Jan 6, 2021

Copy link
Copy Markdown
Contributor
  • require_test_image can now understand a comma separated list of
    image names given to PUPPET_TEST_DOCKER_IMAGE and will return
    an array of image names rather than a string when that happens

  • pull_images can now accept an array of image names to ignore,
    rather than just a string

    both changes are backwards compatible

@Iristyle Iristyle requested a review from a team as a code owner January 6, 2021 16:28
nwolfe
nwolfe previously approved these changes Jan 6, 2021

@nwolfe nwolfe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does a usage of multiple images in PUPPET_TEST_DOCKER_IMAGE look like?

@Iristyle

Iristyle commented Jan 8, 2021

Copy link
Copy Markdown
Contributor Author

It looks like this @nwolfe - https://github.com/puppetlabs/pe-console-services/pull/332/files#diff-b13e4282ffe92149a68a4cbed78d882e116b23ea348eed66646b3416a14c36caR10

I think I'm going to go a different direction on the RBAC / console split for now though and stick with producing just one configurable image... so I may end up closing this PR (not that it hurts / breaks anything)

 - require_test_image can now understand a comma separated list of
   image names given to PUPPET_TEST_DOCKER_IMAGE and will return
   an array of image names rather than a string when that happens

 - pull_images can now accept an array of image names to ignore,
   rather than just a string

   both changes are backwards compatible
@Iristyle Iristyle force-pushed the update-spec-helpers-for-multiple-images branch from c62e474 to eb2e142 Compare April 8, 2021 16:43
@Iristyle

Iristyle commented Apr 8, 2021

Copy link
Copy Markdown
Contributor Author

Moved the rbac piece to #254

Turns out this is useful for a case where the same image is used in multiple services (as is the case with puppetlabs/r10k#1143 ... and in pending changes to the puppet-agent test suite at https://github.com/puppetlabs/puppet-agent/pull/2079/files#diff-360a0bbca66cd1f28f3fd1a5f9a3b263eef4f39d9f1afd61dee2198027b936efR9)

@Iristyle Iristyle merged commit b952dda into main Apr 8, 2021
@Iristyle Iristyle deleted the update-spec-helpers-for-multiple-images branch April 8, 2021 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants