Skip to content

Commit

Permalink
tests: flask secret fallback value updated (#809)
Browse files Browse the repository at this point in the history
Signed-off-by: SlavomirMazurPantheon <[email protected]>
  • Loading branch information
SlavomirMazurPantheon authored Dec 12, 2023
1 parent a7db1d7 commit 3e170cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions api/globalConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def __init__(self):

def load_config(self):
config = create_config()
self.secret_key = config.get('Secrets-Section', 'flask-secret-key', fallback='S3CR3T!')
self.secret_key = config.get('Secrets-Section', 'flask-secret-key', fallback='FLASKS3CR3T')
self.nginx_dir = config.get('Directory-Section', 'nginx-conf', fallback='')
self.result_dir = config.get('Web-Section', 'result-html-dir', fallback='tests/resources/html/results')
self.private_dir = config.get('Web-Section', 'private-directory', fallback='tests/resources/html/private')
Expand Down Expand Up @@ -85,7 +85,7 @@ def load_config(self):
self.domain_prefix = config.get('Web-Section', 'domain-prefix', fallback='http://localhost')
self.opensearch_aws = self.opensearch_aws == 'True'

self.LOGGER = log.get_logger('api.yc_gc', '{}/yang.log'.format(self.logs_dir))
self.LOGGER = log.get_logger('api.yc_gc', f'{self.logs_dir}/yang.log')

self.LOGGER.info('yangcatalog configuration reloaded')
self.redis = redis.Redis(host=self.redis_host, port=self.redis_port) # pyright: ignore
Expand Down
4 changes: 2 additions & 2 deletions tests/resources/test.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ repo-config-name=test
[email protected]

[Secrets-Section]
flask-secret-key=S3CR3T
flask-secret-key=FLASKS3CR3T
rabbitmq-password=rabbitmq
opensearch-secret=test
opensearch-secret='test test'
confd-credentials='test test'
yang-catalog-token=test
admin-token=test
Expand Down

0 comments on commit 3e170cb

Please sign in to comment.