-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
69eb118
commit 267fda3
Showing
9 changed files
with
187 additions
and
13 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
.../java/com/google/cloud/hadoop/fs/gcs/GoogleHadoopFileSystemHTTPClientIntegrationTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* Copyright 2023 Google LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.google.cloud.hadoop.fs.gcs; | ||
|
||
import com.google.cloud.hadoop.gcsio.GoogleCloudStorageFileSystemOptions.ClientType; | ||
import org.junit.Before; | ||
import org.junit.runner.RunWith; | ||
import org.junit.runners.JUnit4; | ||
|
||
@RunWith(JUnit4.class) | ||
public class GoogleHadoopFileSystemHTTPClientIntegrationTest | ||
extends GoogleHadoopFileSystemIntegrationTest { | ||
@Before | ||
public void before() throws Exception { | ||
storageClientType = ClientType.HTTP_API_CLIENT; | ||
super.before(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
...om/google/cloud/hadoop/fs/gcs/GoogleHadoopFileSystemJavaStorageClientIntegrationTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
package com.google.cloud.hadoop.fs.gcs; | ||
/* | ||
* Copyright 2023 Google LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
import com.google.cloud.hadoop.gcsio.GoogleCloudStorageFileSystemOptions.ClientType; | ||
import org.junit.Before; | ||
import org.junit.Ignore; | ||
import org.junit.Test; | ||
import org.junit.runner.RunWith; | ||
import org.junit.runners.JUnit4; | ||
|
||
// TODO: Ignored test for gRPC-directpath | ||
// https://github.com/GoogleCloudDataproc/hadoop-connectors/issues/998 | ||
@RunWith(JUnit4.class) | ||
public class GoogleHadoopFileSystemJavaStorageClientIntegrationTest | ||
extends GoogleHadoopFileSystemIntegrationTest { | ||
|
||
@Before | ||
public void before() throws Exception { | ||
storageClientType = ClientType.STORAGE_CLIENT; | ||
super.before(); | ||
} | ||
|
||
@Ignore | ||
@Test | ||
public void testImpersonationGroupNameIdentifierUsed() {} | ||
|
||
@Ignore | ||
@Test | ||
public void testImpersonationServiceAccountAndUserAndGroupNameIdentifierUsed() {} | ||
|
||
@Ignore | ||
@Test | ||
public void testImpersonationServiceAccountUsed() {} | ||
|
||
@Ignore | ||
@Test | ||
public void testImpersonationUserAndGroupNameIdentifiersUsed() {} | ||
|
||
@Ignore | ||
@Test | ||
public void testImpersonationUserNameIdentifierUsed() {} | ||
|
||
@Ignore | ||
@Test | ||
public void unauthenticatedAccessToPublicBuckets_fsGsProperties() {} | ||
|
||
@Ignore | ||
@Test | ||
public void unauthenticatedAccessToPublicBuckets_googleCloudProperties() {} | ||
} |
33 changes: 33 additions & 0 deletions
33
...c/test/java/com/google/cloud/hadoop/gcsio/GoogleCloudStorageFileSystemHTTPClientTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* Copyright 2023 Google LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.google.cloud.hadoop.gcsio; | ||
|
||
import com.google.cloud.hadoop.gcsio.GoogleCloudStorageFileSystemOptions.ClientType; | ||
import org.junit.Before; | ||
import org.junit.runner.RunWith; | ||
import org.junit.runners.JUnit4; | ||
|
||
@RunWith(JUnit4.class) | ||
public class GoogleCloudStorageFileSystemHTTPClientTest | ||
extends GoogleCloudStorageFileSystemTestBase { | ||
|
||
@Before | ||
public void before() throws Exception { | ||
storageClientType = ClientType.HTTP_API_CLIENT; | ||
super.before(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
...java/com/google/cloud/hadoop/gcsio/GoogleCloudStorageFileSystemJavaStorageClientTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* | ||
* Copyright 2023 Google LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.google.cloud.hadoop.gcsio; | ||
|
||
import com.google.cloud.hadoop.gcsio.GoogleCloudStorageFileSystemOptions.ClientType; | ||
import java.io.IOException; | ||
import org.junit.Before; | ||
import org.junit.Ignore; | ||
import org.junit.Test; | ||
import org.junit.runner.RunWith; | ||
import org.junit.runners.JUnit4; | ||
|
||
@RunWith(JUnit4.class) | ||
public class GoogleCloudStorageFileSystemJavaStorageClientTest | ||
extends GoogleCloudStorageFileSystemTestBase { | ||
|
||
@Before | ||
public void before() throws Exception { | ||
storageClientType = ClientType.STORAGE_CLIENT; | ||
super.before(); | ||
} | ||
|
||
@Override | ||
@Ignore("DirectPath is not supported with null credentials") | ||
@Test | ||
public void testConstructor() throws IOException {} | ||
|
||
@Override | ||
@Ignore("DirectPath is not supported with null credentials") | ||
@Test | ||
public void testClientType() {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters