Add Geo replication spec to pypi package test
What does this MR do?
This presents a new way to write Geo replication end-to-end tests that re-uses existing resource creation code without duplicating the code or separating code from the existing (non-Geo) test. We do this by
- adding a Geo replication example to the existing spec file ('it replicates to the Geo secondary site'), tagged with
:geo
- adding a new rule to spec/runner.rb that adds
~geo
rspec tag if there is no geo-secondary-address defined
Description of the test
- The existing pypi package spec generates a project, pipeline and publishs a pypi package in a
before
hook. - The added Geo example navigates to the Geo secondary site and confirms that the pypi package has replicated.
- The test also deletes the project in an
after
hook
Check-list
-
Confirm the test has a testcase:
tag linking to an existing test case in the test case project. -
Note if the test is intended to run in specific scenarios. If a scenario is new, add a link to the MR that adds the new scenario. -
Follow the end-to-end tests style guide and best practices. -
Use the appropriate RSpec metadata tag(s). -
Ensure that a created resource is removed after test execution. -
Verify the tags to ensure it runs on the desired test environments.
Edited by Jennifer Louie