// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Render should disable basic auth password input 1`] = `
<Fragment>
  <h3
    className="page-heading"
  >
    Query Language
  </h3>
  <div
    className="gf-form-group"
  >
    <div
      className="gf-form-inline"
    >
      <div
        className="gf-form"
      >
        <Select
          allowCustomValue={false}
          autoFocus={false}
          backspaceRemovesValue={true}
          className="width-30"
          components={
            Object {
              "Group": [Function],
              "IndicatorsContainer": [Function],
              "MenuList": [Function],
              "Option": [Function],
              "SingleValue": [Function],
            }
          }
          defaultValue={
            Object {
              "description": "The InfluxDB SQL-like query language.  Supported in InfluxDB 1.x",
              "label": "InfluxQL",
              "value": "InfluxQL",
            }
          }
          isClearable={false}
          isDisabled={false}
          isLoading={false}
          isMulti={false}
          isSearchable={true}
          maxMenuHeight={300}
          onChange={[Function]}
          openMenuOnFocus={false}
          options={
            Array [
              Object {
                "description": "The InfluxDB SQL-like query language.  Supported in InfluxDB 1.x",
                "label": "InfluxQL",
                "value": "InfluxQL",
              },
              Object {
                "description": "Advanced data scripting and query language.  Supported in InfluxDB 2.x and 1.8+ (beta)",
                "label": "Flux",
                "value": "Flux",
              },
            ]
          }
          tabSelectsValue={true}
          value={
            Object {
              "description": "The InfluxDB SQL-like query language.  Supported in InfluxDB 1.x",
              "label": "InfluxQL",
              "value": "InfluxQL",
            }
          }
        />
      </div>
    </div>
  </div>
  <DataSourceHttpSettings
    dataSourceConfig={
      Object {
        "access": "proxy",
        "basicAuth": false,
        "basicAuthPassword": "",
        "basicAuthUser": "",
        "database": "",
        "id": 21,
        "isDefault": false,
        "jsonData": Object {
          "httpMode": "POST",
          "timeInterval": "4",
        },
        "name": "InfluxDB-3",
        "orgId": 1,
        "password": "",
        "readOnly": false,
        "secureJsonFields": Object {},
        "type": "influxdb",
        "typeLogoUrl": "",
        "url": "",
        "user": "",
        "version": 1,
        "withCredentials": false,
      }
    }
    defaultUrl="http://localhost:8086"
    onChange={[MockFunction]}
    showAccessOptions={true}
  />
  <div
    className="gf-form-group"
  >
    <div>
      <h3
        className="page-heading"
      >
        InfluxDB Details
      </h3>
    </div>
    <div
      className="grafana-info-box"
    >
      <h5>
        Database Access
      </h5>
      <p>
        Setting the database for this datasource does not deny access to other databases. The InfluxDB query syntax allows switching the database in the query. For example:
        <code>
          SHOW MEASUREMENTS ON _internal
        </code>
         or
        <code>
          SELECT * FROM "_internal".."database" LIMIT 10
        </code>
        <br />
        <br />
        To support data isolation and security, make sure appropriate permissions are configured in InfluxDB.
      </p>
    </div>
    <div
      className="gf-form-inline"
    >
      <div
        className="gf-form"
      >
        <FormLabel
          className="width-10"
        >
          Database
        </FormLabel>
        <div
          className="width-20"
        >
          <Input
            className="width-20"
            onChange={[Function]}
            value=""
          />
        </div>
      </div>
    </div>
    <div
      className="gf-form-inline"
    >
      <div
        className="gf-form"
      >
        <FormLabel
          className="width-10"
        >
          User
        </FormLabel>
        <div
          className="width-10"
        >
          <Input
            className="width-20"
            onChange={[Function]}
            value=""
          />
        </div>
      </div>
    </div>
    <div
      className="gf-form-inline"
    >
      <div
        className="gf-form"
      >
        <SecretFormField
          inputWidth={20}
          label="Password"
          labelWidth={10}
          onChange={[Function]}
          onReset={[Function]}
          value=""
        />
      </div>
    </div>
    <div
      className="gf-form-inline"
    >
      <div
        className="gf-form"
      >
        <FormLabel
          className="width-10"
          tooltip="You can use either GET or POST HTTP method to query your InfluxDB database. The POST
          method allows you to perform heavy requests (with a lots of WHERE clause) while the GET method
          will restrict you and return an error if the query is too large."
        >
          HTTP Method
        </FormLabel>
        <Select
          allowCustomValue={false}
          autoFocus={false}
          backspaceRemovesValue={true}
          className="width-10"
          components={
            Object {
              "Group": [Function],
              "IndicatorsContainer": [Function],
              "MenuList": [Function],
              "Option": [Function],
              "SingleValue": [Function],
            }
          }
          defaultValue="POST"
          isClearable={false}
          isDisabled={false}
          isLoading={false}
          isMulti={false}
          isSearchable={true}
          maxMenuHeight={300}
          onChange={[Function]}
          openMenuOnFocus={false}
          options={
            Array [
              Object {
                "label": "GET",
                "value": "GET",
              },
              Object {
                "label": "POST",
                "value": "POST",
              },
            ]
          }
          tabSelectsValue={true}
          value={
            Object {
              "label": "POST",
              "value": "POST",
            }
          }
        />
      </div>
    </div>
    <div
      className="gf-form-inline"
    >
      <div
        className="gf-form"
      >
        <FormLabel
          className="width-10"
          tooltip="A lower limit for the auto group by time interval. Recommended to be set to write frequency,
				for example 1m if your data is written every minute."
        >
          Min time interval
        </FormLabel>
        <div
          className="width-10"
        >
          <Input
            className="width-10"
            onChange={[Function]}
            placeholder="10s"
            value="4"
          />
        </div>
      </div>
    </div>
    <div
      className="gf-form-inline"
    >
      <InlineField
        label="Max series"
        labelWidth={20}
        tooltip="Limit the number of series/tables that Grafana will process. Lower this number to prevent abuse, and increase it if you have lots of small time series and not all are shown. Defaults to 1000."
      >
        <Input
          className="width-10"
          onChange={[Function]}
          placeholder="1000"
          type="number"
          value=""
        />
      </InlineField>
    </div>
  </div>
</Fragment>
`;

exports[`Render should hide basic auth fields when switch off 1`] = `
<Fragment>
  <h3
    className="page-heading"
  >
    Query Language
  </h3>
  <div
    className="gf-form-group"
  >
    <div
      className="gf-form-inline"
    >
      <div
        className="gf-form"
      >
        <Select
          allowCustomValue={false}
          autoFocus={false}
          backspaceRemovesValue={true}
          className="width-30"
          components={
            Object {
              "Group": [Function],
              "IndicatorsContainer": [Function],
              "MenuList": [Function],
              "Option": [Function],
              "SingleValue": [Function],
            }
          }
          defaultValue={
            Object {
              "description": "The InfluxDB SQL-like query language.  Supported in InfluxDB 1.x",
              "label": "InfluxQL",
              "value": "InfluxQL",
            }
          }
          isClearable={false}
          isDisabled={false}
          isLoading={false}
          isMulti={false}
          isSearchable={true}
          maxMenuHeight={300}
          onChange={[Function]}
          openMenuOnFocus={false}
          options={
            Array [
              Object {
                "description": "The InfluxDB SQL-like query language.  Supported in InfluxDB 1.x",
                "label": "InfluxQL",
                "value": "InfluxQL",
              },
              Object {
                "description": "Advanced data scripting and query language.  Supported in InfluxDB 2.x and 1.8+ (beta)",
                "label": "Flux",
                "value": "Flux",
              },
            ]
          }
          tabSelectsValue={true}
          value={
            Object {
              "description": "The InfluxDB SQL-like query language.  Supported in InfluxDB 1.x",
              "label": "InfluxQL",
              "value": "InfluxQL",
            }
          }
        />
      </div>
    </div>
  </div>
  <DataSourceHttpSettings
    dataSourceConfig={
      Object {
        "access": "proxy",
        "basicAuth": false,
        "basicAuthPassword": "",
        "basicAuthUser": "",
        "database": "",
        "id": 21,
        "isDefault": false,
        "jsonData": Object {
          "httpMode": "POST",
          "timeInterval": "4",
        },
        "name": "InfluxDB-3",
        "orgId": 1,
        "password": "",
        "readOnly": false,
        "secureJsonFields": Object {},
        "type": "influxdb",
        "typeLogoUrl": "",
        "url": "",
        "user": "",
        "version": 1,
        "withCredentials": false,
      }
    }
    defaultUrl="http://localhost:8086"
    onChange={[MockFunction]}
    showAccessOptions={true}
  />
  <div
    className="gf-form-group"
  >
    <div>
      <h3
        className="page-heading"
      >
        InfluxDB Details
      </h3>
    </div>
    <div
      className="grafana-info-box"
    >
      <h5>
        Database Access
      </h5>
      <p>
        Setting the database for this datasource does not deny access to other databases. The InfluxDB query syntax allows switching the database in the query. For example:
        <code>
          SHOW MEASUREMENTS ON _internal
        </code>
         or
        <code>
          SELECT * FROM "_internal".."database" LIMIT 10
        </code>
        <br />
        <br />
        To support data isolation and security, make sure appropriate permissions are configured in InfluxDB.
      </p>
    </div>
    <div
      className="gf-form-inline"
    >
      <div
        className="gf-form"
      >
        <FormLabel
          className="width-10"
        >
          Database
        </FormLabel>
        <div
          className="width-20"
        >
          <Input
            className="width-20"
            onChange={[Function]}
            value=""
          />
        </div>
      </div>
    </div>
    <div
      className="gf-form-inline"
    >
      <div
        className="gf-form"
      >
        <FormLabel
          className="width-10"
        >
          User
        </FormLabel>
        <div
          className="width-10"
        >
          <Input
            className="width-20"
            onChange={[Function]}
            value=""
          />
        </div>
      </div>
    </div>
    <div
      className="gf-form-inline"
    >
      <div
        className="gf-form"
      >
        <SecretFormField
          inputWidth={20}
          label="Password"
          labelWidth={10}
          onChange={[Function]}
          onReset={[Function]}
          value=""
        />
      </div>
    </div>
    <div
      className="gf-form-inline"
    >
      <div
        className="gf-form"
      >
        <FormLabel
          className="width-10"
          tooltip="You can use either GET or POST HTTP method to query your InfluxDB database. The POST
          method allows you to perform heavy requests (with a lots of WHERE clause) while the GET method
          will restrict you and return an error if the query is too large."
        >
          HTTP Method
        </FormLabel>
        <Select
          allowCustomValue={false}
          autoFocus={false}
          backspaceRemovesValue={true}
          className="width-10"
          components={
            Object {
              "Group": [Function],
              "IndicatorsContainer": [Function],
              "MenuList": [Function],
              "Option": [Function],
              "SingleValue": [Function],
            }
          }
          defaultValue="POST"
          isClearable={false}
          isDisabled={false}
          isLoading={false}
          isMulti={false}
          isSearchable={true}
          maxMenuHeight={300}
          onChange={[Function]}
          openMenuOnFocus={false}
          options={
            Array [
              Object {
                "label": "GET",
                "value": "GET",
              },
              Object {
                "label": "POST",
                "value": "POST",
              },
            ]
          }
          tabSelectsValue={true}
          value={
            Object {
              "label": "POST",
              "value": "POST",
            }
          }
        />
      </div>
    </div>
    <div
      className="gf-form-inline"
    >
      <div
        className="gf-form"
      >
        <FormLabel
          className="width-10"
          tooltip="A lower limit for the auto group by time interval. Recommended to be set to write frequency,
				for example 1m if your data is written every minute."
        >
          Min time interval
        </FormLabel>
        <div
          className="width-10"
        >
          <Input
            className="width-10"
            onChange={[Function]}
            placeholder="10s"
            value="4"
          />
        </div>
      </div>
    </div>
    <div
      className="gf-form-inline"
    >
      <InlineField
        label="Max series"
        labelWidth={20}
        tooltip="Limit the number of series/tables that Grafana will process. Lower this number to prevent abuse, and increase it if you have lots of small time series and not all are shown. Defaults to 1000."
      >
        <Input
          className="width-10"
          onChange={[Function]}
          placeholder="1000"
          type="number"
          value=""
        />
      </InlineField>
    </div>
  </div>
</Fragment>
`;

exports[`Render should hide white listed cookies input when browser access chosen 1`] = `
<Fragment>
  <h3
    className="page-heading"
  >
    Query Language
  </h3>
  <div
    className="gf-form-group"
  >
    <div
      className="gf-form-inline"
    >
      <div
        className="gf-form"
      >
        <Select
          allowCustomValue={false}
          autoFocus={false}
          backspaceRemovesValue={true}
          className="width-30"
          components={
            Object {
              "Group": [Function],
              "IndicatorsContainer": [Function],
              "MenuList": [Function],
              "Option": [Function],
              "SingleValue": [Function],
            }
          }
          defaultValue={
            Object {
              "description": "The InfluxDB SQL-like query language.  Supported in InfluxDB 1.x",
              "label": "InfluxQL",
              "value": "InfluxQL",
            }
          }
          isClearable={false}
          isDisabled={false}
          isLoading={false}
          isMulti={false}
          isSearchable={true}
          maxMenuHeight={300}
          onChange={[Function]}
          openMenuOnFocus={false}
          options={
            Array [
              Object {
                "description": "The InfluxDB SQL-like query language.  Supported in InfluxDB 1.x",
                "label": "InfluxQL",
                "value": "InfluxQL",
              },
              Object {
                "description": "Advanced data scripting and query language.  Supported in InfluxDB 2.x and 1.8+ (beta)",
                "label": "Flux",
                "value": "Flux",
              },
            ]
          }
          tabSelectsValue={true}
          value={
            Object {
              "description": "The InfluxDB SQL-like query language.  Supported in InfluxDB 1.x",
              "label": "InfluxQL",
              "value": "InfluxQL",
            }
          }
        />
      </div>
    </div>
  </div>
  <DataSourceHttpSettings
    dataSourceConfig={
      Object {
        "access": "proxy",
        "basicAuth": false,
        "basicAuthPassword": "",
        "basicAuthUser": "",
        "database": "",
        "id": 21,
        "isDefault": false,
        "jsonData": Object {
          "httpMode": "POST",
          "timeInterval": "4",
        },
        "name": "InfluxDB-3",
        "orgId": 1,
        "password": "",
        "readOnly": false,
        "secureJsonFields": Object {},
        "type": "influxdb",
        "typeLogoUrl": "",
        "url": "",
        "user": "",
        "version": 1,
        "withCredentials": false,
      }
    }
    defaultUrl="http://localhost:8086"
    onChange={[MockFunction]}
    showAccessOptions={true}
  />
  <div
    className="gf-form-group"
  >
    <div>
      <h3
        className="page-heading"
      >
        InfluxDB Details
      </h3>
    </div>
    <div
      className="grafana-info-box"
    >
      <h5>
        Database Access
      </h5>
      <p>
        Setting the database for this datasource does not deny access to other databases. The InfluxDB query syntax allows switching the database in the query. For example:
        <code>
          SHOW MEASUREMENTS ON _internal
        </code>
         or
        <code>
          SELECT * FROM "_internal".."database" LIMIT 10
        </code>
        <br />
        <br />
        To support data isolation and security, make sure appropriate permissions are configured in InfluxDB.
      </p>
    </div>
    <div
      className="gf-form-inline"
    >
      <div
        className="gf-form"
      >
        <FormLabel
          className="width-10"
        >
          Database
        </FormLabel>
        <div
          className="width-20"
        >
          <Input
            className="width-20"
            onChange={[Function]}
            value=""
          />
        </div>
      </div>
    </div>
    <div
      className="gf-form-inline"
    >
      <div
        className="gf-form"
      >
        <FormLabel
          className="width-10"
        >
          User
        </FormLabel>
        <div
          className="width-10"
        >
          <Input
            className="width-20"
            onChange={[Function]}
            value=""
          />
        </div>
      </div>
    </div>
    <div
      className="gf-form-inline"
    >
      <div
        className="gf-form"
      >
        <SecretFormField
          inputWidth={20}
          label="Password"
          labelWidth={10}
          onChange={[Function]}
          onReset={[Function]}
          value=""
        />
      </div>
    </div>
    <div
      className="gf-form-inline"
    >
      <div
        className="gf-form"
      >
        <FormLabel
          className="width-10"
          tooltip="You can use either GET or POST HTTP method to query your InfluxDB database. The POST
          method allows you to perform heavy requests (with a lots of WHERE clause) while the GET method
          will restrict you and return an error if the query is too large."
        >
          HTTP Method
        </FormLabel>
        <Select
          allowCustomValue={false}
          autoFocus={false}
          backspaceRemovesValue={true}
          className="width-10"
          components={
            Object {
              "Group": [Function],
              "IndicatorsContainer": [Function],
              "MenuList": [Function],
              "Option": [Function],
              "SingleValue": [Function],
            }
          }
          defaultValue="POST"
          isClearable={false}
          isDisabled={false}
          isLoading={false}
          isMulti={false}
          isSearchable={true}
          maxMenuHeight={300}
          onChange={[Function]}
          openMenuOnFocus={false}
          options={
            Array [
              Object {
                "label": "GET",
                "value": "GET",
              },
              Object {
                "label": "POST",
                "value": "POST",
              },
            ]
          }
          tabSelectsValue={true}
          value={
            Object {
              "label": "POST",
              "value": "POST",
            }
          }
        />
      </div>
    </div>
    <div
      className="gf-form-inline"
    >
      <div
        className="gf-form"
      >
        <FormLabel
          className="width-10"
          tooltip="A lower limit for the auto group by time interval. Recommended to be set to write frequency,
				for example 1m if your data is written every minute."
        >
          Min time interval
        </FormLabel>
        <div
          className="width-10"
        >
          <Input
            className="width-10"
            onChange={[Function]}
            placeholder="10s"
            value="4"
          />
        </div>
      </div>
    </div>
    <div
      className="gf-form-inline"
    >
      <InlineField
        label="Max series"
        labelWidth={20}
        tooltip="Limit the number of series/tables that Grafana will process. Lower this number to prevent abuse, and increase it if you have lots of small time series and not all are shown. Defaults to 1000."
      >
        <Input
          className="width-10"
          onChange={[Function]}
          placeholder="1000"
          type="number"
          value=""
        />
      </InlineField>
    </div>
  </div>
</Fragment>
`;

exports[`Render should render component 1`] = `
<Fragment>
  <h3
    className="page-heading"
  >
    Query Language
  </h3>
  <div
    className="gf-form-group"
  >
    <div
      className="gf-form-inline"
    >
      <div
        className="gf-form"
      >
        <Select
          allowCustomValue={false}
          autoFocus={false}
          backspaceRemovesValue={true}
          className="width-30"
          components={
            Object {
              "Group": [Function],
              "IndicatorsContainer": [Function],
              "MenuList": [Function],
              "Option": [Function],
              "SingleValue": [Function],
            }
          }
          defaultValue={
            Object {
              "description": "The InfluxDB SQL-like query language.  Supported in InfluxDB 1.x",
              "label": "InfluxQL",
              "value": "InfluxQL",
            }
          }
          isClearable={false}
          isDisabled={false}
          isLoading={false}
          isMulti={false}
          isSearchable={true}
          maxMenuHeight={300}
          onChange={[Function]}
          openMenuOnFocus={false}
          options={
            Array [
              Object {
                "description": "The InfluxDB SQL-like query language.  Supported in InfluxDB 1.x",
                "label": "InfluxQL",
                "value": "InfluxQL",
              },
              Object {
                "description": "Advanced data scripting and query language.  Supported in InfluxDB 2.x and 1.8+ (beta)",
                "label": "Flux",
                "value": "Flux",
              },
            ]
          }
          tabSelectsValue={true}
          value={
            Object {
              "description": "The InfluxDB SQL-like query language.  Supported in InfluxDB 1.x",
              "label": "InfluxQL",
              "value": "InfluxQL",
            }
          }
        />
      </div>
    </div>
  </div>
  <DataSourceHttpSettings
    dataSourceConfig={
      Object {
        "access": "proxy",
        "basicAuth": false,
        "basicAuthPassword": "",
        "basicAuthUser": "",
        "database": "",
        "id": 21,
        "isDefault": false,
        "jsonData": Object {
          "httpMode": "POST",
          "timeInterval": "4",
        },
        "name": "InfluxDB-3",
        "orgId": 1,
        "password": "",
        "readOnly": false,
        "secureJsonFields": Object {},
        "type": "influxdb",
        "typeLogoUrl": "",
        "url": "",
        "user": "",
        "version": 1,
        "withCredentials": false,
      }
    }
    defaultUrl="http://localhost:8086"
    onChange={[MockFunction]}
    showAccessOptions={true}
  />
  <div
    className="gf-form-group"
  >
    <div>
      <h3
        className="page-heading"
      >
        InfluxDB Details
      </h3>
    </div>
    <div
      className="grafana-info-box"
    >
      <h5>
        Database Access
      </h5>
      <p>
        Setting the database for this datasource does not deny access to other databases. The InfluxDB query syntax allows switching the database in the query. For example:
        <code>
          SHOW MEASUREMENTS ON _internal
        </code>
         or
        <code>
          SELECT * FROM "_internal".."database" LIMIT 10
        </code>
        <br />
        <br />
        To support data isolation and security, make sure appropriate permissions are configured in InfluxDB.
      </p>
    </div>
    <div
      className="gf-form-inline"
    >
      <div
        className="gf-form"
      >
        <FormLabel
          className="width-10"
        >
          Database
        </FormLabel>
        <div
          className="width-20"
        >
          <Input
            className="width-20"
            onChange={[Function]}
            value=""
          />
        </div>
      </div>
    </div>
    <div
      className="gf-form-inline"
    >
      <div
        className="gf-form"
      >
        <FormLabel
          className="width-10"
        >
          User
        </FormLabel>
        <div
          className="width-10"
        >
          <Input
            className="width-20"
            onChange={[Function]}
            value=""
          />
        </div>
      </div>
    </div>
    <div
      className="gf-form-inline"
    >
      <div
        className="gf-form"
      >
        <SecretFormField
          inputWidth={20}
          label="Password"
          labelWidth={10}
          onChange={[Function]}
          onReset={[Function]}
          value=""
        />
      </div>
    </div>
    <div
      className="gf-form-inline"
    >
      <div
        className="gf-form"
      >
        <FormLabel
          className="width-10"
          tooltip="You can use either GET or POST HTTP method to query your InfluxDB database. The POST
          method allows you to perform heavy requests (with a lots of WHERE clause) while the GET method
          will restrict you and return an error if the query is too large."
        >
          HTTP Method
        </FormLabel>
        <Select
          allowCustomValue={false}
          autoFocus={false}
          backspaceRemovesValue={true}
          className="width-10"
          components={
            Object {
              "Group": [Function],
              "IndicatorsContainer": [Function],
              "MenuList": [Function],
              "Option": [Function],
              "SingleValue": [Function],
            }
          }
          defaultValue="POST"
          isClearable={false}
          isDisabled={false}
          isLoading={false}
          isMulti={false}
          isSearchable={true}
          maxMenuHeight={300}
          onChange={[Function]}
          openMenuOnFocus={false}
          options={
            Array [
              Object {
                "label": "GET",
                "value": "GET",
              },
              Object {
                "label": "POST",
                "value": "POST",
              },
            ]
          }
          tabSelectsValue={true}
          value={
            Object {
              "label": "POST",
              "value": "POST",
            }
          }
        />
      </div>
    </div>
    <div
      className="gf-form-inline"
    >
      <div
        className="gf-form"
      >
        <FormLabel
          className="width-10"
          tooltip="A lower limit for the auto group by time interval. Recommended to be set to write frequency,
				for example 1m if your data is written every minute."
        >
          Min time interval
        </FormLabel>
        <div
          className="width-10"
        >
          <Input
            className="width-10"
            onChange={[Function]}
            placeholder="10s"
            value="4"
          />
        </div>
      </div>
    </div>
    <div
      className="gf-form-inline"
    >
      <InlineField
        label="Max series"
        labelWidth={20}
        tooltip="Limit the number of series/tables that Grafana will process. Lower this number to prevent abuse, and increase it if you have lots of small time series and not all are shown. Defaults to 1000."
      >
        <Input
          className="width-10"
          onChange={[Function]}
          placeholder="1000"
          type="number"
          value=""
        />
      </InlineField>
    </div>
  </div>
</Fragment>
`;
