Skip to content

Commit daf3dc3

Browse files
Fix directpath tests
1 parent c501582 commit daf3dc3

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-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: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package com.google.cloud.spanner;
2+
3+
public interface MockServerTest {
4+
}

0 commit comments

Comments
 (0)