converts attribute names (#3134)
* converts attribute names fixes: #3092 * revert changes previosly failing test & unskip fixed one Co-authored-by: Ivan Khomyn <ikhomyn@redhat.com>
This commit is contained in:
parent
e6686bf43f
commit
9d9e774790
2 changed files with 4 additions and 11 deletions
|
@ -79,13 +79,6 @@ describe("Clients SAML tests", () => {
|
|||
it("should doesn't disable signature when cancel", () => {
|
||||
cy.findByTestId("clientSignature").click({ force: true });
|
||||
|
||||
cy.findByTestId("generate").click();
|
||||
masthead.checkNotificationMessage(
|
||||
"New key pair and certificate generated successfully"
|
||||
);
|
||||
modalUtils.confirmModal();
|
||||
|
||||
cy.findByTestId("clientSignature").click({ force: true });
|
||||
modalUtils
|
||||
.checkModalTitle('Disable "Client signature required"')
|
||||
.cancelModal();
|
||||
|
@ -93,8 +86,7 @@ describe("Clients SAML tests", () => {
|
|||
cy.findAllByTestId("certificate").should("have.length", 1);
|
||||
});
|
||||
|
||||
// https://github.com/keycloak/keycloak-admin-ui/issues/3092
|
||||
it.skip("should disable client signature", () => {
|
||||
it("should disable client signature", () => {
|
||||
cy.intercept(
|
||||
"admin/realms/master/clients/*/certificates/saml.signing"
|
||||
).as("load");
|
||||
|
|
|
@ -27,6 +27,7 @@ import { Certificate } from "./Certificate";
|
|||
import { useConfirmDialog } from "../../components/confirm-dialog/ConfirmDialog";
|
||||
import { useAlerts } from "../../components/alert/Alerts";
|
||||
import { SamlImportKeyDialog } from "./SamlImportKeyDialog";
|
||||
import { convertAttributeNameToForm } from "../../util";
|
||||
|
||||
type SamlKeysProps = {
|
||||
clientId: string;
|
||||
|
@ -38,12 +39,12 @@ export type KeyTypes = typeof KEYS[number];
|
|||
|
||||
const KEYS_MAPPING: { [key in KeyTypes]: { [index: string]: string } } = {
|
||||
"saml.signing": {
|
||||
name: "attributes.saml.client.signature",
|
||||
name: convertAttributeNameToForm("attributes.saml.client.signature"),
|
||||
title: "signingKeysConfig",
|
||||
key: "clientSignature",
|
||||
},
|
||||
"saml.encryption": {
|
||||
name: "attributes.saml.encrypt",
|
||||
name: convertAttributeNameToForm("attributes.saml.encrypt"),
|
||||
title: "encryptionKeysConfig",
|
||||
key: "encryptAssertions",
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue