aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-db/src/test/resources/org
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2016-11-07 15:54:16 +0100
committerJulien Lancelot <julien.lancelot@sonarsource.com>2016-11-09 16:47:34 +0100
commit6d53f242b31429e30df708d258e7fe78a1079062 (patch)
treea5dc196a1d9aa853626314a13135a45b9ccbbbd0 /sonar-db/src/test/resources/org
parentb11c4820efc403a3902d47964b17a7a1da0b3960 (diff)
downloadsonarqube-6d53f242b31429e30df708d258e7fe78a1079062.tar.gz
sonarqube-6d53f242b31429e30df708d258e7fe78a1079062.zip
SONAR-8354 Remove dao related to dashboards
Diffstat (limited to 'sonar-db/src/test/resources/org')
-rw-r--r--sonar-db/src/test/resources/org/sonar/db/dashboard/ActiveDashboardDaoTest/empty.xml3
-rw-r--r--sonar-db/src/test/resources/org/sonar/db/dashboard/ActiveDashboardDaoTest/shouldGetMaxOrderIndexForNullUser.xml21
-rw-r--r--sonar-db/src/test/resources/org/sonar/db/dashboard/ActiveDashboardDaoTest/shouldInsert-result.xml9
-rw-r--r--sonar-db/src/test/resources/org/sonar/db/dashboard/ActiveDashboardDaoTest/shouldInsert.xml3
-rw-r--r--sonar-db/src/test/resources/org/sonar/db/dashboard/ActiveDashboardDaoTest/shouldInsertWithNoUser-result.xml9
-rw-r--r--sonar-db/src/test/resources/org/sonar/db/dashboard/ActiveDashboardDaoTest/shouldSelectDashboardsForAnonymous.xml56
-rw-r--r--sonar-db/src/test/resources/org/sonar/db/dashboard/ActiveDashboardDaoTest/shouldSelectDashboardsForUser.xml78
-rw-r--r--sonar-db/src/test/resources/org/sonar/db/dashboard/DashboardDaoTest/shouldInsert-result.xml31
-rw-r--r--sonar-db/src/test/resources/org/sonar/db/dashboard/DashboardDaoTest/shouldInsert.xml3
-rw-r--r--sonar-db/src/test/resources/org/sonar/db/dashboard/DashboardDaoTest/shouldInsertWithNullableColumns-result.xml35
-rw-r--r--sonar-db/src/test/resources/org/sonar/db/dashboard/DashboardDaoTest/shouldSelectGlobalDashboard.xml21
-rw-r--r--sonar-db/src/test/resources/org/sonar/db/dashboard/WidgetDaoTest/before.xml18
12 files changed, 0 insertions, 287 deletions
diff --git a/sonar-db/src/test/resources/org/sonar/db/dashboard/ActiveDashboardDaoTest/empty.xml b/sonar-db/src/test/resources/org/sonar/db/dashboard/ActiveDashboardDaoTest/empty.xml
deleted file mode 100644
index 871dedcb5e9..00000000000
--- a/sonar-db/src/test/resources/org/sonar/db/dashboard/ActiveDashboardDaoTest/empty.xml
+++ /dev/null
@@ -1,3 +0,0 @@
-<dataset>
-
-</dataset>
diff --git a/sonar-db/src/test/resources/org/sonar/db/dashboard/ActiveDashboardDaoTest/shouldGetMaxOrderIndexForNullUser.xml b/sonar-db/src/test/resources/org/sonar/db/dashboard/ActiveDashboardDaoTest/shouldGetMaxOrderIndexForNullUser.xml
deleted file mode 100644
index 1a3d92374b6..00000000000
--- a/sonar-db/src/test/resources/org/sonar/db/dashboard/ActiveDashboardDaoTest/shouldGetMaxOrderIndexForNullUser.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-<dataset>
-
- <active_dashboards
- id="1"
- dashboard_id="1"
- user_id="[null]"
- order_index="1"/>
-
- <active_dashboards
- id="2"
- dashboard_id="2"
- user_id="[null]"
- order_index="15"/>
-
- <active_dashboards
- id="3"
- dashboard_id="3"
- user_id="3"
- order_index="25"/>
-
-</dataset>
diff --git a/sonar-db/src/test/resources/org/sonar/db/dashboard/ActiveDashboardDaoTest/shouldInsert-result.xml b/sonar-db/src/test/resources/org/sonar/db/dashboard/ActiveDashboardDaoTest/shouldInsert-result.xml
deleted file mode 100644
index 75fb1670ce7..00000000000
--- a/sonar-db/src/test/resources/org/sonar/db/dashboard/ActiveDashboardDaoTest/shouldInsert-result.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-<dataset>
-
- <active_dashboards
- id="1"
- dashboard_id="2"
- user_id="3"
- order_index="4"/>
-
-</dataset>
diff --git a/sonar-db/src/test/resources/org/sonar/db/dashboard/ActiveDashboardDaoTest/shouldInsert.xml b/sonar-db/src/test/resources/org/sonar/db/dashboard/ActiveDashboardDaoTest/shouldInsert.xml
deleted file mode 100644
index 871dedcb5e9..00000000000
--- a/sonar-db/src/test/resources/org/sonar/db/dashboard/ActiveDashboardDaoTest/shouldInsert.xml
+++ /dev/null
@@ -1,3 +0,0 @@
-<dataset>
-
-</dataset>
diff --git a/sonar-db/src/test/resources/org/sonar/db/dashboard/ActiveDashboardDaoTest/shouldInsertWithNoUser-result.xml b/sonar-db/src/test/resources/org/sonar/db/dashboard/ActiveDashboardDaoTest/shouldInsertWithNoUser-result.xml
deleted file mode 100644
index a247a4f7c4d..00000000000
--- a/sonar-db/src/test/resources/org/sonar/db/dashboard/ActiveDashboardDaoTest/shouldInsertWithNoUser-result.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-<dataset>
-
- <active_dashboards
- id="1"
- dashboard_id="2"
- user_id="[null]"
- order_index="4"/>
-
-</dataset>
diff --git a/sonar-db/src/test/resources/org/sonar/db/dashboard/ActiveDashboardDaoTest/shouldSelectDashboardsForAnonymous.xml b/sonar-db/src/test/resources/org/sonar/db/dashboard/ActiveDashboardDaoTest/shouldSelectDashboardsForAnonymous.xml
deleted file mode 100644
index ef64957570f..00000000000
--- a/sonar-db/src/test/resources/org/sonar/db/dashboard/ActiveDashboardDaoTest/shouldSelectDashboardsForAnonymous.xml
+++ /dev/null
@@ -1,56 +0,0 @@
-<dataset>
-
- <users id="42"
- login="obiwan"
- name="Obiwan"
- email="obiwan@keno.bi"
- created_at="1418215735482"
- updated_at="1418215735482"
- active="[true]"
- is_root="[false]"/>
-
- <dashboards
- id="1"
- user_id="1"
- name="My Dashboard"
- description="Dashboard shared by admin"
- column_layout="100%"
- shared="[true]"
- />
- <dashboards
- id="2"
- user_id="[null]"
- name="Default Dashboard"
- description="Dashboard provided by system"
- column_layout="100%"
- shared="[true]"
- />
- <dashboards
- id="4"
- user_id="[null]"
- name="User Dashboard"
- description="Won't appear, not anonymous"
- column_layout="100%"
- shared="[true]"
- />
-
- <!-- Dashboard with ID 1 appears after ID 2 -->
- <active_dashboards
- id="1"
- dashboard_id="1"
- user_id="[null]"
- order_index="2"/>
- <!-- Dashboard with ID 2 appears before ID 1 -->
- <active_dashboards
- id="2"
- dashboard_id="2"
- user_id="[null]"
- order_index="1"/>
- <!-- Dashboard with ID 4 does not appear (not anonymous) -->
- <active_dashboards
- id="4"
- dashboard_id="4"
- user_id="42"
- order_index="1"/>
-
-</dataset>
diff --git a/sonar-db/src/test/resources/org/sonar/db/dashboard/ActiveDashboardDaoTest/shouldSelectDashboardsForUser.xml b/sonar-db/src/test/resources/org/sonar/db/dashboard/ActiveDashboardDaoTest/shouldSelectDashboardsForUser.xml
deleted file mode 100644
index 5b57ddfa5d5..00000000000
--- a/sonar-db/src/test/resources/org/sonar/db/dashboard/ActiveDashboardDaoTest/shouldSelectDashboardsForUser.xml
+++ /dev/null
@@ -1,78 +0,0 @@
-<dataset>
-
- <users id="24"
- login="anakin"
- name="Anakin"
- email="anakin@skywalk.er"
- created_at="1418215735482"
- updated_at="1418215735482"
- active="[true]"
- is_root="[false]"/>
- <users id="42"
- login="obiwan"
- name="Obiwan"
- email="obiwan@keno.bi"
- created_at="1418215735482"
- updated_at="1418215735482"
- active="[true]"
- is_root="[false]"/>
-
- <dashboards
- id="1"
- user_id="1"
- name="My Dashboard"
- description="Dashboard shared by admin"
- column_layout="100%"
- shared="[true]"
- />
- <dashboards
- id="2"
- user_id="[null]"
- name="Default Dashboard"
- description="Dashboard provided by system"
- column_layout="100%"
- shared="[true]"
- />
- <dashboards
- id="4"
- user_id="[null]"
- name="Anonymous Dashboard"
- description="Won't appear, anonymous"
- column_layout="100%"
- shared="[true]"
- />
- <dashboards
- id="5"
- user_id="[null]"
- name="Another User Dashboard"
- description="Won't appear, different user"
- column_layout="100%"
- shared="[true]"
- />
-
- <!-- Dashboard with ID 1 appears after ID 2 -->
- <active_dashboards
- id="1"
- dashboard_id="1"
- user_id="42"
- order_index="2"/>
- <!-- Dashboard with ID 2 appears before ID 1 -->
- <active_dashboards
- id="2"
- dashboard_id="2"
- user_id="42"
- order_index="1"/>
- <!-- Dashboard with ID 4 does not appear (anonymous) -->
- <active_dashboards
- id="4"
- dashboard_id="4"
- user_id="[null]"
- order_index="1"/>
- <!-- Dashboard with ID 5 does not appear (another user) -->
- <active_dashboards
- id="5"
- dashboard_id="5"
- user_id="24"
- order_index="1"/>
-
-</dataset>
diff --git a/sonar-db/src/test/resources/org/sonar/db/dashboard/DashboardDaoTest/shouldInsert-result.xml b/sonar-db/src/test/resources/org/sonar/db/dashboard/DashboardDaoTest/shouldInsert-result.xml
deleted file mode 100644
index 30969fc7570..00000000000
--- a/sonar-db/src/test/resources/org/sonar/db/dashboard/DashboardDaoTest/shouldInsert-result.xml
+++ /dev/null
@@ -1,31 +0,0 @@
-<dataset>
-
- <dashboards
- id="1"
- user_id="6"
- name="My Dashboard"
- description="This is a dashboard"
- column_layout="100%"
- shared="[true]"
- />
-
- <widgets
- id="1"
- dashboard_id="1"
- widget_key="code_coverage"
- name="Code coverage"
- description="Widget for code coverage"
- column_index="13"
- row_index="14"
- configured="[true]"
- resource_id="[null]"
- />
-
- <widget_properties
- id="1"
- widget_id="1"
- kee="displayITs"
- text_value="true"
- />
-
-</dataset>
diff --git a/sonar-db/src/test/resources/org/sonar/db/dashboard/DashboardDaoTest/shouldInsert.xml b/sonar-db/src/test/resources/org/sonar/db/dashboard/DashboardDaoTest/shouldInsert.xml
deleted file mode 100644
index 871dedcb5e9..00000000000
--- a/sonar-db/src/test/resources/org/sonar/db/dashboard/DashboardDaoTest/shouldInsert.xml
+++ /dev/null
@@ -1,3 +0,0 @@
-<dataset>
-
-</dataset>
diff --git a/sonar-db/src/test/resources/org/sonar/db/dashboard/DashboardDaoTest/shouldInsertWithNullableColumns-result.xml b/sonar-db/src/test/resources/org/sonar/db/dashboard/DashboardDaoTest/shouldInsertWithNullableColumns-result.xml
deleted file mode 100644
index 67181df8d48..00000000000
--- a/sonar-db/src/test/resources/org/sonar/db/dashboard/DashboardDaoTest/shouldInsertWithNullableColumns-result.xml
+++ /dev/null
@@ -1,35 +0,0 @@
-<dataset>
-
- <dashboards
- id="1"
- user_id="[null]"
- name="[null]"
- description="[null]"
- column_layout="[null]"
- shared="[true]"
- created_at="[null]"
- updated_at="[null]"
- />
-
- <widgets
- id="1"
- dashboard_id="1"
- widget_key="code_coverage"
- name="[null]"
- description="[null]"
- column_index="[null]"
- row_index="[null]"
- configured="[true]"
- created_at="[null]"
- updated_at="[null]"
- resource_id="[null]"
- />
-
- <widget_properties
- id="1"
- widget_id="1"
- kee="[null]"
- text_value="[null]"
- />
-
-</dataset>
diff --git a/sonar-db/src/test/resources/org/sonar/db/dashboard/DashboardDaoTest/shouldSelectGlobalDashboard.xml b/sonar-db/src/test/resources/org/sonar/db/dashboard/DashboardDaoTest/shouldSelectGlobalDashboard.xml
deleted file mode 100644
index 110e760f9ad..00000000000
--- a/sonar-db/src/test/resources/org/sonar/db/dashboard/DashboardDaoTest/shouldSelectGlobalDashboard.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-<dataset>
-
- <dashboards
- id="1"
- user_id="6"
- name="SQALE"
- description="User SQALE dashboard"
- column_layout="100%"
- shared="[true]"
- />
-
- <dashboards
- id="2"
- user_id="[null]"
- name="SQALE"
- description="Global SQALE dashboard"
- column_layout="100%"
- shared="[true]"
- />
-
-</dataset>
diff --git a/sonar-db/src/test/resources/org/sonar/db/dashboard/WidgetDaoTest/before.xml b/sonar-db/src/test/resources/org/sonar/db/dashboard/WidgetDaoTest/before.xml
deleted file mode 100644
index a942341e3d4..00000000000
--- a/sonar-db/src/test/resources/org/sonar/db/dashboard/WidgetDaoTest/before.xml
+++ /dev/null
@@ -1,18 +0,0 @@
-<dataset>
-
- <widgets id="1" dashboard_id="1" widget_key="polop" name="Polop" description="Palap"
- column_index="1" row_index="1" configured="[true]" created_at="[null]" updated_at="[null]" resource_id="[null]"/>
-
- <widgets id="2" dashboard_id="1" widget_key="false_positive_reviews" name="Polop" description="Palap"
- column_index="1" row_index="2" configured="[true]" created_at="[null]" updated_at="[null]" resource_id="[null]"/>
-
- <widgets id="3" dashboard_id="1" widget_key="my_reviews" name="Polop" description="Palap"
- column_index="1" row_index="3" configured="[true]" created_at="[null]" updated_at="[null]" resource_id="[null]"/>
-
- <widgets id="4" dashboard_id="1" widget_key="reviews_per_developer" name="Polop" description="Palap"
- column_index="1" row_index="4" configured="[true]" created_at="[null]" updated_at="[null]" resource_id="[null]"/>
-
- <widgets id="5" dashboard_id="1" widget_key="unresolved_issues_statuses" name="Polop" description="Palap"
- column_index="1" row_index="5" configured="[true]" created_at="[null]" updated_at="[null]" resource_id="[null]"/>
-
-</dataset>