feat(catalog-backend-module-ldap): export vendor types for testing custom transformers
Signed-off-by: Shamil Ganiev <ganiev@pm.me>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-catalog-backend-module-ldap': patch
|
||||
---
|
||||
|
||||
Export LDAP vendor types and instances for testing custom transformers
|
||||
@@ -275,4 +275,14 @@ export type VendorConfig = {
|
||||
dnAttributeName?: string;
|
||||
uuidAttributeName?: string;
|
||||
};
|
||||
|
||||
// @public
|
||||
export const vendors: {
|
||||
readonly activeDirectory: LdapVendor;
|
||||
readonly aeDir: LdapVendor;
|
||||
readonly freeIpa: LdapVendor;
|
||||
readonly googleLdap: LdapVendor;
|
||||
readonly lldap: LdapVendor;
|
||||
readonly default: LdapVendor;
|
||||
};
|
||||
```
|
||||
|
||||
@@ -13,6 +13,15 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
import {
|
||||
ActiveDirectoryVendor,
|
||||
AEDirVendor,
|
||||
DefaultLdapVendor,
|
||||
FreeIpaVendor,
|
||||
GoogleLdapVendor,
|
||||
LdapVendor,
|
||||
LLDAPVendor,
|
||||
} from './vendors';
|
||||
|
||||
export { LdapClient } from './client';
|
||||
export { mapStringAttr } from './util';
|
||||
@@ -37,3 +46,16 @@ export {
|
||||
readLdapOrg,
|
||||
} from './read';
|
||||
export type { GroupTransformer, UserTransformer } from './types';
|
||||
/**
|
||||
* An LDAP Vendor types.
|
||||
*
|
||||
* @public
|
||||
*/
|
||||
export const vendors = {
|
||||
activeDirectory: ActiveDirectoryVendor as LdapVendor,
|
||||
aeDir: AEDirVendor as LdapVendor,
|
||||
freeIpa: FreeIpaVendor as LdapVendor,
|
||||
googleLdap: GoogleLdapVendor as LdapVendor,
|
||||
lldap: LLDAPVendor as LdapVendor,
|
||||
default: DefaultLdapVendor as LdapVendor,
|
||||
} as const;
|
||||
|
||||
Reference in New Issue
Block a user