Skip to content

Commit

Permalink
deps: update conformance test dep (#210)
Browse files Browse the repository at this point in the history
* Update conformance test dep

* Update conformance test dep
  • Loading branch information
JesseLovelace committed Mar 27, 2020
1 parent 133d137 commit 010c112
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Expand Up @@ -23,6 +23,7 @@
import com.google.auth.oauth2.ServiceAccountCredentials;
import com.google.cloud.conformance.storage.v1.SigningV4Test;
import com.google.cloud.conformance.storage.v1.TestFile;
import com.google.cloud.conformance.storage.v1.UrlStyle;
import com.google.cloud.storage.Storage.SignUrlOption;
import com.google.cloud.storage.testing.RemoteStorageHelper;
import com.google.common.base.Charsets;
Expand Down Expand Up @@ -104,14 +105,14 @@ public void test() {

SignUrlOption style = SignUrlOption.withPathStyle();

if (testData.getUrlStyle().equals(SigningV4Test.UrlStyle.VIRTUAL_HOSTED_STYLE)) {
if (testData.getUrlStyle().equals(UrlStyle.VIRTUAL_HOSTED_STYLE)) {
style = SignUrlOption.withVirtualHostedStyle();
} else if (testData.getUrlStyle().equals(SigningV4Test.UrlStyle.PATH_STYLE)) {
} else if (testData.getUrlStyle().equals(UrlStyle.PATH_STYLE)) {
style = SignUrlOption.withPathStyle();
} else if (testData.getUrlStyle().equals(SigningV4Test.UrlStyle.BUCKET_BOUND_DOMAIN)) {
} else if (testData.getUrlStyle().equals(UrlStyle.BUCKET_BOUND_HOSTNAME)) {
style =
SignUrlOption.withBucketBoundHostname(
testData.getBucketBoundDomain(),
testData.getBucketBoundHostname(),
Storage.UriScheme.valueOf(testData.getScheme().toUpperCase()));
}

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -212,7 +212,7 @@
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-conformance-tests</artifactId>
<version>0.0.7</version>
<version>0.0.9</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down

0 comments on commit 010c112

Please sign in to comment.