# Scenario step implementations for remote Qvisqve ## Authentication setup IMPLEMENTS GIVEN an RSA key pair for token signing V['private_key_file'] = os.environ['ICK_PRIVATE_KEY'] assertTrue(os.path.exists(V['private_key_file'])) IMPLEMENTS GIVEN an access token for (\S+) with scopes (.+) user = get_next_match() scopes = get_next_match() key = open(V['private_key_file']).read() argv = [ os.path.join(srcdir, 'create-token'), scopes, ] token = cliapp.runcmd(argv, feed_stdin=key) store_token(user, token) ## Start and stop Qvisqve IMPLEMENTS GIVEN a running Qvisqve instance V['API_URL'] = os.environ['API_URL'] assert 0 IMPLEMENTS FINALLY Qvisqve is stopped pass