Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
address comments; disable rest tests versus emulator
Browse files Browse the repository at this point in the history
scotthart committed Sep 5, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent d0618c9 commit 15fb48e
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -153,6 +153,8 @@ class InstanceAdminClientRestTest
protected:
void SetUp() override {
if (Emulator()) {
// TODO(#14679): Remove this GTEST_SKIP when emulator supports editions.
GTEST_SKIP();
// We expect test instances to exist when running against real services,
// but if we are running against the emulator we're happy to create one.
Instance in(ProjectId(), InstanceId());
4 changes: 3 additions & 1 deletion google/cloud/spanner/create_instance_request_builder.h
Original file line number Diff line number Diff line change
@@ -117,7 +117,9 @@ class CreateInstanceRequestBuilder {
return std::move(*this);
}

enum class Edition { kStandard = 0, kEnterprise, kEnterprisePlus };
// Available editions.
// https://cloud.google.com/spanner/docs/editions-overview
enum class Edition { kStandard, kEnterprise, kEnterprisePlus };

CreateInstanceRequestBuilder& SetEdition(Edition edition) & {
switch (edition) {

0 comments on commit 15fb48e

Please sign in to comment.