Skip to content

test for auto user deactivation audit event#41497

Merged
GavinFrazar merged 1 commit intomasterfrom
gavinfrazar/test-for-auto-user-deactivation-event
May 15, 2024
Merged

test for auto user deactivation audit event#41497
GavinFrazar merged 1 commit intomasterfrom
gavinfrazar/test-for-auto-user-deactivation-event

Conversation

@GavinFrazar
Copy link
Copy Markdown
Contributor

This PR updates test cases for database auto user provisioning to ensure that deactivation audit events are being sent.

In my PR that added support for spanner I noticed and fixed an issue where our mock mysql db sends a response that causes a panic right before the mysql user deactivation audit event is emitted.
We have a deferred recover() in our db server, so it didn't cause a test failure but it did silently prevent the audit event.
That panic is probably not realistically going to happen, but I guarded against it anyway.

I didn't extract that extra guard in the mysql code from the spanner PR before merging, so here's this PR which I will backport to v14 along with the mysql panic fix.

I ensured that these test updates fail without the mysql fix.

* expect deactivation audit event
@GavinFrazar GavinFrazar added database-access Database access related issues and PRs backport/branch/v14 no-changelog Indicates that a PR does not require a changelog entry labels May 13, 2024
@github-actions github-actions Bot requested review from greedy52 and ravicious May 13, 2024 21:13
@GavinFrazar GavinFrazar added this pull request to the merge queue May 15, 2024
Merged via the queue into master with commit 76ef907 May 15, 2024
@GavinFrazar GavinFrazar deleted the gavinfrazar/test-for-auto-user-deactivation-event branch May 15, 2024 18:06
@public-teleport-github-review-bot
Copy link
Copy Markdown

@GavinFrazar See the table below for backport results.

Branch Result
branch/v14 Failed
branch/v15 Create PR

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

Labels

database-access Database access related issues and PRs no-changelog Indicates that a PR does not require a changelog entry size/sm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants