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

Tests for repository passwd #128

Merged
merged 1 commit into from
Jun 15, 2020
Merged

Tests for repository passwd #128

merged 1 commit into from
Jun 15, 2020

Conversation

ma-hartma
Copy link
Member

Closes #117

@ma-hartma ma-hartma added this to the 1.0 milestone Jun 12, 2020
Copy link
Member

@penguwin penguwin left a comment

Choose a reason for hiding this comment

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

Just some minor nitpicks due to a typo. Thanks for your contribution!

repository_test.go Outdated Show resolved Hide resolved

func TestRepositoryChangePassword(t *testing.T) {
testPassword := "this_is_a_password"
newPassowrd := "this_is_another_password"
Copy link
Member

Choose a reason for hiding this comment

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

Typo in variable name: newPassword

repository_test.go Outdated Show resolved Hide resolved
@ma-hartma
Copy link
Member Author

@penguwin thank you for reviewing!

@penguwin penguwin merged commit bfdf2fa into master Jun 15, 2020
@ma-hartma ma-hartma deleted the passwd-tests branch June 15, 2020 19:54

dir, err := ioutil.TempDir("", "knoxite")
if err != nil {
t.Errorf("Failed creating temporary dir for repository: %s", err)
Copy link
Member

Choose a reason for hiding this comment

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

Instead of a t.Errorf followed by a return, I would suggest using t.Fatalf throughout this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
First release
Awaiting triage
Development

Successfully merging this pull request may close these issues.

Tests for repo passwd / change password functionality
4 participants