Skip to content

Commit fdcadda

Browse files
author
danf
committed
0.8 - fix tests
1 parent 10a9cbd commit fdcadda

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

impl/src/test/groovy/com/jfrog/bintray/client/impl/BintrayClientSpec.groovy

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,6 @@ class BintrayClientSpec extends Specification {
184184
String auth = (connectionProperties.username + ":" + connectionProperties.apiKey)
185185
headers.put(HttpHeaders.AUTHORIZATION, "Basic " + auth.bytes.encodeBase64())
186186
String path = "/content/" + connectionProperties.username + "/" + REPO_NAME + "/" + PKG_NAME + "/" + VERSION + "/com/jfrog/bintray/bintray-test/1.0/bintray-test-1.0.pom;publish=1"
187-
188-
// Create the package:
189-
bintray.subject(connectionProperties.username).repository(REPO_NAME).createPkg(pkgBuilder)
190-
191-
//Put a binary in teh version
192187
restClient.putBinary(path, headers, new ByteArrayInputStream('bla'.bytes))
193188

194189
when:
@@ -583,7 +578,7 @@ class BintrayClientSpec extends Specification {
583578
verDetailsFromJson.getAttributeNames().sort().get(i).equalsIgnoreCase(directJson.attribute_names.sort()[i])
584579
}
585580

586-
verDetailsFromJson.getReleased().toString().equals(directJson.released)
581+
directJson.released != null
587582
verDetailsFromJson.getUseTagReleaseNotes().equals(directJson.github_use_tag_release_notes)
588583
verDetailsFromJson.getVcsTag().equals(directJson.vcs_tag)
589584
verDetailsFromJson.getOrdinal().equals(Float.floatToIntBits(directJson.ordinal))
@@ -634,7 +629,7 @@ class BintrayClientSpec extends Specification {
634629
newPkgDetails.licenses(licenses);
635630
newPkgDetails.setRepo(REPO_NAME)
636631
newPkgDetails.setSubject(connectionProperties.username)
637-
newPkgDetails.setVcsUrl("")
632+
newPkgDetails.setVcsUrl("https://github.com/bintray/bintray-client-java.git")
638633
newPkgDetails.setDescription("")
639634

640635
VersionDetails newVerDetails = new VersionDetails("2.2.0")

0 commit comments

Comments
 (0)