grafana/pkg/services/sqlstore
Sofia Papagiannaki 4937f0daab
SQLStore: Run tests as integration tests (#28265)
* sqlstore: Run tests as integration tests

* Truncate database instead of re-creating it on each test

* Fix test description

See https://github.com/grafana/grafana/pull/12129

* Fix lint issues

* Fix postgres dialect after review suggestion

* Rename and document functions after review suggestion

* Add periods

* Fix auto-increment value for mysql dialect

Co-authored-by: Emil Tullstedt <emil.tullstedt@grafana.com>
2020-10-16 10:46:14 +03:00
..
migrations Dashboard: Allow shortlink generation (#27409) 2020-10-14 12:48:48 +02:00
migrator SQLStore: Run tests as integration tests (#28265) 2020-10-16 10:46:14 +03:00
permissions Chore: Start harmonizing linting with plugin SDK (#25854) 2020-06-29 14:08:32 +02:00
searchstore SQLStore: Run tests as integration tests (#28265) 2020-10-16 10:46:14 +03:00
sqlutil Annotation: Add clean up job for old annotations (#26156) 2020-09-02 08:07:31 +02:00
alert_notification_test.go SQLStore: Run tests as integration tests (#28265) 2020-10-16 10:46:14 +03:00
alert_notification.go Chore/fix lint issues (#27704) 2020-09-22 16:22:19 +02:00
alert_test.go SQLStore: Run tests as integration tests (#28265) 2020-10-16 10:46:14 +03:00
alert.go Chore/fix lint issues (#27704) 2020-09-22 16:22:19 +02:00
annotation_cleanup_test.go Fix typos (#28074) 2020-10-07 11:29:30 +01:00
annotation_cleanup.go Annotation: Add clean up job for old annotations (#26156) 2020-09-02 08:07:31 +02:00
annotation_test.go SQLStore: Run tests as integration tests (#28265) 2020-10-16 10:46:14 +03:00
annotation.go Chore/fix lint issues (#27704) 2020-09-22 16:22:19 +02:00
apikey_test.go SQLStore: Run tests as integration tests (#28265) 2020-10-16 10:46:14 +03:00
apikey.go API: Optionally list expired keys (#20468) 2019-11-20 13:14:57 +02:00
dashboard_acl_test.go SQLStore: Run tests as integration tests (#28265) 2020-10-16 10:46:14 +03:00
dashboard_acl.go Chore: Enable whitespace linter (#25903) 2020-07-06 20:17:28 +02:00
dashboard_folder_test.go SQLStore: Run tests as integration tests (#28265) 2020-10-16 10:46:14 +03:00
dashboard_provisioning_test.go SQLStore: Run tests as integration tests (#28265) 2020-10-16 10:46:14 +03:00
dashboard_provisioning.go Provisioning: Remove provisioned dashboards without parental reader (#26143) 2020-09-11 09:19:44 +02:00
dashboard_service_integration_test.go SQLStore: Run tests as integration tests (#28265) 2020-10-16 10:46:14 +03:00
dashboard_snapshot_test.go SQLStore: Run tests as integration tests (#28265) 2020-10-16 10:46:14 +03:00
dashboard_snapshot.go Snapshots: Store dashboard data encrypted in the database (#28129) 2020-10-13 10:19:42 +02:00
dashboard_test.go SQLStore: Run tests as integration tests (#28265) 2020-10-16 10:46:14 +03:00
dashboard_version_test.go SQLStore: Run tests as integration tests (#28265) 2020-10-16 10:46:14 +03:00
dashboard_version.go delete old dashboard versions in multiple batches (#23348) 2020-04-06 11:44:14 -04:00
dashboard.go Chore/fix lint issues (#27704) 2020-09-22 16:22:19 +02:00
datasource_test.go SQLStore: Run tests as integration tests (#28265) 2020-10-16 10:46:14 +03:00
datasource.go Data sources: Use SQL store directly, not via bus (#27000) 2020-08-21 09:30:06 +02:00
health.go chore: avoid aliasing imports in services (#22499) 2020-02-29 13:35:15 +01:00
logger.go Chore: Update the xorm dependency (#22376) 2020-04-01 15:57:21 +02:00
login_attempt_test.go SQLStore: Run tests as integration tests (#28265) 2020-10-16 10:46:14 +03:00
login_attempt.go chore: avoid aliasing imports in services (#22499) 2020-02-29 13:35:15 +01:00
org_test.go SQLStore: Run tests as integration tests (#28265) 2020-10-16 10:46:14 +03:00
org_users.go chore: avoid aliasing imports in services (#22499) 2020-02-29 13:35:15 +01:00
org.go SQL: Fix missing org error messages (#26785) 2020-08-04 17:06:37 +02:00
playlist_test.go SQLStore: Run tests as integration tests (#28265) 2020-10-16 10:46:14 +03:00
playlist.go chore: avoid aliasing imports in services (#22499) 2020-02-29 13:35:15 +01:00
plugin_setting.go Chore: Enable whitespace linter (#25903) 2020-07-06 20:17:28 +02:00
preferences_test.go SQLStore: Run tests as integration tests (#28265) 2020-10-16 10:46:14 +03:00
preferences.go Dashboard: Support configuring default timezone via config file (#27404) 2020-09-15 15:20:53 +02:00
quota_test.go SQLStore: Run tests as integration tests (#28265) 2020-10-16 10:46:14 +03:00
quota.go Chore/fix lint issues (#27704) 2020-09-22 16:22:19 +02:00
session.go Server: Add health check route (#26999) 2020-08-18 14:58:08 +02:00
sql_test_data.go Chore: Enable whitespace linter (#25903) 2020-07-06 20:17:28 +02:00
sqlbuilder_test.go SQLStore: Run tests as integration tests (#28265) 2020-10-16 10:46:14 +03:00
sqlbuilder.go Chore: Enable whitespace linter (#25903) 2020-07-06 20:17:28 +02:00
sqlstore_test.go SQLStore: Run tests as integration tests (#28265) 2020-10-16 10:46:14 +03:00
sqlstore.go SQLStore: Run tests as integration tests (#28265) 2020-10-16 10:46:14 +03:00
sqlstore.goconvey feat(invite): small progress 2015-07-17 14:42:49 +02:00
star.go Chore: Enable whitespace linter (#25903) 2020-07-06 20:17:28 +02:00
stars_test.go SQLStore: Run tests as integration tests (#28265) 2020-10-16 10:46:14 +03:00
stats_integration_test.go Stats: Use more efficient SQL and add timeouts (#27390) 2020-09-08 09:52:08 +02:00
stats_test.go SQLStore: Run tests as integration tests (#28265) 2020-10-16 10:46:14 +03:00
stats.go Stats: Use more efficient SQL and add timeouts (#27390) 2020-09-08 09:52:08 +02:00
tables.go Began work on real sql schema definitions, and migration engine 2015-01-17 21:40:22 +01:00
tags_test.go SQLStore: Run tests as integration tests (#28265) 2020-10-16 10:46:14 +03:00
tags.go Chore: Enable Go linter gocritic (#26224) 2020-07-16 14:39:01 +02:00
team_test.go SQLStore: Run tests as integration tests (#28265) 2020-10-16 10:46:14 +03:00
team.go Chore: Enable whitespace linter (#25903) 2020-07-06 20:17:28 +02:00
temp_user_test.go SQLStore: Run tests as integration tests (#28265) 2020-10-16 10:46:14 +03:00
temp_user.go Users: Expire old user invites (#27361) 2020-10-13 12:30:09 +02:00
tls_mysql.go add support for periodically reloading mysql client certs (#14892) 2019-05-16 13:45:22 +02:00
transactions_test.go SQLStore: Run tests as integration tests (#28265) 2020-10-16 10:46:14 +03:00
transactions.go Server: Add health check route (#26999) 2020-08-18 14:58:08 +02:00
user_auth_test.go SQLStore: Run tests as integration tests (#28265) 2020-10-16 10:46:14 +03:00
user_auth.go OAuth: Fix for wrong user token updated on OAuth refresh in DS proxy (#17541) 2019-06-12 13:47:38 +02:00
user_test.go SQLStore: Run tests as integration tests (#28265) 2020-10-16 10:46:14 +03:00
user.go Chore/fix lint issues (#27704) 2020-09-22 16:22:19 +02:00