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

[COST-858] gcp yaml gen #347

Closed cgoodfred closed 3 years ago

cgoodfred commented 3 years ago

This PR is to address creation of ymls for GCP data through nise.

Testing: Create a nise yaml for gcp data with: nise yaml gcp -o gcp_yml_test.yml Then create the data for the yml through nise: nise report gcp --static-report-file gcp_yml_test.yml --gcp-bucket-name <output-folder-name>

It is a good idea to test that the data loads into koku properly as well, but nise generation has been tested a lot so not required.

A sample config file is located here: nise/yaml_generators/static/gcp_generator_config.yml which can be changed and used to create large datasets by changing the number of generators, create a yaml using the generator with: nise yaml gcp -o gcp_big_yml_test.yml -c nise/yaml_generators/static/gcp_generator_config.yml Then create the data for the yml through nise: nise report gcp --static-report-file gcp_big_yml_test.yml --gcp-bucket-name <output-folder-name>

codecov[bot] commented 3 years ago

Codecov Report

Merging #347 (626c287) into master (f32bd80) will increase coverage by 0.0%. The diff coverage is 94.4%.

@@          Coverage Diff           @@
##           master    #347   +/-   ##
======================================
  Coverage    93.7%   93.8%           
======================================
  Files          47      48    +1     
  Lines        3501    3572   +71     
  Branches      481     491   +10     
======================================
+ Hits         3281    3349   +68     
- Misses        123     125    +2     
- Partials       97      98    +1