project-koku / nise

A tool for generating sample cost usage data for testing purposes
GNU Affero General Public License v3.0
9 stars 15 forks source link

HCS - initial implementation for AWS/Azure marketplace report generation #379

Closed ddonahue007 closed 2 years ago

ddonahue007 commented 2 years ago

Closes: https://issues.redhat.com/browse/COST-2136

Testing:

- For AWS generation:

> nise report aws-marketplace --start-date 2020-12-01 --end-date 2021-01-27 --write-monthly 
> ls
December-2020-marketplace.csv 
January-2021-marketplace.csv

Validate by doing a search for 'AWS Marketplace' in the above files

You can also use the following to build out reports

> nise report aws-marketplace --start-date 2020-12-01 --end-date 2021-01-31 --write-monthly --aws-s3-report-name None --aws-s3-bucket-name ~/Desktop/myBucket

- For Azure generation:

> nise report azure --version-two --start-date 2020-12-01 --end-date 2021-01-27 --write-monthly 
> ls
costreport_f240d1d6-8007-4a35-bb60-92696c01e140.csv
costreport_b77526da-8420-4c12-b14f-21e1d61a3ac7.csv nise_azure.csv

Validate by doing a search for 'Azure Marketplace Services'

ddonahue007 commented 2 years ago

/retest

ddonahue007 commented 2 years ago

/retest

ddonahue007 commented 2 years ago

/retest

codecov[bot] commented 2 years ago

Codecov Report

Merging #379 (f24edef) into master (9c6ba59) will decrease coverage by 0.6%. The diff coverage is 85.8%.

@@           Coverage Diff            @@
##           master    #379     +/-   ##
========================================
- Coverage    94.0%   93.4%   -0.6%     
========================================
  Files          48      50      +2     
  Lines        3706    3911    +205     
  Branches      521     550     +29     
========================================
+ Hits         3483    3652    +169     
- Misses        122     144     +22     
- Partials      101     115     +14