lookup

command
v1.1.23 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 15 Imported by: 0

README

Lookup integration test

Created using Ubuntu WSL. Other Linux flavors and MacOS may require edits.

lookup_quicktest vs lookup_bigtest

This test comes in two flavors.

portfolio_quicktest has all data ready, it just has to be copied to /tmp/capi_*, and you can run the test. Root-level copy_demo_data.sh script does that, among other things.

lookup_bigtest is a variation of this test that uses:

  • large number of orders
  • parquet files for input and output and requires test data to be generated - see 1_create_data.sh.

Workflow

The diagram generated with

go run capitoolbelt.go validate_script -script_file=../../../test/data/cfg/lookup_quicktest/script.json -params_file=../../../test/data/cfg/lookup_quicktest/script_params_two_runs.json -detail=idx

drawing

What's tested:

Multi-run test simulates the scenario when an operator validates loaded order and order item data before proceeding with joining orders with order items.

How to test

See integration tests section for generic instructions on how to run integration tests.

Possible edits

Play with the number of total line items (see "-items=..." in 1_create_data.sh).

References:

Data model design: Brazilian E-Commerce public dataset https://www.kaggle.com/datasets/olistbr/brazilian-ecommerce

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