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

Fix namespace create form test to be idempotent. #555

Merged
merged 1 commit into from
Jun 22, 2021

Conversation

ironfroggy
Copy link

AAH-616 added the namespace_form.js test file. The last test, which creates a namespace, only works the first time the test is run. It requires resetting the database before another successful run.

I believe all tests should be idempotent.

This small change randomizes the name of the namespace created so the test can pass every time.

@ironfroggy ironfroggy requested a review from ZitaNemeckova June 21, 2021 15:11
Copy link
Member

@ZitaNemeckova ZitaNemeckova left a comment

Choose a reason for hiding this comment

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

I like it 👍

@himdel Once we can delete a namespace we'll refactor it so the test deletes what it creates.

@ironfroggy ironfroggy merged commit 445a40d into master Jun 22, 2021
@ironfroggy ironfroggy deleted the aah-616-idempotence branch June 22, 2021 15:00
himdel added a commit to himdel/ansible-hub-ui that referenced this pull request Jun 29, 2021
comes from ansible#555, didn't run npm run prettier, updating
ZitaNemeckova pushed a commit that referenced this pull request Jun 30, 2021
comes from #555, didn't run npm run prettier, updating
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