Avro
  1. Avro
  2. AVRO-230

Create a shared schema test directory structure

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: c, c++, java, python
    • Labels:
      None

      Description

      This is an example of my proposed directory structure:

      • invalid_schemas/
        • broken.json
        • wrong.json
      • valid_data/
        • foo_test/
          • schema.json
          • json_data/
            • valid_json_test_data.json
            • more_valid_json_test_data.json
          • binary_data/
            • valid_binary_test_data.bin
            • more_test_data.bin
        • bar_test/
          • schema.json
          • json_data/
            • ...
      • invalid_data/
        • baz_test/
          • schema.json
          • json_data/
            • ...
          • binary_data/
            • ...

      This structure supports positive and negative tests for avro schemas, json data and binary data.

      • The "invalid_schema" directory holds a number of invalid schemas that should fail to parse.
      • The "valid_data" directory has a number of self-contained tests in separate directories. Each test directory is required to have a "schema.json" file that valid avro schema. The "json_data" and "binary_data" directories are optional for each test.
      • The "invalid_data" directory has the same rules as the "valid_data" directory. The data files should fail during tests (negative testing).

        Activity

          People

          • Assignee:
            Matt Massie
            Reporter:
            Matt Massie
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:

              Development