GoogleCloudPlatform / appengine-gcs-client

App Engine-Cloud Storage custom client library
Apache License 2.0
124 stars 112 forks source link

Local blobstore upload test #46

Open Burtan opened 8 years ago

Burtan commented 8 years ago

Hi, you have provided an example how to test blobstore serving locally. https://github.com/GoogleCloudPlatform/appengine-gcs-client/blob/master/java/src/test/java/com/google/appengine/tools/cloudstorage/TestServingViaBlobstoreApi.java Is it also possible to test blobstore upload locally? The url generated by the following code is not reachable:

UploadOptions options = UploadOptions.Builder.withGoogleStorageBucketName("param");
String urlRoot = "/blob/upload/" + String.valueOf(param);
String blobUploadUrl = BlobstoreServiceFactory.getBlobstoreService()
        .createUploadUrl(urlRoot, options);