Invalid Datasource Credentials still create datasource & dashboard in Grafana Instance
What I expected to happen:
Attempting to connect to a database using invalid connection credentials should not create a datasource and dashboard in grafana, instead the datasource credentials should be verified as a valid connection before making the request to grafana.
Steps to reproduce:
Press connect to Database
Provide valid Grafana credentials
Provide invalid database credentials
Press connect
Page will return popup with 'Failed to connect'
Go to grafana instance, datasource and dashboards are created even for invalid credentials
Invalid Datasource Credentials still create datasource & dashboard in Grafana Instance
What I expected to happen:
Attempting to connect to a database using invalid connection credentials should not create a datasource and dashboard in grafana, instead the datasource credentials should be verified as a valid connection before making the request to grafana.
Steps to reproduce: