Skip to content

Commit

Permalink
fix: fix integration test and change Ingress port to point to NGINX
Browse files Browse the repository at this point in the history
  • Loading branch information
amandahla committed Sep 17, 2024
1 parent b684071 commit cbf42d8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def __init__(self, *args: typing.Any):
args: Arguments passed to the CharmBase parent constructor.
"""
super().__init__(*args)
self.ingress = IngressPerAppRequirer(self, port=29316)
self.ingress = IngressPerAppRequirer(self, port=8080)
self.framework.observe(self.on.maubot_pebble_ready, self._on_maubot_pebble_ready)
self.framework.observe(
self.on.maubot_nginx_pebble_ready, self._on_maubot_nginx_pebble_ready
Expand Down
7 changes: 6 additions & 1 deletion tests/integration/test_charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,15 @@ async def test_build_and_deploy(
charm = pytestconfig.getoption("--charm-file")
maubot_image = pytestconfig.getoption("--maubot-image")
assert maubot_image
maubot_nginx_image = pytestconfig.getoption("--maubot-nginx-image")
assert maubot_nginx_image
if not charm:
charm = await ops_test.build_charm(".")
assert ops_test.model
maubot = await ops_test.model.deploy(f"./{charm}", resources={"maubot-image": maubot_image})
maubot = await ops_test.model.deploy(
f"./{charm}",
resources={"maubot-image": maubot_image, "maubot-nginx-image": maubot_nginx_image},
)
nginx_ingress_integrator = await ops_test.model.deploy(
"nginx-ingress-integrator",
channel="edge",
Expand Down

0 comments on commit cbf42d8

Please sign in to comment.