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

Test reorg: PKI #26275

Closed
wants to merge 28 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
131e1b0
Add readme
hashishaw Apr 2, 2024
fdba7e6
Rename general selectors export
hashishaw Apr 2, 2024
2e68dd4
reorg clients helper -- all clients tests pass
hashishaw Apr 2, 2024
dcf40c3
Update custom messages & dashboard selectors
hashishaw Apr 2, 2024
d8ce0f9
Rename client count selector export
hashishaw Apr 2, 2024
c92e61f
clean up .CodeMirror selectors to use helper instead
hashishaw Apr 2, 2024
2cc755d
move secret-edit-toolbar helper
hashishaw Apr 2, 2024
0e0e40c
remove helper used only once
hashishaw Apr 2, 2024
8dfbe45
replace noop-all-api-requests with mirage
hashishaw Apr 2, 2024
4607bd1
move policy generators into their respective folders
hashishaw Apr 2, 2024
4148300
Move LDAP helpers
hashishaw Apr 2, 2024
5568ce0
Move overrideResponse to stubs helper, rename clients helper
hashishaw Apr 2, 2024
0242c4b
replace oidc-specific mirage & capabilities overrides
hashishaw Apr 3, 2024
fc06682
add secretTab and checkboxByAttr to general selectors
hashishaw Apr 3, 2024
fe7317d
general-selectors are TS
hashishaw Apr 4, 2024
cd3c028
fix merge conflict import
hashishaw Apr 4, 2024
b5392d4
Bump message wait time for oidc auth method test
hashishaw Apr 4, 2024
cf1b31b
Refactor auth methods mgmt test so we don't run into a timeout
hashishaw Apr 4, 2024
3c4e0e4
Update comment
hashishaw Apr 4, 2024
6a162ec
revert acceptance tests only
hashishaw Apr 4, 2024
e831a39
don't allow mutability of array returned by supportedAuthBackends
hashishaw Apr 4, 2024
e7a1b97
rebase PKI changes onto reorg branch
hashishaw Apr 4, 2024
2eb0ee6
Rename pki selector files to end with -selectors
hashishaw Apr 4, 2024
87ef918
replace assert.ok with assert.true
hashishaw Apr 4, 2024
b793b7f
Test reorg: Clients, Mirage, General selectors (#26260)
hashishaw Apr 10, 2024
5d87b71
Merge branch 'ui/test-reorg-base' into ui/hackweek-test-reorg--pki2
hashishaw Apr 10, 2024
9955a5d
Remove extra readme
hashishaw Apr 10, 2024
b7e35bd
Merge branch 'ui/test-reorg-base' into ui/hackweek-test-reorg--pki2
hashishaw Apr 10, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions ui/lib/pki/addon/components/page/pki-configure-create.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<Page::Breadcrumbs @breadcrumbs={{@breadcrumbs}} />
</p.top>
<p.levelLeft>
<h1 class="title is-3" data-test-pki-engine-page-title>
<h1 class="title is-3" data-test-page-title>
{{this.title}}
</h1>
</p.levelLeft>
Expand Down Expand Up @@ -85,14 +85,10 @@
@onComplete={{transition-to "vault.cluster.secrets.backend.pki.overview"}}
/>
{{else}}
<EmptyState
@title="Choose an option"
@message="To see configuration options, choose your desired output above."
data-test-configuration-empty-state
/>
<EmptyState @title="Choose an option" @message="To see configuration options, choose your desired output above." />
<hr class="has-background-gray-100" />
<Hds::ButtonSet>
<Hds::Button @text="Done" disabled={{true}} data-test-pki-config-save />
<Hds::Button @text="Cancel" @color="secondary" {{on "click" @onCancel}} data-test-pki-config-cancel />
<Hds::Button @text="Done" disabled={{true}} data-test-save />
<Hds::Button @text="Cancel" @color="secondary" {{on "click" @onCancel}} data-test-cancel />
</Hds::ButtonSet>
{{/if}}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<Page::Breadcrumbs @breadcrumbs={{@breadcrumbs}} />
</p.top>
<p.levelLeft>
<h1 class="title is-3" data-test-pki-page-title>
<h1 class="title is-3" data-test-page-title>
{{this.title}}
</h1>
</p.levelLeft>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<Page::Breadcrumbs @breadcrumbs={{@breadcrumbs}} />
</p.top>
<p.levelLeft>
<h1 class="title is-3" data-test-pki-page-title>
<h1 class="title is-3" data-test-page-title>
{{this.title}}
</h1>
</p.levelLeft>
Expand Down
2 changes: 1 addition & 1 deletion ui/lib/pki/addon/components/page/pki-issuer-import.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<Page::Breadcrumbs @breadcrumbs={{@breadcrumbs}} />
</p.top>
<p.levelLeft>
<h1 class="title is-3" data-test-pki-page-title>
<h1 class="title is-3" data-test-page-title>
{{this.title}}
</h1>
</p.levelLeft>
Expand Down
2 changes: 1 addition & 1 deletion ui/lib/pki/addon/components/page/pki-issuer-list.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
@text="Details"
@route="issuers.issuer.details"
@model={{pkiIssuer.id}}
data-test-popup-menu-details
data-test-pki-issuer-details
/>
<dd.Interactive @text="Edit" @route="issuers.issuer.edit" @model={{pkiIssuer.id}} />
</Hds::Dropdown>
Expand Down
6 changes: 3 additions & 3 deletions ui/lib/pki/addon/components/page/pki-issuer-rotate-root.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<Page::Breadcrumbs @breadcrumbs={{@breadcrumbs}} />
</p.top>
<p.levelLeft>
<h1 class="title is-3" data-test-pki-page-title>
<h1 class="title is-3" data-test-page-title>
{{if @newRootModel.id "View Issuer Certificate" "Generate New Root"}}
</h1>
</p.levelLeft>
Expand Down Expand Up @@ -166,8 +166,8 @@

<hr class="has-background-gray-100" />
<Hds::ButtonSet>
<Hds::Button @text="Done" type="submit" data-test-pki-rotate-root-save />
<Hds::Button @text="Cancel" @color="secondary" {{on "click" @onCancel}} data-test-pki-rotate-root-cancel />
<Hds::Button @text="Done" type="submit" data-test-save />
<Hds::Button @text="Cancel" @color="secondary" {{on "click" @onCancel}} data-test-cancel />
</Hds::ButtonSet>
{{#if this.invalidFormAlert}}
<div class="control">
Expand Down
4 changes: 2 additions & 2 deletions ui/lib/pki/addon/components/pki-generate-root.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@

<hr class="has-background-gray-100" />
<Hds::ButtonSet>
<Hds::Button @text="Done" type="submit" data-test-pki-generate-root-save />
<Hds::Button @text="Cancel" @color="secondary" {{on "click" @onCancel}} data-test-pki-generate-root-cancel />
<Hds::Button @text="Done" type="submit" data-test-save />
<Hds::Button @text="Cancel" @color="secondary" {{on "click" @onCancel}} data-test-cancel />
</Hds::ButtonSet>
{{#if this.invalidFormAlert}}
<div class="control">
Expand Down
4 changes: 2 additions & 2 deletions ui/lib/pki/addon/components/pki-issuer-cross-sign.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,14 @@
@icon={{if this.submit.isRunning "loading"}}
type="submit"
disabled={{this.submit.isRunning}}
data-test-cross-sign-submit
data-test-save
/>
<Hds::Button
@text="Cancel"
@color="secondary"
@route="issuers.issuer.details"
disabled={{this.submit.isRunning}}
data-test-cross-sign-cancel
data-test-cancel
/>
</Hds::ButtonSet>
</form>
Expand Down
4 changes: 2 additions & 2 deletions ui/lib/pki/addon/components/pki-key-form.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@
@icon={{if this.save.isRunning "loading"}}
type="submit"
disabled={{this.save.isRunning}}
data-test-pki-key-save
data-test-save
/>
<Hds::Button
@text="Cancel"
@color="secondary"
disabled={{this.save.isRunning}}
{{on "click" @onCancel}}
data-test-pki-key-cancel
data-test-cancel
/>
</Hds::ButtonSet>
{{#if this.invalidFormAlert}}
Expand Down
2 changes: 1 addition & 1 deletion ui/lib/pki/addon/components/pki-key-import.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
@color="secondary"
disabled={{this.submitForm.isRunning}}
{{on "click" this.cancel}}
data-test-pki-key-cancel
data-test-cancel
/>
</Hds::ButtonSet>
{{#if this.invalidFormAlert}}
Expand Down
4 changes: 2 additions & 2 deletions ui/lib/pki/addon/components/pki-role-form.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,14 @@
@icon={{if this.save.isRunning "loading"}}
type="submit"
disabled={{this.save.isRunning}}
data-test-pki-role-save
data-test-save
/>
<Hds::Button
@text="Cancel"
@color="secondary"
disabled={{this.save.isRunning}}
{{on "click" @onCancel}}
data-test-pki-role-cancel
data-test-cancel
/>
</Hds::ButtonSet>
{{#if this.modelValidations.targets.errors}}
Expand Down
4 changes: 2 additions & 2 deletions ui/lib/pki/addon/components/pki-role-generate.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@
@icon={{if this.save.isRunning "loading"}}
type="submit"
disabled={{this.save.isRunning}}
data-test-pki-generate-button
data-test-save
/>
<Hds::Button
@text="Cancel"
@color="secondary"
disabled={{this.save.isRunning}}
{{on "click" this.cancel}}
data-test-pki-generate-cancel
data-test-cancel
/>
</Hds::ButtonSet>

Expand Down
2 changes: 1 addition & 1 deletion ui/lib/pki/addon/templates/issuers/issuer/cross-sign.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<Page::Breadcrumbs @breadcrumbs={{this.breadcrumbs}} />
</p.top>
<p.levelLeft>
<h1 class="title is-3" data-test-pki-issuer-page-title>
<h1 class="title is-3" data-test-page-title>
Cross-Sign Issuers
</h1>
</p.levelLeft>
Expand Down
2 changes: 1 addition & 1 deletion ui/lib/pki/addon/templates/issuers/issuer/details.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<Page::Breadcrumbs @breadcrumbs={{this.breadcrumbs}} />
</p.top>
<p.levelLeft>
<h1 class="title is-3" data-test-pki-issuer-page-title>
<h1 class="title is-3" data-test-page-title>
<Icon @name="file-text" @size="24" class="has-text-grey-light" />
View Issuer Certificate
</h1>
Expand Down
2 changes: 1 addition & 1 deletion ui/lib/pki/addon/templates/issuers/issuer/edit.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<Page::Breadcrumbs @breadcrumbs={{this.breadcrumbs}} />
</p.top>
<p.levelLeft>
<h1 class="title is-3" data-test-pki-issuer-page-title>
<h1 class="title is-3" data-test-page-title>
Update Issuer
</h1>
</p.levelLeft>
Expand Down
2 changes: 1 addition & 1 deletion ui/lib/pki/addon/templates/issuers/issuer/sign.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<Page::Breadcrumbs @breadcrumbs={{this.breadcrumbs}} />
</p.top>
<p.levelLeft>
<h1 class="title is-3" data-test-pki-issuer-page-title>
<h1 class="title is-3" data-test-page-title>
<Icon @name="file-text" @size="24" class="has-text-grey-light" />
Sign Intermediate
</h1>
Expand Down
2 changes: 1 addition & 1 deletion ui/lib/pki/addon/templates/keys/key/details.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<Page::Breadcrumbs @breadcrumbs={{this.breadcrumbs}} />
</p.top>
<p.levelLeft>
<h1 class="title is-3" data-test-key-details-title>
<h1 class="title is-3" data-test-page-title>
<Icon @name="certificate" @size="24" class="has-text-grey-light" />
View Key
</h1>
Expand Down
2 changes: 1 addition & 1 deletion ui/lib/pki/addon/templates/keys/key/edit.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<Page::Breadcrumbs @breadcrumbs={{this.breadcrumbs}} />
</p.top>
<p.levelLeft>
<h1 class="title is-3" data-test-key-details-title>
<h1 class="title is-3" data-test-page-title>
<Icon @name="certificate" @size="24" class="has-text-grey-light" />
Edit Key
</h1>
Expand Down
2 changes: 1 addition & 1 deletion ui/lib/pki/addon/templates/roles/create.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<Page::Breadcrumbs @breadcrumbs={{this.breadcrumbs}} />
</p.top>
<p.levelLeft>
<h1 class="title is-3" data-test-pki-role-page-title>
<h1 class="title is-3" data-test-page-title>
Create a PKI Role
</h1>
</p.levelLeft>
Expand Down
2 changes: 1 addition & 1 deletion ui/lib/pki/addon/templates/roles/role/details.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<Page::Breadcrumbs @breadcrumbs={{this.breadcrumbs}} />
</p.top>
<p.levelLeft>
<h1 class="title is-3" data-test-pki-role-page-title>
<h1 class="title is-3" data-test-page-title>
<Icon @name="file-text" @size="24" class="has-text-grey-light" />
PKI Role
<code>{{this.model.name}}</code>
Expand Down
2 changes: 1 addition & 1 deletion ui/lib/pki/addon/templates/roles/role/edit.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<Page::Breadcrumbs @breadcrumbs={{this.breadcrumbs}} />
</p.top>
<p.levelLeft>
<h1 class="title is-3" data-test-pki-role-page-title>
<h1 class="title is-3" data-test-page-title>
Edit Role
</h1>
</p.levelLeft>
Expand Down
2 changes: 1 addition & 1 deletion ui/lib/pki/addon/templates/roles/role/generate.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<Page::Breadcrumbs @breadcrumbs={{this.breadcrumbs}} />
</p.top>
<p.levelLeft>
<h1 class="title is-3" data-test-pki-role-page-title>
<h1 class="title is-3" data-test-page-title>
<Icon @name="certificate" @size="24" class="has-text-grey-light" />
{{if this.hasSubmitted "View Generated Certificate" "Generate Certificate"}}
</h1>
Expand Down
2 changes: 1 addition & 1 deletion ui/lib/pki/addon/templates/roles/role/sign.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<Page::Breadcrumbs @breadcrumbs={{this.breadcrumbs}} />
</p.top>
<p.levelLeft>
<h1 class="title is-3" data-test-pki-role-page-title>
<h1 class="title is-3" data-test-page-title>
<Icon @name="certificate" @size="24" class="has-text-grey-light" />
{{if this.hasSubmitted "View Signed Certificate" "Sign Certificate"}}
</h1>
Expand Down
Loading
Loading