Skip to content

Conversation

@rpappalax
Copy link
Collaborator

The PR adds an action for validating that data is inserted in the DB.
The methodology requires adding a specific logging message directly from python
The action simply regexes the log looking for that message and fails the job if not found.

The default is assuming at least a row count > 0
However you can also add a label for allowing row count = 0, if desired


# TestRail
- name: Mobile Test Case Coverage & DB verify
uses: ./.github/actions/db-inserts-verify
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this file is to demo how this works and if it will fill our needs for DB insert validation.
I have coded this for on push to a personal branch but this is temporary and can be changed.
The idea is to remove this demo workflow altogether but add these few lines to our other workflows where DB validation is required

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant