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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃敡 Refactor AWS hourly images to get cloud access images as well #7

Closed
major opened this issue Oct 6, 2022 · 0 comments 路 Fixed by #11
Closed

馃敡 Refactor AWS hourly images to get cloud access images as well #7

major opened this issue Oct 6, 2022 · 0 comments 路 Fixed by #11
Assignees
Labels
enhancement New feature or request

Comments

@major
Copy link
Member

major commented Oct 6, 2022

We have get_aws_hourly_images() now, but it pulls a full list of images and filters out the cloud access images. We should probably refactor this to make one function that does the API call and then two separate functions that filter the results. We will need the list of cloud access instances eventually.

@major major added the enhancement New feature or request label Oct 6, 2022
@major major self-assigned this Oct 6, 2022
major added a commit that referenced this issue Oct 6, 2022
Update pytest fixtures to include cloud access billing codes and use
those fixtures consistently. Add the billing codes to config and use the
constants consistently.

Split out the actual AWS describe_image call into its own function for
easier mocking and testing. Add an argument to get_aws_images that
specifies which image types to filter for with hourly as the default.

Fixes: #7

Signed-off-by: Major Hayden <major@redhat.com>
major added a commit that referenced this issue Oct 7, 2022
Update pytest fixtures to include cloud access billing codes and use
those fixtures consistently. Add the billing codes to config and use the
constants consistently.

Split out the actual AWS describe_image call into its own function for
easier mocking and testing. Add an argument to get_aws_images that
specifies which image types to filter for with hourly as the default.

Fixes: #7

Signed-off-by: Major Hayden <major@redhat.com>
@major major closed this as completed in #11 Oct 7, 2022
@F-X64 F-X64 added this to the Implement raw image data intake milestone Nov 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants