8efe4ec194
- created server configuration - implemented downloading files from nextcloud to a local directory - build of the docker image added to the GutHub workflow - Twake client added - Creating user in Twake Drive from ldap - Ldap client with ldapsearch(TODO make it work with ldapjs) - Jest debug tests
23 lines
634 B
TypeScript
23 lines
634 B
TypeScript
import { expect, test } from '@jest/globals';
|
|
import { TwakeDriveClient } from '../src/twake_client';
|
|
|
|
//integration debug test
|
|
describe.skip('twake client module', () => {
|
|
|
|
test('twake creates new user', async () => {
|
|
//given
|
|
const subj = new TwakeDriveClient({
|
|
url: "https://tdrive.qa.lin-saas.com/",
|
|
credentials: {
|
|
appId: "tdrive_onlyoffice",
|
|
secret: "QWERTY"
|
|
}
|
|
})
|
|
|
|
//when
|
|
const response = await subj.createUser({firstName: "Test", lastName: "User", email: "test@example.com", uid: "test"});
|
|
expect(response).toBeDefined();
|
|
console.log(response);
|
|
});
|
|
|
|
}); |