Skip to content

Refactored controller_test.go to use helper functions#2496

Open
evanwang9x wants to merge 1 commit into
skupperproject:mainfrom
evanwang9x:Evan/Refactor-Unit-Tests
Open

Refactored controller_test.go to use helper functions#2496
evanwang9x wants to merge 1 commit into
skupperproject:mainfrom
evanwang9x:Evan/Refactor-Unit-Tests

Conversation

@evanwang9x

Copy link
Copy Markdown
Contributor

Plan is to later use these helper functions in the other test suites

Closes #2495

Edge: edge,
},
}
s := utils.NewSite(name, namespace)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Let's put these in their own fixture package instead of dumping them in utils. fixture.Site() reads cleaner than utils.NewSite() IMO. That, and it is poor style to mix the code for test helpers in with code compiled into our released executables.

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.

Have a common resource "factory" for tests, etc.

2 participants