Skip to content

Commit

Permalink
removed unclean init of tests within make file, and made the process …
Browse files Browse the repository at this point in the history
…of starting tests cleaner
  • Loading branch information
jamesgreen-moj committed Apr 8, 2024
1 parent 5e3d5e8 commit 512ea29
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 25 deletions.
3 changes: 0 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@ run: ## Build dev image and start dhcp container

.PHONY: test
test: ## Build dev container, start dhcp container, run tests
$(MAKE) run
$(MAKE) build-dev
./scripts/wait_for_dhcp_server.sh
$(DOCKER_COMPOSE) run --rm dhcp-test rspec -f d ./spec

.PHONY: shell
Expand Down
6 changes: 4 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,10 @@ services:
DB_PORT: 3306
METRICS_NAMESPACE: "Kea-DHCP"
depends_on:
- db
- dhcp-primary
db:
condition: service_healthy
dhcp-primary:
condition: service_started
ports:
- 68:68/udp
volumes:
Expand Down
20 changes: 0 additions & 20 deletions scripts/wait_for_dhcp_server.sh

This file was deleted.

0 comments on commit 512ea29

Please sign in to comment.