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

Update OCP manifest to match operator #361

Closed adberglund closed 3 years ago

adberglund commented 3 years ago

Summary

Add version and start/end to the OCP manifest generated by nise. Use the nise version for the version to distinguish it from the real thing.

Testing

Installed locally and ran

nise report ocp --static-report-file /Users/aberglund/redhat/cost_mangement/nise/examples/ocp_on_aws/ocp_static_data.yml --ocp-cluster-id test-one --insights-upload ./

producing a manifest with

{
    "uuid": "0914a997-cee2-4906-ab92-6420cb73ffdb",
    "cluster_id": "test-one",
    "version": "2.4.6",
    "date": "2019-07-01 00:00:00",
    "files": ["0914a997-cee2-4906-ab92-6420cb73ffdb_openshift_report.0.csv", "0914a997-cee2-4906-ab92-6420cb73ffdb_openshift_report.1.csv", "0914a997-cee2-4906-ab92-6420cb73ffdb_openshift_report.2.csv", "0914a997-cee2-4906-ab92-6420cb73ffdb_openshift_report.3.csv"],
    "start": "2019-07-01 00:00:00",
    "end": "2019-07-31 00:00:00"
}
codecov[bot] commented 3 years ago

Codecov Report

Merging #361 (923a2fd) into master (4d33bd7) will decrease coverage by 0.1%. The diff coverage is 100.0%.

@@           Coverage Diff            @@
##           master    #361     +/-   ##
========================================
- Coverage    93.7%   93.5%   -0.1%     
========================================
  Files          48      48             
  Lines        3579    3580      +1     
  Branches      493     493             
========================================
- Hits         3352    3349      -3     
- Misses        126     128      +2     
- Partials      101     103      +2