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:
co-authored by
jacobshandling
parent
7ac24d8752
commit
f167aac60d
+3
-3
@@ -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");
|
||||
|
||||
|
||||
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user