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

Correct BINSTAR_TOKEN for integration tests. #44

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

pelson
Copy link
Contributor

@pelson pelson commented Jun 26, 2016

Closes #39.

These tests should all pass as I have pushed the branch to this repo.

@pelson
Copy link
Contributor Author

pelson commented Jun 30, 2016

@mwcraig - just wondering if you were able to run this failing test before? I'm curious about BINSTAR_TOKENS and what permissions are needed to read from multiple channels. It looks to me like this TOKEN doesn't have permission to api: read from conda-forge... 😕

======================================================================

ERROR: test_distribution_exists (conda_build_all.tests.integration.test_inspect_binstar.Test)

----------------------------------------------------------------------

Traceback (most recent call last):

  File "/home/travis/conda/lib/python3.5/site-packages/conda_build_all-0.13.2.dev2+detached.from.fetch.head-py3.5.egg/conda_build_all/tests/integration/test_inspect_binstar.py", line 43, in setUp

    clear_binstar(CLIENT, OWNER)

  File "/home/travis/conda/lib/python3.5/site-packages/conda_build_all-0.13.2.dev2+detached.from.fetch.head-py3.5.egg/conda_build_all/tests/integration/test_inspect_binstar.py", line 23, in clear_binstar

    for channel in cli.list_channels(owner):

  File "/home/travis/conda/lib/python3.5/site-packages/binstar_client/mixins/channels.py", line 19, in list_channels

    self._check_response(res, [200])

  File "/home/travis/conda/lib/python3.5/site-packages/binstar_client/__init__.py", line 196, in _check_response

    raise ErrCls(msg, res.status_code)

binstar_client.errors.Unauthorized: ('Authentication token does not have the sufficient scope to perform this action expected: api:read', 401)

-------------------- >> begin captured logging << --------------------

requests.packages.urllib3.connectionpool: INFO: Starting new HTTPS connection (1): api.anaconda.org

requests.packages.urllib3.connectionpool: DEBUG: "GET /channels/Obvious-ci-tests HTTP/1.1" 401 114

--------------------- >> end captured logging << ---------------------

----------------------------------------------------------------------

Ran 70 tests in 1.525s

FAILED (errors=2)

@mwcraig
Copy link
Contributor

mwcraig commented Jun 30, 2016

I managed to run them locally when I switched to an anaconda account I made for testing. I have sometimes found that anaconda.org tokens work best when all of the access checkboxes are selected (even when doing so is redundant).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants