-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UI: Fix LDAP Mirage Handler #28432
UI: Fix LDAP Mirage Handler #28432
Conversation
CI Results: |
c0deafb
to
4e6ef4f
Compare
Build Results: |
@@ -27,7 +27,7 @@ export default class LdapLibraryDetailsAccountsPageComponent extends Component<A | |||
@tracked checkOutTtl: string | null = null; | |||
|
|||
get cliCommand() { | |||
return `vault lease renew ad/library/${this.args.library.name}/check-out/:lease_id`; | |||
return `vault lease renew ${this.args.library.backend}/library/${this.args.library.name}/check-out/:lease_id`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!!
import { Model } from 'miragejs'; | ||
|
||
export default Model.extend({ | ||
account: '', // should match ID |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for this comment!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description
This PR updates the LDAP mirage handler so it will work with any mounted LDAP backend, and allows check-in and check-out. It also updates the tests to ensure the accounts show up in the acceptance scenario, because at some point the mirage response broke.
UI with LDAP mounted at
/ldap
Before, in
ldap-test
backend