Skip to content

feat(browser-tests): add web console telemetry tests#298

Merged
glasstiger merged 14 commits into
mainfrom
browser-tests/telemetry
Jul 3, 2024
Merged

feat(browser-tests): add web console telemetry tests#298
glasstiger merged 14 commits into
mainfrom
browser-tests/telemetry

Conversation

@insmac

@insmac insmac commented Jun 12, 2024

Copy link
Copy Markdown
Contributor

This PR adds an integration suite for Telemetry. There is an added complexity that has been introduced via the authorization provider, in that starting of the telemetry logic happens further, once all the auth checks have been performed and QuestDB provider is set up correctly (i.e. rest token is set for all API requests).

The spec sheet tests the following:

  • Fetching the Telemetry system config and the correctness of it
  • When Telemetry is disabled by the user, no request to API should be performed
  • When Telemetry is enabled, it should contact the lambda API endpoint, sending out the correct payload.

Side changes:

  • Added cy.interceptQuery(query, alias, response?) utility method for intercepting a given query with an optional response replacing the server one (this takes both a StaticResponse object or a function that can mutate the real server output from origin)
  • Set up the default command timeout on the config level, which prevents spurious test failures due to slow test execution on the CI level.
  • Adjusted the node CI console runner script to support settings endpoint proxing.
  • Removed the unnecessary drop table sqls and speed up autocomplete tests in return

@glasstiger glasstiger merged commit e42e704 into main Jul 3, 2024
@glasstiger glasstiger deleted the browser-tests/telemetry branch July 3, 2024 10:00
Vaibhav91one pushed a commit to Vaibhav91one/ui that referenced this pull request Oct 28, 2025
* add telemetry tests

* Update assertion for disabled telemetry

* Adjust the telemetry config query

* Clean up after merge

* Update grid `beforeEach` hook

* Fix intercept path

* Adjust grid tests

* Update grid tests questdb#2

* Roll back `typeQuery` changes

* autocomplete hook change

* Remove `typeQuery` from chaining

* adjust the query insert method

* OSS submodule update
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