mirror of
https://github.com/fleetdm/fleet
synced 2026-05-22 08:28:52 +00:00
Changed subject name placeholder (#37435)
<!-- Add the related story/sub-task/bug number, like Resolves #123, or remove if NA --> **Related issue:** Resolves #36689 Changed certificate template placeholder to: ``` CN=$FLEET_VAR_HOST_END_USER_IDP_USERNAME, O=Your Organization ``` --------- Co-authored-by: jacobshandling <61553566+jacobshandling@users.noreply.github.com>
This commit is contained in:
parent
7ac24d8752
commit
f167aac60d
2 changed files with 5 additions and 5 deletions
|
|
@ -74,7 +74,7 @@ describe("AddCertModal", () => {
|
|||
expect(screen.getByText("Certificate authority (CA)")).toBeInTheDocument();
|
||||
expect(
|
||||
screen.getByPlaceholderText(
|
||||
"/CN=$FLEET_VAR_HOST_END_USER_IDP_USERNAME/O=Your Organization"
|
||||
"CN=$FLEET_VAR_HOST_END_USER_IDP_USERNAME, O=Your Organization"
|
||||
)
|
||||
).toBeInTheDocument();
|
||||
expect(screen.getByText("Create")).toBeInTheDocument();
|
||||
|
|
@ -210,7 +210,7 @@ describe("AddCertModal", () => {
|
|||
await user.type(nameInput, "Valid Name");
|
||||
|
||||
const subjectNameInput = screen.getByPlaceholderText(
|
||||
"/CN=$FLEET_VAR_HOST_END_USER_IDP_USERNAME/O=Your Organization"
|
||||
"CN=$FLEET_VAR_HOST_END_USER_IDP_USERNAME, O=Your Organization"
|
||||
);
|
||||
await user.type(subjectNameInput, "/CN=test/O=Org");
|
||||
|
||||
|
|
@ -273,7 +273,7 @@ describe("AddCertModal", () => {
|
|||
await user.type(nameInput, "Valid Name");
|
||||
|
||||
const subjectNameInput = screen.getByPlaceholderText(
|
||||
"/CN=$FLEET_VAR_HOST_END_USER_IDP_USERNAME/O=Your Organization"
|
||||
"CN=$FLEET_VAR_HOST_END_USER_IDP_USERNAME, O=Your Organization"
|
||||
);
|
||||
await user.type(subjectNameInput, "/CN=test/O=Org");
|
||||
|
||||
|
|
|
|||
|
|
@ -170,9 +170,9 @@ const AddCertModal = ({
|
|||
value={formData.subjectName}
|
||||
onChange={onInputChange}
|
||||
error={formValidation.subjectName?.message}
|
||||
helpText='Separate subject fields by a "/". For example: /CN=john@example.com/O=Acme Inc.'
|
||||
helpText='Separate subject fields by ", ". For example: CN=john@example.com, O=Acme Inc.'
|
||||
parseTarget
|
||||
placeholder="/CN=$FLEET_VAR_HOST_END_USER_IDP_USERNAME/O=Your Organization"
|
||||
placeholder="CN=$FLEET_VAR_HOST_END_USER_IDP_USERNAME, O=Your Organization"
|
||||
/>
|
||||
<div className="modal-cta-wrap">
|
||||
<TooltipWrapper
|
||||
|
|
|
|||
Loading…
Reference in a new issue