Create new google-cloud-conformance-tests module (#5540) · a8er/google-cloud-java@295eef7 · GitHub
Skip to content

Commit 295eef7

Browse files
BenWhiteheadchingor13
authored andcommitted
Create new google-cloud-conformance-tests module (googleapis#5540)
* Create new google-cloud-conformance-tests module A new module where common code related to conformance tests can be shared. * Includes a rudimentary classpath scanner that can be used to locate test definitions. (The firestore test suite currently have 224 test definitions.) * The classpath scanner includes a suite of tests to ensure it can accurately find resources in jar files and directories. * Tests have been ran against the following JVMs on Linux x64 and verified to pass. ``` openjdk version "1.7.0_75" OpenJDK Runtime Environment (build 1.7.0_75-b13) OpenJDK 64-Bit Server VM (build 24.75-b04, mixed mode) java version "1.8.0_201" Java(TM) SE Runtime Environment (build 1.8.0_201-b09) Java HotSpot(TM) 64-Bit Server VM (build 25.201-b09, mixed mode) java version "11.0.2" 2019-01-15 LTS Java(TM) SE Runtime Environment 18.9 (build 11.0.2+9-LTS) Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.2+9-LTS, mixed mode) openjdk version "12" 2019-03-19 OpenJDK Runtime Environment (build 12+33) OpenJDK 64-Bit Server VM (build 12+33, mixed mode, sharing) ``` * Review cleanup * format
1 parent 46c39ff commit 295eef7

7 files changed

Lines changed: 464 additions & 0 deletions

File tree

google-cloud-clients/pom.xml

Lines changed: 6 additions & 0 deletions
Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
<artifactId>google-cloud-conformance-tests</artifactId>
7+
<version>0.1.0-SNAPSHOT</version>
8+
<packaging>jar</packaging>
9+
10+
<parent>
11+
<groupId>com.google.cloud</groupId>
12+
<artifactId>google-cloud-testing</artifactId>
13+
<version>0.98.1-alpha-SNAPSHOT</version><!-- {x-version-update:google-cloud-testing:current} -->
14+
</parent>
15+
16+
<properties>
17+
<protobuf.version>3.7.1</protobuf.version>
18+
</properties>
19+
20+
<dependencies>
21+
<dependency>
22+
<groupId>junit</groupId>
23+
<artifactId>junit</artifactId>
24+
<scope>test</scope>
25+
</dependency>
26+
<dependency>
27+
<groupId>com.google.truth</groupId>
28+
<artifactId>truth</artifactId>
29+
</dependency>
30+
<dependency>
31+
<groupId>com.google.api.grpc</groupId>
32+
<artifactId>proto-google-cloud-firestore-v1</artifactId>
33+
</dependency>
34+
</dependencies>
35+
36+
<build>
37+
<extensions>
38+
<extension>
39+
<groupId>kr.motd.maven</groupId>
40+
<artifactId>os-maven-plugin</artifactId>
41+
<version>1.6.2</version>
42+
</extension>
43+
</extensions>
44+
<plugins>
45+
<plugin>
46+
<groupId>org.codehaus.mojo</groupId>
47+
<artifactId>build-helper-maven-plugin</artifactId>
48+
<version>3.0.0</version>
49+
<executions>
50+
<execution>
51+
<id>add-main-resource</id>
52+
<phase>generate-resources</phase>
53+
<goals>
54+
<goal>add-resource</goal>
55+
</goals>
56+
<configuration>
57+
<resources>
58+
<resource>
59+
<directory>src/main/proto</directory>
60+
</resource>
61+
</resources>
62+
</configuration>
63+
</execution>
64+
</executions>
65+
</plugin>
66+
</plugins>
67+
</build>
68+
69+
<profiles>
70+
<profile>
71+
<id>gen-conformance-protos</id>
72+
<build>
73+
<plugins>
74+
<plugin>
75+
<groupId>org.xolstice.maven.plugins</groupId>
76+
<artifactId>protobuf-maven-plugin</artifactId>
77+
<version>0.6.1</version>
78+
<executions>
79+
<execution>
80+
<id>generate-main</id>
81+
<goals>
82+
<goal>compile</goal>
83+
</goals>
84+
<phase>generate-sources</phase>
85+
</execution>
86+
<execution>
87+
<id>generate-test</id>
88+
<goals>
89+
<goal>test-compile</goal>
90+
</goals>
91+
<phase>generate-test-sources</phase>
92+
</execution>
93+
</executions>
94+
<configuration>
95+
<protocArtifact>com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}</protocArtifact>
96+
</configuration>
97+
</plugin>
98+
<plugin>
99+
<groupId>com.coveo</groupId>
100+
<artifactId>fmt-maven-plugin</artifactId>
101+
<version>2.9</version>
102+
<executions>
103+
<execution>
104+
<id>format-main</id>
105+
<goals>
106+
<goal>format</goal>
107+
</goals>
108+
<phase>process-sources</phase>
109+
</execution>
110+
<execution>
111+
<id>format-test</id>
112+
<goals>
113+
<goal>format</goal>
114+
</goals>
115+
<phase>process-test-sources</phase>
116+
</execution>
117+
</executions>
118+
<configuration>
119+
<additionalSourceDirectories>
120+
<directory>target/generated-sources/protobuf/java</directory>
121+
</additionalSourceDirectories>
122+
</configuration>
123+
</plugin>
124+
</plugins>
125+
</build>
126+
</profile>
127+
</profiles>
128+
129+
</project>
Lines changed: 206 additions & 0 deletions

0 commit comments

Comments
 (0)