Skip to content

Integration test for 570#712

Merged
blackboxsw merged 2 commits into
canonical:masterfrom
TheRealFalcon:test-gh570
Dec 4, 2020
Merged

Integration test for 570#712
blackboxsw merged 2 commits into
canonical:masterfrom
TheRealFalcon:test-gh570

Conversation

@TheRealFalcon
Copy link
Copy Markdown
Contributor

@TheRealFalcon TheRealFalcon commented Dec 4, 2020

Proposed Commit Message

Integration test for #570

Test that we can add optional vendor-data to the seedfrom file in a
NoCloud environment.

Also added the option to pass raise_on_cloudinit_failure through
an instance restart so we get automatic failure checking when
we need to manually reboot.

Additional Context

#570

Test Steps

should fail:
pytest tests/integration_tests/bugs/test_gh570.py

should pass:
CLOUD_INIT_CLOUD_INIT_SOURCE=PROPOSED pytest tests/integration_tests/bugs/test_gh570.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

VENDOR_DATA,
)
client.execute('cloud-init clean --logs')
client.restart()
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Now that we ignore restart errors from cloud-init in integration test instances. don't we need to either add a raise_errors=True param to IntegrationInstance.restart method or just call client.instance.restart() directly here which would wait and raise errors if we saw them across reboot?

Test that we can add optional vendor-data to the seedfrom file in a
NoCloud environment
@blackboxsw blackboxsw merged commit aa6350f into canonical:master Dec 4, 2020
@TheRealFalcon TheRealFalcon deleted the test-gh570 branch June 29, 2021 18:59
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