DataSourcesListPage.test.tsx.snap 4.4 KB

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