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

[iap] Debug why iap test doesn't pass locally. #3878

Closed
tmatsuo opened this issue May 26, 2020 · 1 comment
Closed

[iap] Debug why iap test doesn't pass locally. #3878

tmatsuo opened this issue May 26, 2020 · 1 comment
Assignees
Labels
api: iap Issues related to the Identity-Aware Proxy API. testing type: process A process-related concern. May include testing, release, or the like.

Comments

@tmatsuo
Copy link
Contributor

tmatsuo commented May 26, 2020

If you run iap/iap_test.py locally, it fails with the following logs:
I'm not sure why. Maybe there're some firewall rules on the project?
I don't have access to the project gcp-devrel-iap-reflect right now, so it's hard to debug further. I'm trying to obtain the ownership of that project.

iap_test.py::test_main FAILED                                                                                                                               [100%]

============================================================================ FAILURES =============================================================================
____________________________________________________________________________ test_main ____________________________________________________________________________
Traceback (most recent call last):
  File "/usr/local/google/home/tmatsuo/work/python-docs-samples/iap/iap_test.py", line 51, in test_main
    IAP_CLIENT_ID)
  File "/usr/local/google/home/tmatsuo/work/python-docs-samples/iap/make_iap_request.py", line 54, in make_iap_request
    raise Exception('Service account does not have permission to '
Exception: Service account does not have permission to access the IAP-protected application.
--------------------------------- generated xml file: /usr/local/google/home/tmatsuo/work/python-docs-samples/iap/sponge_log.xml ----------------------------------
===Flaky Test Report===

test_main failed (1 runs remaining out of 2).
        <class 'Exception'>
        Service account does not have permission to access the IAP-protected application.
        [<TracebackEntry /usr/local/google/home/tmatsuo/work/python-docs-samples/iap/iap_test.py:51>, <TracebackEntry /usr/local/google/home/tmatsuo/work/python-docs-samples/iap/make_iap_request.py:54>]
test_main failed; it passed 0 out of the required 1 times.
        <class 'Exception'>
        Service account does not have permission to access the IAP-protected application.
        [<TracebackEntry /usr/local/google/home/tmatsuo/work/python-docs-samples/iap/iap_test.py:51>, <TracebackEntry /usr/local/google/home/tmatsuo/work/python-docs-samples/iap/make_iap_request.py:54>]

===End Flaky Test Report===
======================================================================== 1 failed in 0.60s ========================================================================
nox > Command pytest --junitxml=sponge_log.xml failed with exit code 1
nox > Session py-3.7 failed.
@tmatsuo tmatsuo assigned tmatsuo and unassigned crwilcox May 26, 2020
@tmatsuo tmatsuo added api: iap Issues related to the Identity-Aware Proxy API. testing type: process A process-related concern. May include testing, release, or the like. labels May 26, 2020
@tmatsuo
Copy link
Contributor Author

tmatsuo commented Jun 4, 2020

I just realized that the test succeeds on my workstation, closing.

@tmatsuo tmatsuo closed this as completed Jun 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: iap Issues related to the Identity-Aware Proxy API. testing type: process A process-related concern. May include testing, release, or the like.
Projects
None yet
Development

No branches or pull requests

2 participants