Skip to content
Snippets Groups Projects
Rustam Lotsmanenko (EPAM)'s avatar
Rustam Lotsmanenko (EPAM) authored
Google Storage Retry settings

See merge request !8
4a95249f
History

Google Cloud OBM

It is an adapter between a Java program and a Google Cloud Storage. Implementation is based on https://community.opengroup.org/osdu/platform/system/lib/drivers/os-obm

Integration tests

Everything related to integration tests is in the package /testing The tests themselves are universally formulated in the classes of the package /testing/gc-obm-test-gs You can run them both from there and from subclasses belonging to the respective repository implementations:

Running E2E Tests

You will need to have the following environment variables defined.

GCS

name value description sensitive?
GOOGLE_APPLICATION_CREDENTIALS ex file\path\cred.json Google cloud service account with access to google storage yes
TEST_BUCKET_NAME test-obm-bucket- Bucket used in tests no
PARTITION_ID default osdu Partition id, minor usage in tests, can be used default no
TEST_PROJECT_ID ex google-cloud-project-id Google cloud project id no
# build + run integration tests.
#
# Note: this assumes that the environment variables for integration tests as outlined
#       above are already exported in your environment.
$ (cd testing/gc-obm-test-gs / && mvn clean test)

References

License

Copyright © Google LLC Copyright © EPAM Systems

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.