diff --git a/samples/snippets/src/test/java/com/example/spanner/CreateInstanceWithAutoscalingConfigSampleIT.java b/samples/snippets/src/test/java/com/example/spanner/CreateInstanceWithAutoscalingConfigSampleIT.java index 3459d9ab638..76eef2529d4 100644 --- a/samples/snippets/src/test/java/com/example/spanner/CreateInstanceWithAutoscalingConfigSampleIT.java +++ b/samples/snippets/src/test/java/com/example/spanner/CreateInstanceWithAutoscalingConfigSampleIT.java @@ -1,5 +1,5 @@ /* - * Copyright 2022 Google LLC + * 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. @@ -23,6 +23,7 @@ import org.junit.Test; public class CreateInstanceWithAutoscalingConfigSampleIT extends SampleTestBase { + @Test public void testCreateInstanceWithAutoscalingConfig() throws Exception { String instanceId = String.format("autoscaler-%s", UUID.randomUUID()); diff --git a/samples/snippets/src/test/java/com/example/spanner/SampleTestBase.java b/samples/snippets/src/test/java/com/example/spanner/SampleTestBase.java index 39424c8d080..f1bfeeb7c8b 100644 --- a/samples/snippets/src/test/java/com/example/spanner/SampleTestBase.java +++ b/samples/snippets/src/test/java/com/example/spanner/SampleTestBase.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * 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. @@ -47,6 +47,7 @@ public static void beforeClass() { final String serverUrl = ""; final SpannerOptions.Builder optionsBuilder = SpannerOptions .newBuilder() + .setProjectId("span-cloud-testing") .setAutoThrottleAdministrativeRequests(); if (!serverUrl.isEmpty()) { optionsBuilder.setHost(serverUrl);