integrationtest

command
v0.0.0-...-88d673b Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

README

Integration Tests

Running the integration tests will require the files present in the staging folder to be configured as below:

Config Files

config-files/staging/config.json

{
    "GoogleProjectID": "<your-project-id>",
    "SpannerDb": "<any-db-name>",
    "QueryLimit": 5000
}

config-files/staging/spanner.json

{
    "dynamodb_adapter_table_ddl": "<spanner-instance-name>",
    "dynamodb_adapter_config_manager": "<spanner-instance-name>",
    "department": "<spanner-instance-name>",
    "employee": "<spanner-instance-name>"
}

config-files/staging/tables.json

{
    "employee": {
        "partitionKey": "emp_id",
        "sortKey": "",
        "attributeTypes": {
            "emp_id": "N",
            "first_name": "S",
            "last_name": "S",
            "address": "S",
            "age": "N"
        },
        "indices": {}
    },
    "department": {
        "partitionKey": "d_id",
        "sortKey": "",
        "attributeTypes": {
            "d_id": "N",
            "d_name": "S",
            "d_specialization": "S"
        },
        "indices": {}
    }
}

Execute tests

go run integrationtest/setup.go setup
go test integrationtest/api_test.go
go run integrationtest/setup.go teardown

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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