From 52609e510f9445a1a171f61e17eea72d3b64cf8b Mon Sep 17 00:00:00 2001 From: Francois Blackburn Date: Tue, 17 Sep 2024 09:59:35 -0400 Subject: [PATCH] wip --- integration_tests/assets/docker-compose.yml | 3 ++- integration_tests/suite/helpers/provd.py | 8 ++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/integration_tests/assets/docker-compose.yml b/integration_tests/assets/docker-compose.yml index 307fc4674..990e697ed 100644 --- a/integration_tests/assets/docker-compose.yml +++ b/integration_tests/assets/docker-compose.yml @@ -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" diff --git a/integration_tests/suite/helpers/provd.py b/integration_tests/suite/helpers/provd.py index 28993bc52..9d846b063 100644 --- a/integration_tests/suite/helpers/provd.py +++ b/integration_tests/suite/helpers/provd.py @@ -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): @@ -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 = {