123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215 |
- // Jest Snapshot v1, https://goo.gl/fbAQLP
- exports[`AdminSettings render() renders 1`] = `
- <SideEffect(DocumentTitle)
- title="Sentry"
- >
- <div>
- <h3>
- Settings
- </h3>
- <ApiForm
- apiEndpoint="/internal/options/"
- apiMethod="PUT"
- cancelLabel="Cancel"
- className="form-stacked"
- errorMessage="Unable to save your changes. Please ensure all fields are valid and try again."
- footerClass="form-actions align-right"
- hideErrors={false}
- initialData={
- Object {
- "api.rate-limit.org-create": 25,
- "auth.allow-registration": true,
- "auth.ip-rate-limit": 25,
- "auth.user-rate-limit": 25,
- "beacon.anonymous": "",
- "system.admin-email": "foo@example.com",
- "system.rate-limit": 25,
- "system.security-email": "foo@example.com",
- "system.support-email": "foo@example.com",
- "system.url-prefix": "https://sentry.example.com",
- }
- }
- requireChanges={true}
- resetOnError={false}
- submitDisabled={false}
- submitErrorMessage="There was an error saving your changes."
- submitLabel="Save Changes"
- submitLoadingMessage="Saving changes.."
- >
- <h4>
- General
- </h4>
- <TextField
- allowEmpty={true}
- default=""
- defaultValue="http://localhost"
- disabled={true}
- disabledReason="This setting is defined in config.yml and may not be changed via the web UI."
- help="The root web address which is used to communicate with the Sentry backend."
- hideErrorMessage={false}
- isSet={true}
- key="system.url-prefix"
- label="Root URL"
- name="system.url-prefix"
- placeholder="https://sentry.example.com"
- required={false}
- />
- <EmailField
- allowEmpty={false}
- component={[Function]}
- default={null}
- defaultValue="foo@example.com"
- disabled={true}
- disabledReason="This setting is defined in config.yml and may not be changed via the web UI."
- help="The technical contact for this Sentry installation."
- hideErrorMessage={false}
- isSet={true}
- key="system.admin-email"
- label="Admin Email"
- name="system.admin-email"
- placeholder="admin@example.com"
- required={true}
- />
- <EmailField
- allowEmpty={false}
- component={[Function]}
- default={null}
- defaultValue="foo@example.com"
- disabled={true}
- disabledReason="This setting is defined in config.yml and may not be changed via the web UI."
- help="The support contact for this Sentry installation."
- hideErrorMessage={false}
- isSet={true}
- key="system.support-email"
- label="Support Email"
- name="system.support-email"
- placeholder="support@example.com"
- required={true}
- />
- <EmailField
- allowEmpty={false}
- component={[Function]}
- default={null}
- defaultValue="foo@example.com"
- disabled={true}
- disabledReason="This setting is defined in config.yml and may not be changed via the web UI."
- help="The security contact for this Sentry installation."
- hideErrorMessage={false}
- isSet={true}
- key="system.security-email"
- label="Security Email"
- name="system.security-email"
- placeholder="security@example.com"
- required={true}
- />
- <TextField
- allowEmpty={false}
- default={0}
- disabled={true}
- disabledReason="This setting is defined in config.yml and may not be changed via the web UI."
- help="The maximum number of events the system should accept per minute. A value of 0 will disable the default rate limit."
- hideErrorMessage={false}
- isSet={true}
- key="system.rate-limit"
- label="Rate Limit"
- name="system.rate-limit"
- placeholder="e.g. 500"
- required={true}
- />
- <h4>
- Security & Abuse
- </h4>
- <BooleanField
- allowEmpty={false}
- component={[Function]}
- default={false}
- defaultValue={false}
- disabled={true}
- disabledReason="This setting is defined in config.yml and may not be changed via the web UI."
- help="Allow anyone to create an account and access this Sentry installation."
- hideErrorMessage={false}
- isSet={true}
- key="auth.allow-registration"
- label="Allow Registration"
- name="auth.allow-registration"
- required={true}
- />
- <TextField
- allowEmpty={false}
- default={0}
- disabled={true}
- disabledReason="This setting is defined in config.yml and may not be changed via the web UI."
- help="The maximum number of times an authentication attempt may be made by a single IP address in a 60 second window."
- hideErrorMessage={false}
- isSet={true}
- key="auth.ip-rate-limit"
- label="IP Rate Limit"
- name="auth.ip-rate-limit"
- placeholder="e.g. 10"
- required={true}
- />
- <TextField
- allowEmpty={false}
- default={0}
- disabled={true}
- disabledReason="This setting is defined in config.yml and may not be changed via the web UI."
- help="The maximum number of times an authentication attempt may be made against a single account in a 60 second window."
- hideErrorMessage={false}
- isSet={true}
- key="auth.user-rate-limit"
- label="User Rate Limit"
- name="auth.user-rate-limit"
- placeholder="e.g. 10"
- required={true}
- />
- <TextField
- allowEmpty={false}
- default={0}
- disabled={true}
- disabledReason="This setting is defined in config.yml and may not be changed via the web UI."
- help="The maximum number of organizations which may be created by a single account in a one hour window."
- hideErrorMessage={false}
- isSet={true}
- key="api.rate-limit.org-create"
- label="Organization Creation Rate Limit"
- name="api.rate-limit.org-create"
- placeholder="e.g. 5"
- required={true}
- />
- <h4>
- Beacon
- </h4>
- <RadioBooleanField
- component={[Function]}
- disabled={false}
- help={
- <span>
- <span>
- If enabled, any stats reported to sentry.io will exclude identifying information (such as your administrative email address). By anonymizing your installation the Sentry team will be unable to contact you about security updates. For more information on what data is sent to Sentry, see the
- </span>
- <a
- href="https://docs.sentry.io/server/beacon/"
- >
- <span>
- documentation
- </span>
- </a>
- <span>
- .
- </span>
- </span>
- }
- hideErrorMessage={false}
- key="beacon.anonymous"
- label="Usage Statistics"
- name="beacon.anonymous"
- noLabel="Send my contact information along with usage statistics"
- required={false}
- yesFirst={false}
- yesLabel="Please keep my usage information anonymous"
- />
- </ApiForm>
- </div>
- </SideEffect(DocumentTitle)>
- `;
|