def setUpClass(cls): super(ServerApiTest, cls).setUpClass() with open('tests/test-config.json') as configuration_data: cls.data = json.load(configuration_data) cls.sdk = ContrastSdk(cls.data['username'], cls.data['api_key'], cls.data['service_key'], cls.data['teamserver_url']) cls.org_uuid = cls.data['org_uuid'] cls.server_id = cls.data['server_id']
def setUpClass(cls): super(ContrastSDKTest, cls).setUpClass() with open('tests/test-config.json') as configuration_data: cls.data = json.load(configuration_data) cls.sdk = ContrastSdk(cls.data['username'], cls.data['api_key'], cls.data['service_key'], 'some-invalid-url') cls.org_uuid = cls.data['org_uuid']
def setUpClass(cls): super(TagsApiTest, cls).setUpClass() with open('tests/test-config.json') as configuration_data: cls.data = json.load(configuration_data) cls.sdk = ContrastSdk(cls.data['username'], cls.data['api_key'], cls.data['service_key'],cls.data['teamserver_url']) cls.org_uuid = cls.data['org_uuid'] cls.server_id = cls.data['server_id'] cls.app_id = cls.data['app_id'] cls.library_hash = cls.data['java_library_hash'] cls.trace_id = cls.data['trace_id'] cls.tag_name = 'test-tag'