def test_find_node(jenkins_env): jk = Jenkins(jenkins_env["url"], (jenkins_env["admin_user"], jenkins_env["admin_token"])) expected_name = "master" result = jk.find_node(expected_name) assert result is not None assert result.name == expected_name
def test_find_node(jenkins_env): jk = Jenkins(jenkins_env["url"], (jenkins_env["admin_user"], jenkins_env["admin_token"])) node = jk.find_node("master") assert node is not None assert node.name == "master"
def test_find_node_not_exists(jenkins_env): jk = Jenkins(jenkins_env["url"], (jenkins_env["admin_user"], jenkins_env["admin_token"])) node = jk.find_node("NodeDoesNotExist") assert node is None