| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175 |
- // Jest Snapshot v1, https://goo.gl/fbAQLP
- exports[`Render should render action bar and datasources 1`] = `
- <Page
- navModel={
- Object {
- "main": Object {
- "text": "Configuration",
- },
- "node": Object {
- "text": "Data Sources",
- },
- }
- }
- >
- <PageContents
- isLoading={false}
- >
- <OrgActionBar
- key="action-bar"
- layoutMode="grid"
- linkButton={
- Object {
- "href": "datasources/new",
- "title": "Add data source",
- }
- }
- onSetLayoutMode={[Function]}
- searchQuery=""
- setSearchQuery={[Function]}
- />
- <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"
- />
- </PageContents>
- </Page>
- `;
- exports[`Render should render component 1`] = `
- <Page
- navModel={
- Object {
- "main": Object {
- "text": "Configuration",
- },
- "node": Object {
- "text": "Data Sources",
- },
- }
- }
- >
- <PageContents
- isLoading={true}
- />
- </Page>
- `;
|