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

Refactor Integration tests #261

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

fabi200123
Copy link
Contributor

  • refactor integration tests to use testify/suite

@fabi200123 fabi200123 force-pushed the integration-tests branch 3 times, most recently from 445fd43 to ed988e9 Compare June 13, 2024 09:58
t.Log("Testing error on duplicate credentials name")
creds, err := suite.createDummyCredentials(dummyCredentialsName, defaultEndpointName)
suite.NoError(err)
defer suite.DeleteGithubCredential(int64(creds.ID))
Copy link
Member

Choose a reason for hiding this comment

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

The golang testing package has a Cleanup() function

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated all suite to use t.Cleanup instead of defer FunctionName

@fabi200123 fabi200123 force-pushed the integration-tests branch 2 times, most recently from 88f8f49 to 2bec645 Compare June 17, 2024 09:08
@gabriel-samfira gabriel-samfira merged commit a66cbcc into cloudbase:main Jun 17, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants