ApiKeysAddedModal.test.tsx.snap 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`Render should render component 1`] = `
  3. <Modal
  4. isOpen={true}
  5. onClickBackdrop={[MockFunction]}
  6. onDismiss={[MockFunction]}
  7. title="API Key Created"
  8. >
  9. <Field
  10. label="Key"
  11. >
  12. <Input
  13. addonAfter={
  14. <ClipboardButton
  15. getText={[Function]}
  16. onClipboardCopy={[Function]}
  17. variant="primary"
  18. >
  19. <Icon
  20. name="copy"
  21. />
  22. Copy
  23. </ClipboardButton>
  24. }
  25. id="Key"
  26. readOnly={true}
  27. value="api key test"
  28. />
  29. </Field>
  30. <Alert
  31. severity="info"
  32. title="You will only be able to view this key here once!"
  33. >
  34. It is not stored in this form, so be sure to copy it now.
  35. </Alert>
  36. <p
  37. className="text-muted"
  38. >
  39. You can authenticate a request using the Authorization HTTP header, example:
  40. </p>
  41. <pre
  42. className="css-omfua5"
  43. >
  44. curl -H "Authorization: Bearer
  45. api key test
  46. "
  47. test/path
  48. /api/dashboards/home
  49. </pre>
  50. </Modal>
  51. `;