1.1.5 • Published 5 years ago

abacus-usage-reporting-integration-test v1.1.5

Weekly downloads
8
License
Apache-2.0
Repository
-
Last release
5 years ago

abacus-usage-reporting-integration-test

:information_source: In order to run the test locally, make sure you run the following commands:

cd cf-abacus
docker-compose up -d
yarn provision
cd test/integration/aggregation/reporting
yarn run integration

Test data generated with:

export SLACK=3D
export TIME_WINDOWS_SIZES='{ "D" : 6 }'
yarn start && yarn smoke

# generate ratedUsage.json
# 1. List all docs in abacus-aggregator-aggregated-usage
# 2. Merge them in array in ratedUsage.json

# generate report.json
curl -H 'Content-Type: application/json' http://localhost:9088/v1/metering/organizations/us-south:a3d7fe4d-3cb1-4cc3-a831-ffe98e20cf27/aggregated/usage | jq . > report.json

# generate offset_report.json
yarn stop
export ABACUS_TIME_OFFSET=345600000
yarn start
export DATE_IN_MS=$(node -e "console.log(new Date().valueOf() + 345600000)")
curl -H 'Content-Type: application/json' "http://localhost:9088/v1/metering/organizations/us-south:a3d7fe4d-3cb1-4cc3-a831-ffe98e20cf27/aggregated/usage/$DATE_IN_MS" | jq . > offset_report.json
1.1.5

5 years ago

1.1.5-rc.3

5 years ago

1.1.5-rc.1

5 years ago

1.1.4

5 years ago

1.1.4-rc.3

5 years ago

1.1.4-rc.2

5 years ago