Skip to content

Commit

Permalink
Fix testing in minikube (#449)
Browse files Browse the repository at this point in the history
* Fix load_images.
* Replace tabs with spaces.
* Use the same version of PostgreSQL (11.3) in platformapi and platformconfig.
  • Loading branch information
serhiy-storchaka authored Aug 12, 2021
1 parent c1d00b5 commit 9582a6a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions minikube.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function minikube::start {

function minikube::load_images {
echo "Loading images to minikube..."
make gke_docker_pull_test_images
make docker_pull_test_images
}

function minikube::apply_all_configurations {
Expand Down Expand Up @@ -64,12 +64,12 @@ function check_service() { # attempt, max_attempt, service
local service=$2
echo "Checking service $service..."
until minikube service $service --url; do
if [ $attempt == $max_attempts ]; then
echo "Can't connect to the container"
if [ $attempt == $max_attempts ]; then
echo "Can't connect to the container"
exit 1
fi
sleep 1
((attempt++))
fi
sleep 1
((attempt++))
done
}

Expand Down
2 changes: 1 addition & 1 deletion tests/k8s/platformapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
spec:
containers:
- name: platformpostgres
image: postgres:9.6
image: postgres:11.3
env:
- name: POSTGRES_DB
value: postgres
Expand Down

0 comments on commit 9582a6a

Please sign in to comment.