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

Add EC2 RI Offerings #1742

Closed
wants to merge 13 commits into from
Closed

Conversation

alecrajeev
Copy link
Contributor

Fixes #1741

  • describe_reserved_instances_offerings
  • Created various csv files for this split up by region and instance type
  • Added a hash table to more quickly find the offering ids

* Added describe ri offering end point

* added package to unit test

* added offering class convertible unit test

* added numpy to setup.py

* removed unnecessary print statement

* added unit test for empty offering and put csv files in regional folders

* added folders for regions

* added folders for regions

* added csv files to regional folders

* add all csv files to regional folders

* fixed minor syntax issue

* Fixed unit test by adding a variable

* Added regional files individually

* add back offering table hash

* can find the file name from offering id

* succesfully returns offering info from id

* Split up 20 mb hash table to increase speed

* fixed hash function

* Add for all regions and instance types

* add hash table offering files

* fixed hash table functions within moto/models

* added ri offering id unit tests

* fixed white space2

* fixed unit test for duration int

still need to fix underlying issue with instance type files

* fixed blank line

* Revert "fixed white space2"

This reverts commit b9b37dd.

* Revert "fixed blank line"

This reverts commit 5758e2c.

* fixed blank line2

* reset RI csv files to remove non-existent RI's

* added more logging

* add improved ri info csv tables

* add improved csv tables

* fixed white space

* supports multiple offering ids in input

* fixed white space

* supports unspecified instance tenancy, offering class, etc

* fixed white space

* fixed multiple ri unit test

* removed unnecessary print statements

* fixed instance type in unit test

* Added describe ri offering end point

* added offering class convertible unit test

* added unit test for empty offering and put csv files in regional folders

* added folders for regions

* added folders for regions

* added csv files to regional folders

* add all csv files to regional folders

* Added regional files individually

* add back offering table hash

* can find the file name from offering id

* succesfully returns offering info from id

* Split up 20 mb hash table to increase speed

* fixed hash function

* Add for all regions and instance types

* fixed hash table functions within moto/models

* fixed white space2

* fixed unit test for duration int

still need to fix underlying issue with instance type files

* fixed blank line

* Revert "fixed white space2"

This reverts commit b9b37dd.

* Revert "fixed blank line"

This reverts commit 5758e2c.

* fixed blank line2

* add improved ri info csv tables

* fixed white space

* supports multiple offering ids in input

* fixed white space

* supports unspecified instance tenancy, offering class, etc

* fixed white space

* fixed multiple ri unit test

* removed unnecessary print statements

* fixed instance type in unit test

* adjusted hash table algorithm to group be region

* Added adjustments for hash table by region

* added new hash tables by regions

* added hash tables by regions

* made hash table length smaller

* fixed syntax

* removed unnecessary function

* removed duplicate functions

* fixed hash table in ec2/models

* added additional unit test to check for offering id in wrong region

* fixed typo

* fixed region used in unit test

* fixed offerings to remove false offering ris

* made slight adjustment to unit test

* fixed manifest file

* removed duplicate unit test

* removed duplicate unit tests2

* fixed unit test to count for no instance type in region

* removed unnecessary comment
@coveralls
Copy link

coveralls commented Jul 31, 2018

Coverage Status

Coverage decreased (-0.5%) to 91.854% when pulling 9d7a505 on alecrajeev:add-ec2-ri-offerings into 2e5e7e7 on spulec:master.

@alecrajeev alecrajeev closed this Aug 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants