open-vault/ui/tests/helpers/pki/pki-role-form.js
claire bontempo db1d3bc519
ui: add capabilities to pki key model (#18412)
* add capabilities to pki key model

* move key list from route into component

* rename test file

* rename test file

* add tests

* pass capabilities directly to key list componente

* add test for key list component

* rename test files

* remove href assertion
2022-12-16 22:13:59 +00:00

30 lines
1.4 KiB
JavaScript

export const PKI_BASE_URL = `/vault/cluster/secrets/backend/pki/roles`;
export const SELECTORS = {
roleName: '[data-test-input="name"]',
issuerRef: '[data-test-input="issuerRef"]',
customTtl: '[data-test-field="customTtl"]',
backdateValidity: '[data-test-ttl-value="Backdate validity"]',
maxTtl: '[data-test-toggle-label="Max TTL"]',
generateLease: '[data-test-field="generateLease"]',
noStore: '[data-test-field="noStore"]',
addBasicConstraints: '[data-test-input="addBasicConstraints"]',
domainHandling: '[data-test-toggle-group="Domain handling"]',
keyParams: '[data-test-toggle-group="Key parameters"]',
keyType: '[data-test-input="keyType"]',
keyBits: '[data-test-input="keyBits"]',
signatureBits: '[data-test-input="signatureBits"]',
keyUsage: '[data-test-toggle-group="Key usage"]',
extKeyUsageOids: '[data-test-input="extKeyUsageOids"]',
digitalSignature: '[data-test-checkbox="DigitalSignature"]',
keyAgreement: '[data-test-checkbox="KeyAgreement"]',
keyEncipherment: '[data-test-checkbox="KeyEncipherment"]',
any: '[data-test-checkbox="Any"]',
serverAuth: '[data-test-checkbox="ServerAuth"]',
policyIdentifiers: '[data-test-toggle-group="Policy identifiers"]',
san: '[data-test-toggle-group="Subject Alternative Name (SAN) Options"]',
additionalSubjectFields: '[data-test-toggle-group="Additional subject fields"]',
roleCreateButton: '[data-test-pki-role-save]',
roleCancelButton: '[data-test-pki-role-cancel]',
};