Skip to content
This repository has been archived by the owner on Apr 21, 2022. It is now read-only.

Commit

Permalink
#9, #14: Add missing files synchronization
Browse files Browse the repository at this point in the history
  • Loading branch information
blackandred committed Jul 12, 2020
1 parent 091a693 commit 1cb6f4e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/harbor/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,14 @@ def recreate_structure(cls):

subprocess.check_call(['rm', '-rf', CURRENT_TEST_ENV_PATH])
subprocess.check_call(['cp', '-pr', ENV_SIMPLE_PATH, CURRENT_TEST_ENV_PATH])

# copy from base structure - as we test eg. things like default configurations, NGINX template
for directory in ['containers', 'data', 'hooks.d', 'apps/www-data']:
subprocess.check_call('rm -rf %s/%s' % (ENV_SIMPLE_PATH, directory), shell=True)
subprocess.check_call('cp -pr %s/project/%s %s/%s' % (
HARBOR_MODULE_PATH, directory, CURRENT_TEST_ENV_PATH, directory
), shell=True)

cls.mock_compose({'services': {}})

@classmethod
Expand Down
Empty file.
Empty file.

0 comments on commit 1cb6f4e

Please sign in to comment.