Skip to content

Commit 2559256

Browse files
authored
fix route53 dns failover test (#243)
1 parent 5e013c4 commit 2559256

File tree

3 files changed

+33
-4
lines changed

3 files changed

+33
-4
lines changed

route53-dns-failover/Makefile

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,33 @@
1-
.PHONY: run
1+
export AWS_ACCESS_KEY_ID ?= test
2+
export AWS_SECRET_ACCESS_KEY ?= test
3+
export AWS_DEFAULT_REGION=us-east-1
24

3-
run:
4-
bash run_demo.sh
5+
usage:
6+
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'
7+
8+
install:
9+
@which localstack || pip install localstack
10+
@which awslocal || pip install awscli-local
11+
12+
run:
13+
./run.sh
14+
15+
start:
16+
localstack start -d
17+
18+
stop:
19+
@echo
20+
localstack stop
21+
22+
ready:
23+
@echo Waiting on the LocalStack container...
24+
@localstack wait -t 30 && echo Localstack is ready to use! || (echo Gave up waiting on LocalStack, exiting. && exit 1)
25+
26+
logs:
27+
@localstack logs > logs.txt
28+
29+
test-ci:
30+
make start install ready run; return_code=`echo $$?`;\
31+
make logs; make stop; exit $$return_code;
32+
33+
.PHONY: usage install start run stop ready logs test-ci

route53-dns-failover/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
This sample demonstrates the Route53 DNS failover based on health check in LocalStack.
22

3-
We suggest taking a look at [run_demo.sh](run_demo.sh) script to understand the setup.
3+
We suggest taking a look at [run.sh](run.sh) script to understand the setup.
44

55
To run the demo:
66

File renamed without changes.

0 commit comments

Comments
 (0)