@@ -102,7 +102,7 @@ class BintrayClientSpec extends Specification {
102102 assert this . connectionProperties. email
103103 bintray = BintrayClient . create(this . connectionProperties. username as String , this . connectionProperties. apiKey as String )
104104 restClient = createClient()
105- pkgBuilder = new PackageDetails (PKG_NAME ). description(' bla-bla' ). labels([' l1' , ' l2' ]). licenses([' Apache-2.0' ])
105+ pkgBuilder = new PackageDetails (PKG_NAME ). description(' bla-bla' ). labels([' l1' , ' l2' ]). licenses([' Apache-2.0' ]). vcsUrl( " https://github.com/bintray/bintray-client-java.git " )
106106 versionBuilder = new VersionDetails (VERSION ). description(' versionDesc' )
107107 pkgJson = " {\n " +
108108 " \t\t\" name\" : \" " + tempPkgName + " \" ,\n " +
@@ -128,7 +128,7 @@ class BintrayClientSpec extends Specification {
128128 " \" owner\" : \" " + connectionProperties. username + " \" ,\n " +
129129 " \" labels\" : [\" cool\" ,\" awesome\" ,\" gorilla\" ],\n " +
130130 " \" attribute_names\" : [\" verAtt1\" ,\" verAtt2\" ,\" verAtt3\" ],\n " +
131- " \" released\" : \" 2015-01-08 \" ,\n " +
131+ " \" released\" : \" 2015-01-07T18:00:00.000-06:00 \" ,\n " +
132132 " \" github_use_tag_release_notes\" : false,\n " +
133133 " \" vcs_tag\" : \" 3.8\" ,\n " +
134134 " \" ordinal\" : 0,\n " +
@@ -184,6 +184,11 @@ 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
187192 restClient. putBinary(path, headers, new ByteArrayInputStream (' bla' . bytes))
188193
189194 when :
@@ -609,6 +614,7 @@ class BintrayClientSpec extends Specification {
609614 " \t\t\" desc\" : \"\" ,\n " +
610615 " \t\t\" website_url\" : \"\" ,\n " +
611616 " \t\t\" labels\" : [],\n " +
617+ " \t\t\" vcs_url\" : \" https://github.com/bintray/bintray-client-java.git\" ,\n " +
612618 " \t\t\" licenses\" : [\" MIT\" ]\n " +
613619 " }"
614620
0 commit comments