Skip to content

Commit

Permalink
test: remove deprecated agent relation tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yanksyoon committed Jan 19, 2024
1 parent c10bd1e commit 21f5fc7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
1 change: 0 additions & 1 deletion tests/integration/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,6 @@ async def jenkins_machine_agents_fixture(
num_units=num_units,
)
await machine_model.create_offer(f"{app.name}:{state.AGENT_RELATION}", state.AGENT_RELATION)
await machine_model.create_offer(f"{app.name}:slave", state.DEPRECATED_AGENT_RELATION)
await machine_model.wait_for_idle(
apps=[app.name], status="blocked", idle_period=30, timeout=1200, check_freq=5
)
Expand Down
12 changes: 0 additions & 12 deletions tests/integration/test_machine_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,3 @@ async def test_jenkins_machine_agent_relation(

# 2. Assert that the agent nodes are deregistered from Jenkins.
assert not any((application.name in key for key in jenkins_client.get_nodes().keys()))


@pytest.mark.usefixtures("machine_deprecated_agent_related_app")
async def test_jenkins_machine_deprecated_agent_relation(
jenkins_machine_agents: Application, jenkins_client: jenkinsapi.jenkins.Jenkins
):
"""
arrange: given a cross controller cross model jenkins machine agent with an offer.
act: when the relation is setup through the offer.
assert: the relation succeeds and the agent is able to run jobs successfully.
"""
assert_job_success(jenkins_client, jenkins_machine_agents.name, "machine")

0 comments on commit 21f5fc7

Please sign in to comment.