Commit bb1c3f72 authored by Mingyang Zhu's avatar Mingyang Zhu Committed by Jason
Browse files

fix the python script bug

parent 808a0d57
......@@ -51,7 +51,8 @@ if __name__ == '__main__':
group_id = '{}@{}.{}'.format(group_name, partition_id, domain)
create_membership_v2(group_id, user_id, partition_id, service_pricipal_token, role, dns)
# migrate data admins
all_data_admins = json.load('DataAdminServiceAccountsList.json')
with open('DataAdminServiceAccountsList.json') as f:
all_data_admins = json.load(f)
data_admin_group_id = '{}.{}'.format(partition_id, domain)
for data_admin in all_data_admins:
create_membership_v2(data_admin_group_id, data_admin, partition_id, service_pricipal_token, 'MEMBER', dns)
\ No newline at end of file
......@@ -26,17 +26,12 @@ public abstract class AcceptanceBaseTest {
protected abstract RequestData getRequestDataForUnauthorizedTest();
protected abstract RequestData getRequestDataForNoTokenTest();
protected void cleanup() throws Exception {
public void shouldReturn401WhenMakingHttpRequestWithUnauthorizedToken() throws Exception {
ClientResponse response = httpClientService.send(getRequestDataForUnauthorizedTest());
Assert.assertEquals(401, response.getStatus());
public void shouldReturn401WhenMakingHttpRequestWithoutToken() throws Exception {
ClientResponse response = httpClientService.send(getRequestDataForNoTokenTest());
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment