Skip to content

Commit

Permalink
make the integration test less dependent on user specific settings
Browse files Browse the repository at this point in the history
  • Loading branch information
gesellix committed Apr 10, 2021
1 parent a373702 commit 1bbba09
Showing 1 changed file with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,16 +82,12 @@ class CredsStoreHelperIntegrationTest extends Specification {
@Requires({ System.properties['user.name'] == 'gesellix' && System.properties['os.name'] == "Linux" })
def "can get auth from secretservice on Linux"() {
when:
def result = helper.getAuthentication("secretservice")
CredsStoreHelperResult result = helper.getAuthentication("secretservice")
then:
result == new CredsStoreHelperResult(
error: null,
data: [
ServerURL: "",
Username : "gesellix",
Secret : "-yet-another-password-"
]
)
result.error == null
result.data.ServerURL == ""
result.data.Username == "gesellix"
result.data.Secret =~ ".+"
}

@Requires({ System.properties['user.name'] == 'gesellix' && System.properties['os.name'] == "Linux" })
Expand Down

0 comments on commit 1bbba09

Please sign in to comment.