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

testing: add handling of unknown providers and empty terraform #55

Merged
merged 3 commits into from
Aug 30, 2021

Commits on Aug 30, 2021

  1. testdata: reorganize test-data and add SQL dump

    The testdata has been re-arranged to better reflect which providers where
    being tested; this allows to deal more easily with tests and the
    providers which are not yet supported.
    
    Some SQL dump of a previous ingestion has also been added to be able to
    test things locally more easily, it will be injected into the database
    whenever this one is started. The database can now be access via `make
    db-cli`
    Hugo Rosnet committed Aug 30, 2021
    Configuration menu
    Copy the full SHA
    fd8f341 View commit details
    Browse the repository at this point in the history
  2. test: handle unknown provider and empty files

    Instead of returning 0 as a cost estimated, Terracost will now return an
    error depending on the condition: no known providers were found, so it
    had no data to estimate it, or when a terraform module/files is empty
    and nothing could be extracted.
    Hugo Rosnet committed Aug 30, 2021
    Configuration menu
    Copy the full SHA
    b140b76 View commit details
    Browse the repository at this point in the history
  3. provider: rearrange files to ease reading/addition

    The known providers are now put into a separated files, which helps with
    adding new supported one to the default list.
    Hugo Rosnet committed Aug 30, 2021
    Configuration menu
    Copy the full SHA
    dcca7a5 View commit details
    Browse the repository at this point in the history