DataSourcesListPage.test.tsx.snap 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`Render should render action bar and datasources 1`] = `
  3. <Page
  4. navModel={
  5. Object {
  6. "main": Object {
  7. "text": "Configuration",
  8. },
  9. "node": Object {
  10. "text": "Data Sources",
  11. },
  12. }
  13. }
  14. >
  15. <PageContents
  16. isLoading={false}
  17. >
  18. <OrgActionBar
  19. key="action-bar"
  20. layoutMode="grid"
  21. linkButton={
  22. Object {
  23. "href": "datasources/new",
  24. "title": "Add data source",
  25. }
  26. }
  27. onSetLayoutMode={[Function]}
  28. searchQuery=""
  29. setSearchQuery={[Function]}
  30. />
  31. <DataSourcesList
  32. dataSources={
  33. Array [
  34. Object {
  35. "access": "",
  36. "basicAuth": false,
  37. "database": "database-0",
  38. "id": 0,
  39. "isDefault": false,
  40. "jsonData": Object {
  41. "authType": "credentials",
  42. "defaultRegion": "eu-west-2",
  43. },
  44. "name": "dataSource-0",
  45. "orgId": 1,
  46. "password": "",
  47. "readOnly": false,
  48. "type": "cloudwatch",
  49. "typeLogoUrl": "public/app/plugins/datasource/cloudwatch/img/amazon-web-services.png",
  50. "url": "",
  51. "user": "",
  52. },
  53. Object {
  54. "access": "",
  55. "basicAuth": false,
  56. "database": "database-1",
  57. "id": 1,
  58. "isDefault": false,
  59. "jsonData": Object {
  60. "authType": "credentials",
  61. "defaultRegion": "eu-west-2",
  62. },
  63. "name": "dataSource-1",
  64. "orgId": 1,
  65. "password": "",
  66. "readOnly": false,
  67. "type": "cloudwatch",
  68. "typeLogoUrl": "public/app/plugins/datasource/cloudwatch/img/amazon-web-services.png",
  69. "url": "",
  70. "user": "",
  71. },
  72. Object {
  73. "access": "",
  74. "basicAuth": false,
  75. "database": "database-2",
  76. "id": 2,
  77. "isDefault": false,
  78. "jsonData": Object {
  79. "authType": "credentials",
  80. "defaultRegion": "eu-west-2",
  81. },
  82. "name": "dataSource-2",
  83. "orgId": 1,
  84. "password": "",
  85. "readOnly": false,
  86. "type": "cloudwatch",
  87. "typeLogoUrl": "public/app/plugins/datasource/cloudwatch/img/amazon-web-services.png",
  88. "url": "",
  89. "user": "",
  90. },
  91. Object {
  92. "access": "",
  93. "basicAuth": false,
  94. "database": "database-3",
  95. "id": 3,
  96. "isDefault": false,
  97. "jsonData": Object {
  98. "authType": "credentials",
  99. "defaultRegion": "eu-west-2",
  100. },
  101. "name": "dataSource-3",
  102. "orgId": 1,
  103. "password": "",
  104. "readOnly": false,
  105. "type": "cloudwatch",
  106. "typeLogoUrl": "public/app/plugins/datasource/cloudwatch/img/amazon-web-services.png",
  107. "url": "",
  108. "user": "",
  109. },
  110. Object {
  111. "access": "",
  112. "basicAuth": false,
  113. "database": "database-4",
  114. "id": 4,
  115. "isDefault": false,
  116. "jsonData": Object {
  117. "authType": "credentials",
  118. "defaultRegion": "eu-west-2",
  119. },
  120. "name": "dataSource-4",
  121. "orgId": 1,
  122. "password": "",
  123. "readOnly": false,
  124. "type": "cloudwatch",
  125. "typeLogoUrl": "public/app/plugins/datasource/cloudwatch/img/amazon-web-services.png",
  126. "url": "",
  127. "user": "",
  128. },
  129. Object {
  130. "access": "",
  131. "basicAuth": false,
  132. "database": "database-5",
  133. "id": 5,
  134. "isDefault": false,
  135. "jsonData": Object {
  136. "authType": "credentials",
  137. "defaultRegion": "eu-west-2",
  138. },
  139. "name": "dataSource-5",
  140. "orgId": 1,
  141. "password": "",
  142. "readOnly": false,
  143. "type": "cloudwatch",
  144. "typeLogoUrl": "public/app/plugins/datasource/cloudwatch/img/amazon-web-services.png",
  145. "url": "",
  146. "user": "",
  147. },
  148. ]
  149. }
  150. key="list"
  151. layoutMode="grid"
  152. />
  153. </PageContents>
  154. </Page>
  155. `;
  156. exports[`Render should render component 1`] = `
  157. <Page
  158. navModel={
  159. Object {
  160. "main": Object {
  161. "text": "Configuration",
  162. },
  163. "node": Object {
  164. "text": "Data Sources",
  165. },
  166. }
  167. }
  168. >
  169. <PageContents
  170. isLoading={true}
  171. />
  172. </Page>
  173. `;