Exemple #1
0
async def test_render_cloud_init():
    cloud_init = AzureVMCluster.get_cloud_init(docker_args="--privileged")
    assert " --privileged " in cloud_init

    cloud_init = AzureVMCluster.get_cloud_init(
        extra_bootstrap=["echo 'hello world'", "echo 'foo bar'"]
    )
    assert "- echo 'hello world'" in cloud_init
    assert "- echo 'foo bar'" in cloud_init
async def test_render_cloud_init():
    cloud_init = AzureVMCluster.get_cloud_init(docker_args="--privileged")
    assert " --privileged " in cloud_init