Exemplo n.º 1
0
def test_format_schedule_dependent_job():
    example_job = {
        "epsilon": "myepsilon",
        "parents": ["testservice testinstance"]
    }
    actual = chronos_serviceinit._format_schedule(example_job)
    assert "None (Dependent Job)." in actual
    assert "Epsilon: myepsilon" in actual
Exemplo n.º 2
0
def test_format_schedule_dependent_job():
    example_job = {
        'epsilon': 'myepsilon',
        'parents': ['testservice testinstance'],
    }
    actual = chronos_serviceinit._format_schedule(example_job)
    assert "None (Dependent Job)." in actual
    assert "Epsilon: myepsilon" in actual
def test_format_schedule_dependent_job():
    example_job = {
        'epsilon': 'myepsilon',
        'parents': ['testservice testinstance']
    }
    actual = chronos_serviceinit._format_schedule(example_job)
    assert "None (Dependent Job)." in actual
    assert "Epsilon: myepsilon" in actual
Exemplo n.º 4
0
def test_format_schedule_scheduletimezone():
    example_job = {"scheduleTimeZone": "Zulu"}
    actual = chronos_serviceinit._format_schedule(example_job)
    assert "(Zulu) Epsilon" in actual
Exemplo n.º 5
0
def test_format_schedule_null_scheduletimezone():
    example_job = {"scheduleTimeZone": "null"}  # This is what Chronos returns.
    actual = chronos_serviceinit._format_schedule(example_job)
    assert ("(UTC) Epsilon" in actual
            )  # In the output, we default to UTC (Chronos should do the same)
Exemplo n.º 6
0
def test_format_schedule_scheduletimezone():
    example_job = {
        'scheduleTimeZone': 'Zulu'
    }
    actual = chronos_serviceinit._format_schedule(example_job)
    assert "(Zulu) Epsilon" in actual
Exemplo n.º 7
0
def test_format_schedule_null_scheduletimezone():
    example_job = {
        'scheduleTimeZone': 'null'  # This is what Chronos returns.
    }
    actual = chronos_serviceinit._format_schedule(example_job)
    assert "(UTC) Epsilon" in actual  # In the output, we default to UTC (Chronos should do the same)
Exemplo n.º 8
0
def test_format_schedule_dependent_job():
    example_job = {"epsilon": "myepsilon", "parents": ["testservice testinstance"]}
    actual = chronos_serviceinit._format_schedule(example_job)
    assert "None (Dependent Job)." in actual
    assert "Epsilon: myepsilon" in actual