Skip to content
This repository was archived by the owner on Jan 12, 2022. It is now read-only.

Adding e2e tests for supported APIs.#83

Merged
theacodes merged 3 commits intomasterfrom
new_e2e_tests
Apr 22, 2016
Merged

Adding e2e tests for supported APIs.#83
theacodes merged 3 commits intomasterfrom
new_e2e_tests

Conversation

@bryanmau1
Copy link
Copy Markdown
Contributor

Adding a set of basic e2e tests demonstrating that the APIs listed here can at least be accessed.

Note: The logging API does not appear to be supported.

R: @jonparrott
CC: @andrewsg

Comment thread tests/e2e/client/Makefile
virtualenv env
env/bin/pip install -r requirements.txt
env/bin/python main.py https://${GCLOUD_PROJECT}.appspot.com/
env/bin/python main.py http://${GCLOUD_PROJECT}.appspot.com/
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not https?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generates an annoying error. Can chat offline. Has to do with SSL.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it requests/urllib3 screaming? If so, we just need to do pip install requests[security] instead of requests. ;)

@bryanmau1
Copy link
Copy Markdown
Contributor Author

Thanks for the comments. Updated the tests.



@pytest.fixture
def request_id():
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this fixture probably isn't necessary unless you plan to add a lot more tests that do this.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll leave this fixture here. Other tests I agree they're overkill, but this one is dependent per-request and if we ever upgrade our test harness to be able to test multiple requests this will be useful.

@theacodes
Copy link
Copy Markdown

LGTM. I'll follow up with a commit to enable linting and fix the imports. :)

@theacodes theacodes merged commit cc6a826 into master Apr 22, 2016
@theacodes theacodes deleted the new_e2e_tests branch April 22, 2016 19:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants