def test_collect_prometheus():
    '\n    Test that Prometheus data can be collected.  TBD test that data is valid.\n    :return:\n    '
    oc = OC(kubeadmin_password=test_environment_variable['kubeadmin_password'])
    oc.login()
    with tempfile.TemporaryDirectory() as dirname:
        snapshot = PrometheusSnapshot(oc=oc, artifacts_path=dirname, verbose=True)
        snapshot.prepare_for_snapshot(pre_wait_time=1)
        time.sleep(10)
        tarball = snapshot.retrieve_snapshot(post_wait_time=1)
        assert tarfile.is_tarfile(tarball)
Test that Prometheus data can be collected.  TBD test that data is valid.
:return:
def test_collect_prometheus():
    '\n    Test that Prometheus data can be collected.  TBD test that data is valid.\n    :return:\n    '
    oc = OC(kubeadmin_password=test_environment_variable['kubeadmin_password'])
    oc.login()
    with tempfile.TemporaryDirectory() as dirname:
        snapshot = PrometheusSnapshot(oc=oc, artifacts_path=dirname, verbose=True)
        snapshot.prepare_for_snapshot(pre_wait_time=1)
        time.sleep(10)
        tarball = snapshot.retrieve_snapshot(post_wait_time=1)
        assert tarfile.is_tarfile(tarball)