def dcos_cluster(
oss_artifact: Path,
cluster_backend: ClusterBackend,
) -> Iterator[Cluster]:
"""
Return a `Cluster`.
This is module scoped as we do not intend to modify the cluster in ways
that make tests interfere with one another.
"""
with Cluster(
cluster_backend=cluster_backend,
masters=1,
agents=0,
public_agents=0,
) as cluster:
cluster.install_dcos_from_path(oss_artifact, log_output_live=True)
yield cluster
评论列表
文章目录