Skip to content

Commit

Permalink
test: blueocean plugin (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
yanksyoon authored Nov 2, 2023
1 parent 189114b commit 049515f
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/integration/test_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,3 +219,20 @@ async def test_postbuildscript_plugin(
)
assert ret == 0, f"Failed to scp test output file, {stderr}"
assert stdout == test_output


async def test_blueocean_plugin(ops_test: OpsTest, unit_web_client: UnitWebClient):
"""
arrange: given a jenkins charm with blueocean plugin installed.
act: when blueocean frontend url is accessed.
assert: 200 response is returned.
"""
await install_plugins(ops_test, unit_web_client.unit, unit_web_client.client, ("blueocean",))

res = unit_web_client.client.requester.get_url(
f"{unit_web_client.web}/blue/organizations/jenkins/"
)

assert (
res.status_code == 200
), f"Failed to access Blueocean frontend, {str(res.content, encoding='utf-8')}"

0 comments on commit 049515f

Please sign in to comment.