Skip to content

Commit 010c112

Browse files
deps: update conformance test dep (#210)
* Update conformance test dep * Update conformance test dep
1 parent 133d137 commit 010c112

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

google-cloud-storage/src/test/java/com/google/cloud/storage/V4SigningTest.java

+5-4
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import com.google.auth.oauth2.ServiceAccountCredentials;
2424
import com.google.cloud.conformance.storage.v1.SigningV4Test;
2525
import com.google.cloud.conformance.storage.v1.TestFile;
26+
import com.google.cloud.conformance.storage.v1.UrlStyle;
2627
import com.google.cloud.storage.Storage.SignUrlOption;
2728
import com.google.cloud.storage.testing.RemoteStorageHelper;
2829
import com.google.common.base.Charsets;
@@ -104,14 +105,14 @@ public void test() {
104105

105106
SignUrlOption style = SignUrlOption.withPathStyle();
106107

107-
if (testData.getUrlStyle().equals(SigningV4Test.UrlStyle.VIRTUAL_HOSTED_STYLE)) {
108+
if (testData.getUrlStyle().equals(UrlStyle.VIRTUAL_HOSTED_STYLE)) {
108109
style = SignUrlOption.withVirtualHostedStyle();
109-
} else if (testData.getUrlStyle().equals(SigningV4Test.UrlStyle.PATH_STYLE)) {
110+
} else if (testData.getUrlStyle().equals(UrlStyle.PATH_STYLE)) {
110111
style = SignUrlOption.withPathStyle();
111-
} else if (testData.getUrlStyle().equals(SigningV4Test.UrlStyle.BUCKET_BOUND_DOMAIN)) {
112+
} else if (testData.getUrlStyle().equals(UrlStyle.BUCKET_BOUND_HOSTNAME)) {
112113
style =
113114
SignUrlOption.withBucketBoundHostname(
114-
testData.getBucketBoundDomain(),
115+
testData.getBucketBoundHostname(),
115116
Storage.UriScheme.valueOf(testData.getScheme().toUpperCase()));
116117
}
117118

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@
212212
<dependency>
213213
<groupId>com.google.cloud</groupId>
214214
<artifactId>google-cloud-conformance-tests</artifactId>
215-
<version>0.0.7</version>
215+
<version>0.0.9</version>
216216
<scope>test</scope>
217217
</dependency>
218218
</dependencies>

0 commit comments

Comments
 (0)