def put_caesar_config(cls, data): """ Update caesar config data """ address = Address.root() headers = cls.headers() logger.info('PUT to %s config %s', address, data) print(headers) r = requests.put(address, headers=headers, json=data) logger.info('done') return r
def fetch_caesar_config(cls): """ Fetch the current config stored in caesar """ address = Address.root() logger.info('Fetching current config in caesar') logger.info('GET to %s', address) headers = cls.headers() print(headers) r = requests.get(address, headers=headers) logger.debug('done') return r
def test_root_address(self): address = 'https://example.zooniverse.org:2000/' \ 'workflows/1234' assert Address.root() == address