integrationtest

package
v0.0.0-...-49e5460 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2019 License: MIT Imports: 24 Imported by: 0

README

test_directory/
    test_suite_1/
        schema.json
            - schema file of the database schema + shard count required
                (database_vshard.shard_count)

        data.json
            - file containing initial data for the schema defined
                {
                    "databasename": {
                        "collectionName": [
                            {record1},
                            {record2},
                            ...
                        ]
                    }
                }

        testcase/
            query.json
                - file containing query to run
            baseline.json
                - file containing expected output from the test run
            result.json
                - file containing output from the last test run

            subtestcase/
                query.json
                    - file containing query to run
                baseline.json
                    - file containing expected output from the test run
                result.json
                    - file containing output from the last test run

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunIntegrationTests

func RunIntegrationTests(t *testing.T, task *tasknode.TaskNode, router *routernode.RouterNode, datasource *storagenode.DatasourceInstance)

For this we assume these are empty and we can do whatever we want to them!

Types

type Data

type Data map[string]map[string][]map[string]interface{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL