From e9f7c5bcefddc33aa06ae8a055c7d58afbfa30be Mon Sep 17 00:00:00 2001 From: Angel Garbarino Date: Tue, 28 Nov 2023 10:56:33 -0700 Subject: [PATCH] Fix failing LDAP test with new attribute (#24273) * add in new attribute to fix failing api test * fix replication test failures --- .../addon/templates/components/known-secondaries-card.hbs | 5 ++++- ui/tests/acceptance/enterprise-replication-test.js | 2 +- ui/tests/helpers/openapi/auth-model-attributes.js | 6 ++++++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ui/lib/replication/addon/templates/components/known-secondaries-card.hbs b/ui/lib/replication/addon/templates/components/known-secondaries-card.hbs index b25504e3c4..f190d43ff5 100644 --- a/ui/lib/replication/addon/templates/components/known-secondaries-card.hbs +++ b/ui/lib/replication/addon/templates/components/known-secondaries-card.hbs @@ -18,7 +18,10 @@ {{else}} - + diff --git a/ui/tests/acceptance/enterprise-replication-test.js b/ui/tests/acceptance/enterprise-replication-test.js index ea70e3b976..9a89204d58 100644 --- a/ui/tests/acceptance/enterprise-replication-test.js +++ b/ui/tests/acceptance/enterprise-replication-test.js @@ -123,7 +123,7 @@ module('Acceptance | Enterprise | replication', function (hooks) { await click('[data-test-replication-link="details"]'); assert - .dom(`[data-test-secondaries=row-for-${secondaryName}]`) + .dom(`[data-test-secondaries-node=${secondaryName}]`) .exists('shows a table row the recently added secondary'); // nav to DR diff --git a/ui/tests/helpers/openapi/auth-model-attributes.js b/ui/tests/helpers/openapi/auth-model-attributes.js index 50c8600005..ec455509f7 100644 --- a/ui/tests/helpers/openapi/auth-model-attributes.js +++ b/ui/tests/helpers/openapi/auth-model-attributes.js @@ -822,6 +822,12 @@ const ldap = { fieldGroup: 'default', type: 'number', }, + passwordPolicy: { + editType: 'string', + fieldGroup: 'default', + helpText: 'Password policy to use to rotate the root password', + type: 'string', + }, requestTimeout: { editType: 'ttl', helpText: