Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

test: Increase test coverage on auditable resources#7038

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Emyrk merged 5 commits intomainfromstevenmasley/more_audit_tests
Apr 6, 2023

Conversation

Emyrk
Copy link
Member

@EmyrkEmyrk commentedApr 6, 2023
edited
Loading

When adding a new audit resource, we also need to add it to the
function switch statements. This is a likely mistake, now a unit
test will check this for you

Missing a type

table_internal_test.go:85: ResourceTarget switch statement is missing type "github.com/coder/coder/coderd/database.TemplateVersion". Include it in the switch case block

Extra type

table_internal_test.go:85: ResourceTarget switch statement has unexpected type "github.com/coder/coder/coderd/database.TemplateACL". Remove it from the switch case block

When adding a new audit resource, we also need to add it to thefunction switch statements. This is a likely mistake, now a unittest will check this for you
@EmyrkEmyrk merged commitb2892c3 intomainApr 6, 2023
@EmyrkEmyrk deleted the stevenmasley/more_audit_tests branchApril 6, 2023 21:16
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsApr 6, 2023
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@kylecarbskylecarbskylecarbs approved these changes

Assignees

@EmyrkEmyrk

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@Emyrk@kylecarbs

[8]ページ先頭

©2009-2025 Movatter.jp