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

Add dbChecks format, for run multiply sql queries in one test #164

Merged
merged 1 commit into from
Jun 21, 2022

Conversation

Cdayz
Copy link
Contributor

@Cdayz Cdayz commented Jun 14, 2022

Resolve #119

@Cdayz Cdayz added enhancement New feature or request minor release as minor labels Jun 14, 2022
@Cdayz
Copy link
Contributor Author

Cdayz commented Jun 21, 2022

@keyclaim FYI

@Cdayz
Copy link
Contributor Author

Cdayz commented Jun 21, 2022

Добавил возможность прогонять несколько sql запросов после теста, формат следующий:

- name: Test name
  ...
  dbChecks:
    - dbQuery: SELECT id, name FROM testing WHERE id={{ $gonkey_id }}
      dbResponse:
        - '{"id": {{ $gonkey_id }}, "name": "gonkey"}'

@Cdayz Cdayz merged commit 261a3d6 into lamoda:master Jun 21, 2022
@github-actions
Copy link

🚀 PR was released in v1.18.0 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request minor release as minor released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multiple DB queries
2 participants