예제 #1
0
def test_2_jobs(mcg_job_factory):
    """
    Create 2 jobs, one with custom runtime. Both should work at the same time.

    """
    custom_options = {'create': [('runtime', '48h')]}
    job1 = mcg_job_factory()
    job2 = mcg_job_factory(custom_options=custom_options)
    wait_for_active_pods(job1, 1)
    wait_for_active_pods(job2, 1)
예제 #2
0
def test_upgrade_mcg_io(mcg_workload_job):
    """
    Confirm that there is MCG workload job running after upgrade.
    """
    assert wait_for_active_pods(
        mcg_workload_job,
        1), (f"Job {mcg_workload_job.name} doesn't have any running pod")
예제 #3
0
def test_start_upgrade_mcg_io(mcg_workload_job):
    """
    Confirm that there is MCG workload job running before upgrade.
    """
    # wait a few seconds for fio job to start
    assert wait_for_active_pods(mcg_workload_job, 1, timeout=20), (
        f"Job {mcg_workload_job.name} doesn't have any running pod")