Skip to content

Commit 1bbba09

Browse files
committed
make the integration test less dependent on user specific settings
1 parent a373702 commit 1bbba09

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

integration-test/src/test/groovy/de/gesellix/docker/client/authentication/CredsStoreHelperIntegrationTest.groovy

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -82,16 +82,12 @@ class CredsStoreHelperIntegrationTest extends Specification {
8282
@Requires({ System.properties['user.name'] == 'gesellix' && System.properties['os.name'] == "Linux" })
8383
def "can get auth from secretservice on Linux"() {
8484
when:
85-
def result = helper.getAuthentication("secretservice")
85+
CredsStoreHelperResult result = helper.getAuthentication("secretservice")
8686
then:
87-
result == new CredsStoreHelperResult(
88-
error: null,
89-
data: [
90-
ServerURL: "",
91-
Username : "gesellix",
92-
Secret : "-yet-another-password-"
93-
]
94-
)
87+
result.error == null
88+
result.data.ServerURL == ""
89+
result.data.Username == "gesellix"
90+
result.data.Secret =~ ".+"
9591
}
9692

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

0 commit comments

Comments
 (0)