Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[COST-3761] Generate example API data for several days #5085

Merged
merged 5 commits into from
May 10, 2024

Conversation

samdoran
Copy link
Contributor

@samdoran samdoran commented May 3, 2024

Jira Ticket

COST-3761

Description

Generate several days worth of example data for reports/openshift/network/.
Also add example data for group_by[cluster]=*.

Testing

curl -gsSL http://localhost:8000/api/cost-management/v1/reports/openshift/network/
curl -gsSL http://localhost:8000/api/cost-management/v1/reports/openshift/network/?group_by[cluster]=*

Release Notes

  • proposed release note
* [COST-3761](https://issues.redhat.com/browse/COST-3761) Add more example data to OCP Network API

@samdoran samdoran requested review from a team as code owners May 3, 2024 15:21
Copy link

codecov bot commented May 3, 2024

Codecov Report

Attention: Patch coverage is 95.00000% with 7 lines in your changes are missing coverage. Please review.

Project coverage is 94.1%. Comparing base (7cce711) to head (ddce320).

Additional details and impacted files
@@          Coverage Diff           @@
##            main   #5085    +/-   ##
======================================
  Coverage   94.1%   94.1%            
======================================
  Files        377     378     +1     
  Lines      31439   31577   +138     
  Branches    3725    3753    +28     
======================================
+ Hits       29592   29723   +131     
- Misses      1176    1181     +5     
- Partials     671     673     +2     

@samdoran samdoran force-pushed the COST-3761/stub-api-updates branch from bf296b3 to 5c03692 Compare May 3, 2024 16:26
@samdoran samdoran added the smoke-tests pr_check will build the image and run minimal required smokes label May 3, 2024
@samdoran samdoran force-pushed the COST-3761/stub-api-updates branch 3 times, most recently from e123d7d to 862afcf Compare May 7, 2024 14:57
samdoran added 4 commits May 8, 2024 09:55
I decided to make two different classes rather than having the generate method
decide what to do based on the request.
@samdoran samdoran force-pushed the COST-3761/stub-api-updates branch from 862afcf to da310f1 Compare May 8, 2024 13:55
@samdoran samdoran enabled auto-merge (squash) May 10, 2024 13:43
@samdoran samdoran merged commit d972f0c into main May 10, 2024
10 of 11 checks passed
@samdoran samdoran deleted the COST-3761/stub-api-updates branch May 10, 2024 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
smoke-tests pr_check will build the image and run minimal required smokes smokes-required
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants