Skip to content

Commit 795de11

Browse files
Fix directpath tests
1 parent c501582 commit 795de11

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

google-cloud-spanner/pom.xml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,31 @@
545545
</plugins>
546546
</build>
547547
</profile>
548+
<profile>
549+
<id>directpath-tests</id>
550+
<activation>
551+
<property>
552+
<name>env.GOOGLE_SPANNER_ENABLE_DIRECT_ACCESS</name>
553+
<value>true</value>
554+
</property>
555+
</activation>
556+
<build>
557+
<plugins>
558+
<plugin>
559+
<groupId>org.apache.maven.plugins</groupId>
560+
<artifactId>maven-surefire-plugin</artifactId>
561+
<executions>
562+
<execution>
563+
<id>default-test</id>
564+
<configuration>
565+
<excludedGroups>com.google.cloud.spanner.MockServerTest</excludedGroups>
566+
</configuration>
567+
</execution>
568+
</executions>
569+
</plugin>
570+
</plugins>
571+
</build>
572+
</profile>
548573
<profile>
549574
<id>spanner-directpath-it</id>
550575
<build>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
* Copyright 2025 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package com.google.cloud.spanner;
18+
19+
public interface MockServerTest {
20+
}

0 commit comments

Comments
 (0)