This commit is contained in:
Carlos Monastyrski
2025-11-19 11:48:02 -03:00
parent 37ff9df999
commit 350fcc86c3
2 changed files with 11 additions and 6 deletions
@@ -428,7 +428,10 @@ describe("CertificateProfileService", () => {
service.createProfile({ service.createProfile({
...mockActor, ...mockActor,
projectId: "project-123", projectId: "project-123",
data: validProfileData data: {
...validProfileData,
enrollmentType: EnrollmentType.ACME
}
}) })
).rejects.toThrowError( ).rejects.toThrowError(
new BadRequestError({ new BadRequestError({
@@ -112,7 +112,8 @@ export const CreatePkiSyncForm = ({ destination, onComplete, onCancel, initialDa
}); });
createNotification({ createNotification({
text: `Successfully created ${destinationName} Certificate Sync${certificateIds && certificateIds.length > 0 text: `Successfully created ${destinationName} Certificate Sync${
certificateIds && certificateIds.length > 0
? ` with ${certificateIds.length} certificate(s)` ? ` with ${certificateIds.length} certificate(s)`
: "" : ""
}`, }`,
@@ -212,7 +213,8 @@ export const CreatePkiSyncForm = ({ destination, onComplete, onCancel, initialDa
setSelectedTabIndex((prev) => (isEnabled ? index : prev)); setSelectedTabIndex((prev) => (isEnabled ? index : prev));
}} }}
className={({ selected }) => className={({ selected }) =>
`-mb-[0.14rem] whitespace-nowrap ${index > selectedTabIndex ? "opacity-30" : ""} px-4 py-2 text-sm font-medium outline-hidden disabled:opacity-60 ${selected `-mb-[0.14rem] whitespace-nowrap ${index > selectedTabIndex ? "opacity-30" : ""} px-4 py-2 text-sm font-medium outline-hidden disabled:opacity-60 ${
selected
? "border-b-2 border-mineshaft-300 text-mineshaft-200" ? "border-b-2 border-mineshaft-300 text-mineshaft-200"
: "text-bunker-300" : "text-bunker-300"
}` }`