# Scenario step implementations for remote Ick ## Authentication setup IMPLEMENTS GIVEN an access token for (\S+) with scopes (.+) user = get_next_match() scopes = get_next_match().split() create_api_client(user, scopes) token = get_api_token(user, scopes) store_token(user, token) ## Controller configuration IMPLEMENTS GIVEN controller config uses (\S+) at the state directory V['statedir'] = get_next_match() ## Start and stop the controller IMPLEMENTS GIVEN a running ick controller V['url'] = os.environ['CONTROLLER'] IMPLEMENTS WHEN user stops ick controller pass IMPLEMENTS FINALLY stop ick controller for client_id in get_client_ids(): delete_api_client(client_id) ## Controller state inspection IMPLEMENTS THEN controller state directory contains project (\S+) pass IMPLEMENTS THEN controller state directory contains worker (\S+) pass