Skip to content

Conversation

@BenWhitehead
Copy link
Contributor

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)
      
  • Add new script generate-conformance-tests.sh that can reliably update
    the various files that make up the conformance tests.
    • Currently the script only updates firestore tests, but will be
      updated for the other projects in a later commit.
    • Updating of the git-submodule linking to conformance tests is not
      done by the script, it is expected that the developer will do the
      bumping.

Bump firestore conformance tests to googleapis/conformance-tests@5a98470

  • import proto definition
  • generate updated TestDefinition from definition
  • Add individual test files
  • Add dependency from com.google.cloud:google-cloud-firestore -> com.google.cloud:google-cloud-conformance-tests
  • Move proto inclusion from com.google.cloud:google-cloud-firestore/tests to com.google.cloud:google-cloud-conformance-tests/main
  • Add maven profile gen-conformance-protos that can be used to generate protos in com.google.cloud:google-cloud-conformance-tests

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)
    ```
* Add new script generate-conformance-tests.sh that can reliably update
  the various files that make up the conformance tests.
  * Currently the script only updates firestore tests, but will be
    updated for the other projects in a later commit.
  * Updating of the git-submodule linking to conformance tests is not
    done by the script, it is expected that the developer will do the
    bumping.

Bump firestore conformance tests to googleapis/conformance-tests@5a98470

* import proto definition
* generate updated TestDefinition from definition
* Add individual test files
* Add dependency from `com.google.cloud:google-cloud-firestore` -> `com.google.cloud:google-cloud-conformance-tests`
* Move proto inclusion from `com.google.cloud:google-cloud-firestore`/tests to `com.google.cloud:google-cloud-conformance-tests`/main
* Add maven profile `gen-conformance-protos` that can be used to generate protos in `com.google.cloud:google-cloud-conformance-tests`
@BenWhitehead BenWhitehead requested a review from a team as a code owner June 21, 2019 17:10
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jun 21, 2019
@BenWhitehead
Copy link
Contributor Author

@kolea2 Please review when you get a chance

@kolea2
Copy link
Contributor

kolea2 commented Jun 21, 2019

Can you split this up into two PRs? (the creation of the module, and then the changes to the tests)

@BenWhitehead BenWhitehead deleted the firestore-conformance-tests-json branch June 21, 2019 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants