-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auth Providers: Add search_using_service_account field (#13223)
* Add LPDAP option for search * Add unit tests for LDAP config * Add restriction for searchUsingServiceAccount config to specific types * Use computed over direct check due lack of rendering issues with the prop * Add tooltip for searchUsingServiceAccount
- Loading branch information
Showing
3 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { mount } from '@vue/test-utils'; | ||
import LDAPConfig from '@shell/edit/auth/ldap/config.vue'; | ||
|
||
describe('lDAP config', () => { | ||
it.each([ | ||
'openldap', 'freeipa' | ||
])('should display searchUsingServiceAccount checkbox if type %p', (type) => { | ||
const wrapper = mount(LDAPConfig, { | ||
propsData: { | ||
value: {}, | ||
type, | ||
} | ||
}); | ||
const checkbox = wrapper.find('[data-testid="searchUsingServiceAccount"]'); | ||
|
||
expect(checkbox).toBeDefined(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters