Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
fix: Integration tests connection
Browse files Browse the repository at this point in the history
 `FAILED tests/test_login.py::LoginTest::test_whoami - requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=8050): Max retries exceeded with url: /api/stable/auth/login (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc17c8447d0>: Failed to establish a new connection: [Errno 111] Connection refused'))`
  • Loading branch information
B&R committed Mar 21, 2023
1 parent 0f25a79 commit 595603a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Expand Up @@ -11,7 +11,8 @@ build:
test: ## Unit tests
go test -v ./... -covermode=count -coverprofile=coverage.out

integration-test: prepare-tools skaffold-deploy ## End-To-End tests with Kubernetes
integration-test: prepare-tools skaffold-deploy _pytest ## End-To-End tests with Kubernetes
_pytest: ## Shortcut for E2E tests without setting up the environment
pipenv sync
pipenv run pytest -s

Expand Down Expand Up @@ -39,7 +40,9 @@ skaffold-deploy: prepare-tools
skaffold build -p app --tag e2e --default-repo bmt-registry:5000 --push --insecure-registry bmt-registry:5000 --disable-multi-platform-build=true --detect-minikube=false --cache-artifacts=false
skaffold deploy -p app --tag e2e --assume-yes=true --default-repo bmt-registry:5000

export KUBECONFIG=~/.k3d/kubeconfig-bmt.yaml; kubectl apply -f "docs/examples/" -n backups
export KUBECONFIG=~/.k3d/kubeconfig-bmt.yaml; kubectl apply -f "docs/examples/" -n backups; \
kubectl port-forward svc/server-backup-repository-server -n backups 8050:8080 &


dev: ## Runs the development environment in Kubernetes
skaffold deploy -p deps
Expand Down

0 comments on commit 595603a

Please sign in to comment.