Skip to content
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

Merged
merged 7 commits into from
Sep 20, 2024
Merged

UI: Fix LDAP Mirage Handler #28432

merged 7 commits into from
Sep 20, 2024

Conversation

hashishaw
Copy link
Contributor

@hashishaw hashishaw commented Sep 18, 2024

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
image

Before, in ldap-test backend
image

  • Ent tests pass

@github-actions github-actions bot added the hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed label Sep 18, 2024
Copy link

github-actions bot commented Sep 18, 2024

CI Results:
All Go tests succeeded! ✅

@hashishaw hashishaw added the ui label Sep 19, 2024
@hashishaw hashishaw added this to the 1.19.0-rc milestone Sep 19, 2024
@hashishaw hashishaw marked this pull request as ready for review September 19, 2024 17:48
@hashishaw hashishaw requested a review from a team as a code owner September 19, 2024 17:48
Copy link

Build Results:
All builds succeeded! ✅

@@ -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`;
Copy link
Contributor

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for this comment!

Copy link
Contributor

@hellobontempo hellobontempo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hashishaw hashishaw merged commit 2ce6877 into main Sep 20, 2024
31 checks passed
@hashishaw hashishaw deleted the ui/fix-ldap-mirage-handler branch September 20, 2024 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed pr/no-changelog ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants