Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Improve how relocation mappings are applied #862

Merged
merged 1 commit into from
Sep 17, 2019

Conversation

glyn
Copy link
Contributor

@glyn glyn commented Sep 16, 2019

Also support a relocation mapping flag on the status command.

Fixes #858
Fixes #859

expectedInvocationImage: "example.com/original",
expectedOpRelocatorErrorMessage: "",
},
"non-existent relocation mapping file": {
Copy link
Contributor

Choose a reason for hiding this comment

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

What is if the difference between this test case and "bad relocation mapping file"? They both seem to have the same setup with a non-existent relocation mapping file, but then they each have different expectedInvocationImage which I don't quite understand.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well spotted! There is no significant difference, so I've deleted one of them. expectedInvocationImage is unused since expectedErrorMessage is non-empty and so its value makes no difference.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Pushed a fix and also improved the test to check the mounting of the relocation mapping.

Also support a relocation mapping flag on the status command.

Fixes cnabio#858
Fixes cnabio#859
Copy link
Contributor

@carolynvs carolynvs left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@jeremyrickard jeremyrickard left a comment

Choose a reason for hiding this comment

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

LGMT, like the change.

@jeremyrickard jeremyrickard merged commit 414c8a6 into cnabio:master Sep 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve how relocation mappings are applied status command should support relocation mapping
3 participants