Skip to content

Commit

Permalink
add integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
eaudetcobello committed Nov 11, 2024
1 parent e525985 commit 08064e9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/integration/tests/test_util/test_bootstrap.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from typing import List

import pytest
from test_util import harness

@pytest.mark.node_count(1)
@pytest.mark.disable_k8s_bootstrapping()
def test_microk8s_installed(instances: List[harness.Instance]):
instance = instances[0]
instance.exec("snap install microk8s --classic".split())
result = instance.exec("k8s bootstrap".split(), capture_output=True, check=False)
assert "Error: microk8s snap is installed" in result.stderr.decode()

0 comments on commit 08064e9

Please sign in to comment.