Compare commits
No commits in common. "2cc67efebbee7e53133a58e1e115529ed94a3d98" and "50d408554ef6b9aefad08700bbe9cdd916741256" have entirely different histories.
2cc67efebb
...
50d408554e
@ -26,9 +26,9 @@ services:
|
|||||||
MONGO_HOST: "mongo.develop.sprinthub.ru"
|
MONGO_HOST: "mongo.develop.sprinthub.ru"
|
||||||
MONGO_PASSWORD: $MONGO_PASSWORD_DEV
|
MONGO_PASSWORD: $MONGO_PASSWORD_DEV
|
||||||
STAGE: "development"
|
STAGE: "development"
|
||||||
|
PLATFORM_SECURITY_TOKEN: $PLATFORM_SECURITY_TOKEN
|
||||||
networks:
|
networks:
|
||||||
- queues-development
|
- queues-development
|
||||||
- configurator
|
|
||||||
deploy:
|
deploy:
|
||||||
mode: replicated
|
mode: replicated
|
||||||
restart_policy:
|
restart_policy:
|
||||||
|
@ -29,7 +29,6 @@ services:
|
|||||||
PLATFORM_SECURITY_TOKEN: $PLATFORM_SECURITY_TOKEN
|
PLATFORM_SECURITY_TOKEN: $PLATFORM_SECURITY_TOKEN
|
||||||
networks:
|
networks:
|
||||||
- queues
|
- queues
|
||||||
- configurator
|
|
||||||
deploy:
|
deploy:
|
||||||
mode: replicated
|
mode: replicated
|
||||||
restart_policy:
|
restart_policy:
|
||||||
|
@ -14,8 +14,11 @@ class PlatformClient:
|
|||||||
self.stage = stage
|
self.stage = stage
|
||||||
self.configs = configs
|
self.configs = configs
|
||||||
self.experiments = experiments
|
self.experiments = experiments
|
||||||
self.endpoint = 'http://configurator/'
|
self.endpoint = 'https://platform.sprinthub.ru/'
|
||||||
self.fetch_url = urllib.parse.urljoin(self.endpoint, '/api/v1/fetch')
|
self.configs_url = urllib.parse.urljoin(self.endpoint, 'configs/get')
|
||||||
|
self.experiments_url = urllib.parse.urljoin(self.endpoint, 'experiments/get')
|
||||||
|
self.staff_url = urllib.parse.urljoin(self.endpoint, 'is_staff')
|
||||||
|
self.fetch_url = urllib.parse.urljoin(self.endpoint, 'fetch')
|
||||||
self.config_storage = {}
|
self.config_storage = {}
|
||||||
self.experiment_storage = {}
|
self.experiment_storage = {}
|
||||||
self.staff_storage = {}
|
self.staff_storage = {}
|
||||||
@ -40,6 +43,7 @@ class PlatformClient:
|
|||||||
try:
|
try:
|
||||||
response = get(
|
response = get(
|
||||||
url,
|
url,
|
||||||
|
headers={'X-Security-Token': self.platform_security_token},
|
||||||
params=params
|
params=params
|
||||||
)
|
)
|
||||||
if response.status_code == 200:
|
if response.status_code == 200:
|
||||||
|
Loading…
Reference in New Issue
Block a user