Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(site): e2e: print API backend calls #12051

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

Merged
merged 3 commits into from
Feb 7, 2024
Merged

fix(site): e2e: print API backend calls #12051

merged 3 commits into from
Feb 7, 2024

Conversation

mtojek
Copy link
Member

@mtojek mtojek commented Feb 7, 2024

This PR adds a workaround to the e2e reporter to print API backend calls.

We can see again API responses like the one below:

[stdout] [onRequest] method=GET url=http://localhost:3000/api/v2/templateversions/27ef02c4-1b44-4e21-893c-5c9f586e42c7/external-auth postData=
[stdout] [onResponse] url=http://localhost:3000/api/v2/organizations/847cd15b-21b4-473d-bf7f-4d3bcb64c895/templates/3bc03cb7 status=200 body={"id":"4e7d13c7-ceab-4eb8-8971-422b819b4749","created_at":"2024-02-07T14:19:28.258999Z","updated_at":"2024-02-07T14:19:28.261807Z","organization_id":"847cd15b-21b4-473d-bf7f-4d3bcb64c895","name":"3bc03cb7","display_name":"Template","provisioner":"echo","active_version_id":"27ef02c4-1b44-4e21-893c-5c9f586e42c7","active_user_count":0,"build_time_stats":{"delete":{"P50":null,"P95":null},"start":{"P50":null,"P95":null},"stop":{"P50":null,"P95":null}},"description":"","deprecated":false,"deprecation_message":"","icon":"","default_ttl_ms":86400000,"use_max_ttl":false,"max_ttl_ms":0,"autostop_requirement":{"days_of_week":[],"weeks":1},"autostart_requirement":{"days_of_week":["monday","tuesday","wednesday","thursday","friday","saturday","sunday"]},"created_by_id":"24a34044-b288-4000-ba5a-2bcb001701b5","created_by_name":"admin","allow_user_autostart":true,"allow_user_autostop":true,"allow_user_cancel_workspace_jobs":false,"failure_ttl_ms":0,"time_til_dormant_ms":0,"time_til_dormant_autodelete_ms":0,"require_active_version":false}

Note:

I know it isn't a proper fix, but we're in the middle of investigation.

@mtojek mtojek self-assigned this Feb 7, 2024
@mtojek mtojek marked this pull request as ready for review February 7, 2024 14:23
@mtojek mtojek merged commit 4e7b208 into main Feb 7, 2024
@mtojek mtojek deleted the fix-e2e-reporter-1 branch February 7, 2024 14:50
@github-actions github-actions bot locked and limited conversation to collaborators Feb 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants