|
|
@@ -0,0 +1,164 @@
|
|
|
+// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
+
|
|
|
+exports[`Render should render action bar and datasources 1`] = `
|
|
|
+<div>
|
|
|
+ <PageHeader
|
|
|
+ model={Object {}}
|
|
|
+ />
|
|
|
+ <div
|
|
|
+ className="page-container page-body"
|
|
|
+ >
|
|
|
+ <Connect(DataSourcesActionBar)
|
|
|
+ key="action-bar"
|
|
|
+ />
|
|
|
+ <DataSourcesList
|
|
|
+ dataSources={
|
|
|
+ Array [
|
|
|
+ Object {
|
|
|
+ "access": "",
|
|
|
+ "basicAuth": false,
|
|
|
+ "database": "database-0",
|
|
|
+ "id": 0,
|
|
|
+ "isDefault": false,
|
|
|
+ "jsonData": Object {
|
|
|
+ "authType": "credentials",
|
|
|
+ "defaultRegion": "eu-west-2",
|
|
|
+ },
|
|
|
+ "name": "dataSource-0",
|
|
|
+ "orgId": 1,
|
|
|
+ "password": "",
|
|
|
+ "readOnly": false,
|
|
|
+ "type": "cloudwatch",
|
|
|
+ "typeLogoUrl": "public/app/plugins/datasource/cloudwatch/img/amazon-web-services.png",
|
|
|
+ "url": "",
|
|
|
+ "user": "",
|
|
|
+ },
|
|
|
+ Object {
|
|
|
+ "access": "",
|
|
|
+ "basicAuth": false,
|
|
|
+ "database": "database-1",
|
|
|
+ "id": 1,
|
|
|
+ "isDefault": false,
|
|
|
+ "jsonData": Object {
|
|
|
+ "authType": "credentials",
|
|
|
+ "defaultRegion": "eu-west-2",
|
|
|
+ },
|
|
|
+ "name": "dataSource-1",
|
|
|
+ "orgId": 1,
|
|
|
+ "password": "",
|
|
|
+ "readOnly": false,
|
|
|
+ "type": "cloudwatch",
|
|
|
+ "typeLogoUrl": "public/app/plugins/datasource/cloudwatch/img/amazon-web-services.png",
|
|
|
+ "url": "",
|
|
|
+ "user": "",
|
|
|
+ },
|
|
|
+ Object {
|
|
|
+ "access": "",
|
|
|
+ "basicAuth": false,
|
|
|
+ "database": "database-2",
|
|
|
+ "id": 2,
|
|
|
+ "isDefault": false,
|
|
|
+ "jsonData": Object {
|
|
|
+ "authType": "credentials",
|
|
|
+ "defaultRegion": "eu-west-2",
|
|
|
+ },
|
|
|
+ "name": "dataSource-2",
|
|
|
+ "orgId": 1,
|
|
|
+ "password": "",
|
|
|
+ "readOnly": false,
|
|
|
+ "type": "cloudwatch",
|
|
|
+ "typeLogoUrl": "public/app/plugins/datasource/cloudwatch/img/amazon-web-services.png",
|
|
|
+ "url": "",
|
|
|
+ "user": "",
|
|
|
+ },
|
|
|
+ Object {
|
|
|
+ "access": "",
|
|
|
+ "basicAuth": false,
|
|
|
+ "database": "database-3",
|
|
|
+ "id": 3,
|
|
|
+ "isDefault": false,
|
|
|
+ "jsonData": Object {
|
|
|
+ "authType": "credentials",
|
|
|
+ "defaultRegion": "eu-west-2",
|
|
|
+ },
|
|
|
+ "name": "dataSource-3",
|
|
|
+ "orgId": 1,
|
|
|
+ "password": "",
|
|
|
+ "readOnly": false,
|
|
|
+ "type": "cloudwatch",
|
|
|
+ "typeLogoUrl": "public/app/plugins/datasource/cloudwatch/img/amazon-web-services.png",
|
|
|
+ "url": "",
|
|
|
+ "user": "",
|
|
|
+ },
|
|
|
+ Object {
|
|
|
+ "access": "",
|
|
|
+ "basicAuth": false,
|
|
|
+ "database": "database-4",
|
|
|
+ "id": 4,
|
|
|
+ "isDefault": false,
|
|
|
+ "jsonData": Object {
|
|
|
+ "authType": "credentials",
|
|
|
+ "defaultRegion": "eu-west-2",
|
|
|
+ },
|
|
|
+ "name": "dataSource-4",
|
|
|
+ "orgId": 1,
|
|
|
+ "password": "",
|
|
|
+ "readOnly": false,
|
|
|
+ "type": "cloudwatch",
|
|
|
+ "typeLogoUrl": "public/app/plugins/datasource/cloudwatch/img/amazon-web-services.png",
|
|
|
+ "url": "",
|
|
|
+ "user": "",
|
|
|
+ },
|
|
|
+ Object {
|
|
|
+ "access": "",
|
|
|
+ "basicAuth": false,
|
|
|
+ "database": "database-5",
|
|
|
+ "id": 5,
|
|
|
+ "isDefault": false,
|
|
|
+ "jsonData": Object {
|
|
|
+ "authType": "credentials",
|
|
|
+ "defaultRegion": "eu-west-2",
|
|
|
+ },
|
|
|
+ "name": "dataSource-5",
|
|
|
+ "orgId": 1,
|
|
|
+ "password": "",
|
|
|
+ "readOnly": false,
|
|
|
+ "type": "cloudwatch",
|
|
|
+ "typeLogoUrl": "public/app/plugins/datasource/cloudwatch/img/amazon-web-services.png",
|
|
|
+ "url": "",
|
|
|
+ "user": "",
|
|
|
+ },
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ key="list"
|
|
|
+ layoutMode="grid"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+</div>
|
|
|
+`;
|
|
|
+
|
|
|
+exports[`Render should render component 1`] = `
|
|
|
+<div>
|
|
|
+ <PageHeader
|
|
|
+ model={Object {}}
|
|
|
+ />
|
|
|
+ <div
|
|
|
+ className="page-container page-body"
|
|
|
+ >
|
|
|
+ <EmptyListCTA
|
|
|
+ model={
|
|
|
+ Object {
|
|
|
+ "buttonIcon": "gicon gicon-add-datasources",
|
|
|
+ "buttonLink": "datasources/new",
|
|
|
+ "buttonTitle": "Add data source",
|
|
|
+ "proTip": "You can also define data sources through configuration files.",
|
|
|
+ "proTipLink": "http://docs.grafana.org/administration/provisioning/#datasources?utm_source=grafana_ds_list",
|
|
|
+ "proTipLinkTitle": "Learn more",
|
|
|
+ "proTipTarget": "_blank",
|
|
|
+ "title": "There are no data sources defined yet",
|
|
|
+ }
|
|
|
+ }
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+</div>
|
|
|
+`;
|