Skip to content

Commit

Permalink
fix test output
Browse files Browse the repository at this point in the history
  • Loading branch information
siakhooi committed Nov 19, 2023
1 parent f711730 commit 0dd7729
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 34 deletions.
11 changes: 7 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ build:
./scripts/shellcheck.sh
./scripts/build.sh

test-debian:
docker run -it --network host --rm -w /working -v $$(pwd):/working -v /var/run/docker.sock:/var/run/docker.sock siakhooi/shed-tester:debian bash /working/test/in-container-init-test.sh
test-ubuntu:
docker run -it --network host --rm -w /working -v $$(pwd):/working -v /var/run/docker.sock:/var/run/docker.sock siakhooi/shed-tester:ubuntu bash /working/test/in-container-init-test.sh

## troubleshooting

test-man:
pandoc src/md/shed-config.1.md -s -t man | man -l -
# pandoc src/md/shed-config.yaml.5.md -s -t man | man -l -
Expand All @@ -20,15 +27,11 @@ reinstall:

build-debian:
cd test && docker build . -f Dockerfiles/Dockerfile_debian -t shed-tester:debian -t siakhooi/shed-tester:debian
test-debian:
docker run -it --network host --rm -w /working -v $$(pwd):/working -v /var/run/docker.sock:/var/run/docker.sock siakhooi/shed-tester:debian bash /working/test/in-container-init-test.sh
run-shed-debian:
docker run -it --network host --rm -w /working -v $$(pwd):/working -v /var/run/docker.sock:/var/run/docker.sock siakhooi/shed-tester:debian bash

build-ubuntu:
cd test && docker build . -f Dockerfiles/Dockerfile_ubuntu -t shed-tester:ubuntu -t siakhooi/shed-tester:ubuntu
test-ubuntu:
docker run -it --network host --rm -w /working -v $$(pwd):/working -v /var/run/docker.sock:/var/run/docker.sock siakhooi/shed-tester:ubuntu bash /working/test/in-container-init-test.sh
run-shed-ubuntu:
docker run -it --network host --rm -w /working -v $$(pwd):/working -v /var/run/docker.sock:/var/run/docker.sock siakhooi/shed-tester:ubuntu bash

Expand Down
30 changes: 15 additions & 15 deletions test/expected/shed-config/shed-config.out
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
sheds:
- code: D
 name: shed-D-development
 kubeconfig:
- context: kube-dev-1
 namespace: ns-application
 prompt-name: dev-app
 - context: kube-dev-1
 namespace: ns-database
 - code: T
 name: shed-T-testing
 kubeconfig:
- context: kube-test-1
shed-init:
 shed: D
sheds:
- code: D
name: shed-D-development
kubeconfig:
- context: kube-dev-1
namespace: ns-application
prompt-name: dev-app
- context: kube-dev-1
namespace: ns-database
- code: T
name: shed-T-testing
kubeconfig:
- context: kube-test-1
shed-init:
shed: D
30 changes: 15 additions & 15 deletions test/expected/shed-config/shed_config.out
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
sheds:
- code: D
 name: shed-D-development
 kubeconfig:
- context: kube-dev-1
 namespace: ns-application
 prompt-name: dev-app
 - context: kube-dev-1
 namespace: ns-database
 - code: T
 name: shed-T-testing
 kubeconfig:
- context: kube-test-1
shed-init:
 shed: D
sheds:
- code: D
name: shed-D-development
kubeconfig:
- context: kube-dev-1
namespace: ns-application
prompt-name: dev-app
- context: kube-dev-1
namespace: ns-database
- code: T
name: shed-T-testing
kubeconfig:
- context: kube-test-1
shed-init:
shed: D

0 comments on commit 0dd7729

Please sign in to comment.