grafana-tools / grafana-backup

[ON HOLD] CLI tool for backup/restore Grafana dashboards and datasources.
GNU General Public License v3.0
28 stars 3 forks source link

Restore data sources #11

Closed omadawn closed 6 years ago

omadawn commented 6 years ago

O.K. Figured out the issue that was causing the dashboard import to fail and fixed that.

Then, because I'm a horrible yak shaver, implemented a unit test for it with the https://github.com/jarcoal/httpmock mocking framework.

The test still needs some work but it's validating that the request is made to the right location and doing some basic validation of the format of what is being sent.