We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As a user, I would like to have some utility to test the contents of relation databags in itests.
Something like:
async def test_relate(ops_test: OpsTest): await ops_test.juju('relate', 'spring-music:ingress', 'traefik-k8s:ingress') async with ops_test.fast_forward(): await ops_test.model.wait_for_idle(['traefik-k8s', 'spring-music']) data = await ops_test.get_relation_data(requirer_endpoint='spring-music/0:ingress', provider_endpoint='traefik-k8s/0:ingress') model = ops_test.current_alias assert data.requirer.application_data == { 'host': f'spring-music.{model}.svc.cluster.local', 'model': model, 'name': 'spring-music/0', 'port': '8080', } assert data.provider.unit_data == {'foo': 'bar'}
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
As a user, I would like to have some utility to test the contents of relation databags in itests.
Something like:
The text was updated successfully, but these errors were encountered: