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

[Discover Autocomplete] TESTID-80: Autocomplete Languages - DQL, SQL, PPL - Verify grammar keywords are being generated #8964

Open
LDrago27 opened this issue Nov 27, 2024 · 0 comments
Labels
discover_2.0-test Issues that are specific to the Discover 2.0 testing initiative

Comments

@LDrago27
Copy link
Collaborator

Objective

For each language, verify that the grammar is being used by testing queries for certain keywords and patterns. The grammars are assumed to be correct for SQL & PPL, so just verifying that they're being used should be enough.

What to test

Data type:

  1. Index Patterns

  2. Indexes

  3. S3 Connections (future)

  4. Cloudwatch

  5. Security Lake

Language:

  1. PPL

  2. SQL

Scenario Steps Expected result Notes
Example (See below)
PPL
  • Try testing a query with `source = index
head 10` and verify that the suggestions for the keywords are being generated properly along each step of the way.
  • Type a word in the query.
  • Check the suggestion window that the suggestions are as expected.
  • Repeat 2-3 until the query is formed.
    • The first word should show source, describe, etc., then the equal operator, pipe, basic PPL functions, such as head.
    SQL
    • Try testing SELECT * FROM table LIMIT 10 and verify suggestions for each step of the way.
    • Type a word in the query.
    • Check the suggestion window that the suggestions are as expected.
    • Repeat 2-3 until the query is formed.
    • Like the expected result for PPL, each step of the way should include the right keywords for SQL.
    • Also like PPL, ignore table name and field names.

    Pre-requisites

    Steps to setting up the scenario

    1. Have at least 1 existing workspace with index patterns

    2. Turn query enhancements on

    3. Select the index pattern

    4. Select the language for the test

    Known Issues

    List of known issues to reference that could impact the results of this test case

    @LDrago27 LDrago27 added the discover_2.0-test Issues that are specific to the Discover 2.0 testing initiative label Nov 27, 2024
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    discover_2.0-test Issues that are specific to the Discover 2.0 testing initiative
    Projects
    Status: Todo
    Development

    No branches or pull requests

    1 participant