Skip to content

Add integration test for sensitive jinja substitution (SC-352)#986

Merged
TheRealFalcon merged 1 commit into
canonical:mainfrom
TheRealFalcon:sensitive-substitution
Aug 20, 2021
Merged

Add integration test for sensitive jinja substitution (SC-352)#986
TheRealFalcon merged 1 commit into
canonical:mainfrom
TheRealFalcon:sensitive-substitution

Conversation

@TheRealFalcon
Copy link
Copy Markdown
Contributor

Proposed Commit Message

Add integration test for sensitive jinja substitution

Ensure jinja templates work for both instance-data.json and
instance-data-sensitive.json. Test for LP: #1931392

Also removed test_runcmd.py as it's made redundant by this change.

Additional Context

https://bugs.launchpad.net/cloud-init/+bug/1931392 and #917

Test Steps

pytest tests/integration_tests/modules/test_combined.py

Checklist:

  • My code follows the process laid out in the documentation
  • I have updated or added any unit tests accordingly
  • I have updated or added any documentation accordingly

@TheRealFalcon TheRealFalcon changed the title Add integration test for sensitive jinja substitution Add integration test for sensitive jinja substitution (SC-352) Aug 19, 2021
Copy link
Copy Markdown
Collaborator

@blackboxsw blackboxsw left a comment

Choose a reason for hiding this comment

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

LGTM. good drop. No need to double test and the jinja var subst covers both basic runcmd ++ jinja var substitution.

Ensure jinja templates work for both instance-data.json and
instance-data-sensitive.json. Test for LP: #1931392

Also removed test_runcmd.py as it's made redundant by this change.
@TheRealFalcon TheRealFalcon force-pushed the sensitive-substitution branch from ee7a083 to ef281ac Compare August 20, 2021 15:23
@TheRealFalcon TheRealFalcon merged commit 94679e1 into canonical:main Aug 20, 2021
@TheRealFalcon TheRealFalcon deleted the sensitive-substitution branch August 20, 2021 16:02
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