Skip to content

Commit 82d6afa

Browse files
committed
add black to docker
Signed-off-by: Chris Snow <[email protected]>
1 parent 29539d9 commit 82d6afa

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ RUN pip install -U pylint pytest mock nose flake8-docstrings flake8-per-file-ign
1313
&& pip install -r /tmp/requirements.txt \
1414
&& pip3 install -r /tmp/requirements.txt
1515

16-
RUN echo 'PATH=$PATH:/home/theia/.local/bin/' > /home/theia/.bash_profile
16+
RUN echo 'PATH=$PATH:/home/theia/.local/bin/' >> /home/theia/.bashrc
1717

1818
ENV PYTHONPATH=/home/project:$PYTHONPATH

bin/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ def get_installed_addons(self, id, k8s_version):
826826
)
827827
print(get_client().k8s_cluster.get(id=id).addons)
828828

829-
def get_available_addons(self, id, k8s_version):
829+
def get_available_addons(self, id=None, k8s_version=None):
830830
"""Retrieve the available addons for a cluster.
831831
832832
:param id: the cluster ID

tests/library/k8s_cluster_test.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,17 @@ def test_create(self, mock_post):
448448
)
449449
self.assertEqual(id, "/api/v2/k8scluster/99")
450450

451+
# now with a k8s version
452+
id = get_client().k8s_cluster.create(
453+
name="a",
454+
k8shosts_config=[
455+
K8sClusterHostConfig("/api/v2/worker/k8shost/1", "master")
456+
],
457+
k8s_version="1.18.0",
458+
addons=["picasso"],
459+
)
460+
self.assertEqual(id, "/api/v2/k8scluster/99")
461+
451462
def mocked_requests_create_error_post(*args, **kwargs):
452463
if args[0] == "https://127.0.0.1:8080/api/v1/login":
453464
return MockResponse(

0 commit comments

Comments
 (0)