[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(advisorynotifications): generate library #10814

Merged
merged 10 commits into from
Feb 14, 2023
Prev Previous commit
Next Next commit
get quickstart executing successfully
  • Loading branch information
scotthart committed Feb 14, 2023
commit 98bc089f6cc6f98584c9b31ae888722ddab0bc48
1 change: 1 addition & 0 deletions ci/cloudbuild/builds/lib/integration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ function integration::bazel_args() {
"--test_env=GOOGLE_CLOUD_PROJECT=${GOOGLE_CLOUD_PROJECT}"
"--test_env=GOOGLE_CLOUD_CPP_TEST_REGION=${GOOGLE_CLOUD_CPP_TEST_REGION}"
"--test_env=GOOGLE_CLOUD_CPP_TEST_ZONE=${GOOGLE_CLOUD_CPP_TEST_ZONE}"
"--test_env=GOOGLE_CLOUD_CPP_TEST_ORGANIZATION=${GOOGLE_CLOUD_CPP_TEST_ORGANIZATION}"
"--test_env=GOOGLE_CLOUD_CPP_TEST_SERVICE_ACCOUNT_KEYFILE=${GOOGLE_CLOUD_CPP_TEST_SERVICE_ACCOUNT_KEYFILE}"
"--test_env=GOOGLE_CLOUD_CPP_AUTO_RUN_EXAMPLES=${GOOGLE_CLOUD_CPP_AUTO_RUN_EXAMPLES}"
"--test_env=GOOGLE_CLOUD_CPP_EXPERIMENTAL_LOG_CONFIG=${GOOGLE_CLOUD_CPP_EXPERIMENTAL_LOG_CONFIG}"
Expand Down
2 changes: 2 additions & 0 deletions ci/etc/integration-tests-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ export GOOGLE_CLOUD_CPP_USER_PROJECT="${GOOGLE_CLOUD_PROJECT}"
export GOOGLE_CLOUD_CPP_TEST_REGION="us-central1"
# Some quickstart programs require a zone.
export GOOGLE_CLOUD_CPP_TEST_ZONE="us-central1-a"
# Some quickstart programs require an organization.
export GOOGLE_CLOUD_CPP_TEST_ORGANIZATION="1006341795026"

# This file contains an invalidated service account key. That is, the file is
# in the right format for a service account, but it is not associated with a
Expand Down
4 changes: 2 additions & 2 deletions google/cloud/advisorynotifications/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ if (BUILD_TESTING)
NAME advisorynotifications_quickstart
COMMAND
cmake -P "${PROJECT_SOURCE_DIR}/cmake/quickstart-runner.cmake"
$<TARGET_FILE:advisorynotifications_quickstart> "invalid"
GOOGLE_CLOUD_CPP_TEST_REGION)
$<TARGET_FILE:advisorynotifications_quickstart>
GOOGLE_CLOUD_CPP_TEST_ORGANIZATION GOOGLE_CLOUD_CPP_TEST_REGION)
set_tests_properties(advisorynotifications_quickstart
PROPERTIES LABELS "integration-test;quickstart")
endif ()
Expand Down
3 changes: 1 addition & 2 deletions google/cloud/advisorynotifications/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ int main(int argc, char* argv[]) try {
auto client = advisorynotifications::AdvisoryNotificationsServiceClient(
advisorynotifications::MakeAdvisoryNotificationsServiceConnection());
auto const parent =
std::string("organizations/") + argv[1] + "/locations/" + argv[2];

std::string{"organizations/"} + argv[1] + "/locations/" + argv[2];
for (auto n : client.ListNotifications(parent)) {
if (!n) throw std::move(n).status();
std::cout << n->DebugString() << "\n";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ int main(int argc, char* argv[]) try {
auto client = advisorynotifications::AdvisoryNotificationsServiceClient(
advisorynotifications::MakeAdvisoryNotificationsServiceConnection());
auto const parent =
std::string("organizations/") + argv[1] + "/locations/" + argv[2];

std::string{"organizations/"} + argv[1] + "/locations/" + argv[2];
for (auto n : client.ListNotifications(parent)) {
if (!n) throw std::move(n).status();
std::cout << n->DebugString() << "\n";
Expand Down