Skip to content

Commit

Permalink
update lease renew CLI command
Browse files Browse the repository at this point in the history
  • Loading branch information
hashishaw committed Sep 19, 2024
1 parent 7803bd9 commit 4e6ef4f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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`;
}
@action
setTtl(data: TtlEvent) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ module('Integration | Component | ldap | Page::Library::Details::Accounts', func

assert
.dom('[data-test-accounts-code-block] code')
.hasText('vault lease renew ad/library/test-library/check-out/:lease_id', 'Renew cli command renders');
.hasText(
'vault lease renew ldap-test/library/test-library/check-out/:lease_id',
'Renew cli command renders with backend path'
);
});
});

0 comments on commit 4e6ef4f

Please sign in to comment.