Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Behave /features/steps/rest-api.py tests are opening a connection incorrectly #541

Closed
Mletter1 opened this issue Nov 18, 2015 · 0 comments
Closed

Comments

@Mletter1
Copy link
Collaborator

As seen in commit 50b3fab an ssl verify variable was added, it turns out this connection was being incorrectly called and should be called as follows

# Setup a connection to the Slycat Web Server.
connection = slycat.web.client.connect(arguments)

# Create a new project to contain our model.
pid = connection.find_or_create_project(arguments.project_name, arguments.project_description)

In this case this:

context.server_admin = slycat.web.client.Connection(host=context.server_host, ssl_verify=False, proxies={"http":context.server_proxy, "https":context.server_proxy}, auth=(context.server_admin_user, context.server_admin_password))

It should be written like

context.server_admin = slycat.web.client.connect(host=context.server_host, verify=False, proxies={"http":context.server_proxy, "https":context.server_proxy}, auth=(context.server_admin_user, context.server_admin_password))

the connect call sets up a proper connection and returns it

@Mletter1 Mletter1 self-assigned this Nov 18, 2015
alexsielicki pushed a commit that referenced this issue Feb 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant