cdancy / bitbucket-rest

Java client, built on top of jclouds, for working with Bitbucket's REST API
Apache License 2.0
78 stars 57 forks source link

integTest: TestUtilities class should use user.name() instead of user.slug() to avoid case issues #253

Closed ftclausen closed 3 years ago

ftclausen commented 3 years ago

The TestUtilities class is using the equivalent of the User class' "name" field when retrieving the name from auth.authValue(). If a username has an upper case letter (e.g. JoeSmith) then the tests will fail because the user.slug() is all lower case (joesmith). Using user.name seems to fix this - PR forthcoming.