Skip to content

Commit dc2a94c

Browse files
committed
Use gs:// instead of gcp://
1 parent cedf43b commit dc2a94c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

example/benchmark/src/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ int main(int argc, char* argv[]) {
132132
anyblob::benchmark::Bandwidth::run(bandwithSettings, uri);
133133
}
134134

135-
if (!strcmp(argv[1], "gcp") && bandwithSettings.systems.front() == anyblob::benchmark::Bandwidth::Systems::Uring && !bandwithSettings.account.empty() && !bandwithSettings.rsaKeyFile.empty()) {
136-
string uri = "gcp://" + gcpSettings.bucket + ":" + gcpSettings.region + "/";
135+
if (!strcmp(argv[1], "gs") && bandwithSettings.systems.front() == anyblob::benchmark::Bandwidth::Systems::Uring && !bandwithSettings.account.empty() && !bandwithSettings.rsaKeyFile.empty()) {
136+
string uri = "gs://" + gcpSettings.bucket + ":" + gcpSettings.region + "/";
137137
anyblob::benchmark::Bandwidth::run(bandwithSettings, uri);
138138
}
139139

include/cloud/provider.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class Provider {
3333
/// The remote prefixes count
3434
static constexpr unsigned remoteFileCount = 8;
3535
/// The remote prefixes
36-
static constexpr std::string_view remoteFile[] = {"https://", "http://", "s3://", "azure://", "gcp://", "oci://", "ibm://", "minio://"};
36+
static constexpr std::string_view remoteFile[] = {"https://", "http://", "s3://", "azure://", "gs://", "oci://", "ibm://", "minio://"};
3737
/// Are we currently testing the provdiers
3838
static bool testEnviornment;
3939

test/unit/cloud/gcp_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class GCPTester {
6161
key += "062k0eITND4bsnYSsiUliWODaittHronyQ3OFNIkjEgbmA7+ulh+Bw==\n";
6262
key += "-----END RSA PRIVATE KEY-----\n";
6363

64-
auto provider = Provider::makeProvider("gcp://test:test/", false, "test@test.com", key);
64+
auto provider = Provider::makeProvider("gs://test:test/", false, "test@test.com", key);
6565
GCP& gcp = *static_cast<GCP*>(provider.get());
6666
REQUIRE(!gcp.getIAMAddress().compare("169.254.169.254"));
6767
REQUIRE(gcp.getIAMPort() == 80);

0 commit comments

Comments
 (0)