Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
fblackburn1 committed Sep 17, 2024
1 parent 503e51f commit 52609e5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion integration_tests/assets/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ services:
- 9497

provd:
image: wazoplatform/wazo-provd
image: wazo-provd-tests
ports:
- "8666"
volumes:
- "${LOCAL_GIT_REPOS}/wazo-provd:/usr/src/wazo-provd/"
- "./etc/wazo-provd/config.yml:/etc/wazo-provd/config.yml"
- "./keys/wazo-provd-key.yml:/var/lib/wazo-auth-keys/wazo-provd-key.yml"
- "./provd/null:/var/lib/wazo-provd/plugins/null"
Expand Down
8 changes: 6 additions & 2 deletions integration_tests/suite/helpers/provd.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def params(self):

def reset(self):
self.clean_devices()
self.clean_configs()
# self.clean_configs()
self.add_default_configs()

def clean_devices(self):
Expand All @@ -103,7 +103,11 @@ def clean_configs(self):

def add_default_configs(self):
for config in self.DEFAULT_CONFIGS:
self.configs.create(config)
try:
self.configs.get(config['id'])
self.configs.update(config)
except ProvdError:
self.configs.create(config)

def add_device_template(self):
config = {
Expand Down

0 comments on commit 52609e5

Please sign in to comment.