def provider_certs(users, provider_ids, context, providers): users = context.get_users(list_parser(users)) provider_ids = list_parser(provider_ids) for user, provider_id in zip(users, provider_ids): user.provider = providers[provider_id] user.get_certs_from_provider()
def provider_certs(users, provider_ids, context, providers): users = context.get_users(list_parser(users)) provider_ids = list_parser(provider_ids) for user, provider_id in zip(users, provider_ids): user.provider = providers[provider_id] user.get_certs_from_provider()
def spaces_creation(user, spaces, onedata_environment, context): spaces = list_parser(spaces) user = context.get_user(user) for space in spaces: space_id = create_space(user, space) user.spaces.update({space: space_id}) user.created_spaces.update({space: space_id})
def spaces_creation(user, spaces, onedata_environment, context): spaces = list_parser(spaces) user = context.get_user(user) for space in spaces: space_id = create_space(user, space) user.spaces.update({space: space_id}) user.created_spaces.update({space: space_id})
def register_users(users, passwords, context, onedata_environment, request): set_dns(onedata_environment) users = list_parser(users) passwords = list_parser(passwords) onepanel = onedata_environment['onepanel_nodes'][0].split('@')[1] if not hasattr(context, "users"): context.users = {} for user_name, password in zip(users, passwords): user = create_user(user_name, password, onepanel) user.set_oz_domain(onedata_environment) context.users[user_name] = user def fin(): for user_name in users: user = context.get_user(user_name) for space in user.created_spaces.keys(): delete_space(user, space) delete_user(user_name, onepanel) del context.users[user_name] request.addfinalizer(fin) return users
def register_users(users, passwords, context, onedata_environment, request): set_dns(onedata_environment) users = list_parser(users) passwords = list_parser(passwords) onepanel = onedata_environment['onepanel_nodes'][0].split('@')[1] if not hasattr(context, "users"): context.users = {} for user_name, password in zip(users, passwords): user = create_user(user_name, password, onepanel) user.set_oz_domain(onedata_environment) context.users[user_name] = user def fin(): for user_name in users: user = context.get_user(user_name) for space in user.created_spaces.keys(): delete_space(user, space) delete_user(user_name, onepanel) del context.users[user_name] request.addfinalizer(fin) return users
def user_ids(users, context): users = context.get_users(list_parser(users)) for user in users: user_id = get_id(user) user.id = user_id
def assigning_privileges(user1, user2, privileges, space, context): user1 = context.get_user(user1) user2 = context.get_user(user2) privileges = list_parser(privileges) assign_privileges(user1, user2, privileges, space)
def request_spaces_support(user, spaces, onedata_environment, context): spaces = list_parser(spaces) user = context.get_user(user) for space in spaces: token = request_support(user, space) user.tokens['support'].update({space: token})
def wt_expand_oz_panel(selenium, browser_id_list, panel_name, oz_page): for browser_id in list_parser(browser_id_list): driver = selenium[browser_id] _expand_oz_panel(oz_page, driver, panel_name)
def user_ids(users, context): users = context.get_users(list_parser(users)) for user in users: user_id = get_id(user) user.id = user_id
def wt_click_on_go_to_files_provider(selenium, browser_id_list, btn_name): for browser_id in list_parser(browser_id_list): driver = selenium[browser_id] _click_on_button_in_provider_popup(driver, btn_name)
def assigning_privileges(user1, user2, privileges, space, context): user1 = context.get_user(user1) user2 = context.get_user(user2) privileges = list_parser(privileges) assign_privileges(user1, user2, privileges, space)
def request_spaces_support(user, spaces, onedata_environment, context): spaces = list_parser(spaces) user = context.get_user(user) for space in spaces: token = request_support(user, space) user.tokens['support'].update({space: token})
def wt_click_on_go_to_files_provider(selenium, browser_id_list, btn_name): for browser_id in list_parser(browser_id_list): driver = selenium[browser_id] _click_on_button_in_provider_popup(driver, btn_name)