From 6c72a9e2e8419989f49f0c5d107b10f6b5dbd56a Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Wed, 4 Nov 2020 14:02:29 +0100 Subject: [PATCH] providers/proxy: fix k8s integration tests --- passbook/providers/proxy/tests.py | 4 ++-- scripts/agent-install.sh | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/passbook/providers/proxy/tests.py b/passbook/providers/proxy/tests.py index 7ccc32751..d2e9d1eea 100644 --- a/passbook/providers/proxy/tests.py +++ b/passbook/providers/proxy/tests.py @@ -23,7 +23,7 @@ class TestControllers(TestCase): external_host="http://localhost", authorization_flow=Flow.objects.first(), ) - service_connection = KubernetesServiceConnection.objects.get(local=True) + service_connection = KubernetesServiceConnection.objects.first() outpost: Outpost = Outpost.objects.create( name="test", type=OutpostType.PROXY, @@ -44,7 +44,7 @@ class TestControllers(TestCase): external_host="http://localhost", authorization_flow=Flow.objects.first(), ) - service_connection = KubernetesServiceConnection.objects.get(local=True) + service_connection = KubernetesServiceConnection.objects.first() outpost: Outpost = Outpost.objects.create( name="test", type=OutpostType.PROXY, diff --git a/scripts/agent-install.sh b/scripts/agent-install.sh index 548642ded..454f6ee04 100644 --- a/scripts/agent-install.sh +++ b/scripts/agent-install.sh @@ -1,4 +1,6 @@ #!/bin/bash -xe +wget -q -O - https://raw.githubusercontent.com/rancher/k3d/main/install.sh | bash + VERSION=3.8.5 wget https://www.python.org/ftp/python/$VERSION/Python-$VERSION.tgz