Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | import { appInstall, DEFAULT_ACCESS_TOKEN, DEFAULT_CLIENT_ID, DEFAULT_CLIENT_SECRET, DEFAULT_USER } from '@orchesty/nodejs-connectors/test/DataProvider';
import { container, oauth2Provider, prepare } from '@orchesty/nodejs-connectors/test/TestAbstract';
import CoreFormsEnum from '@orchesty/nodejs-sdk/dist/lib/Application/Base/CoreFormsEnum';
import { ACCESS_TOKEN } from '@orchesty/nodejs-sdk/dist/lib/Authorization/Provider/OAuth2/OAuth2Provider';
import { TOKEN } from '@orchesty/nodejs-sdk/dist/lib/Authorization/Type/Basic/ABasicApplication';
import { CLIENT_ID, CLIENT_SECRET } from '@orchesty/nodejs-sdk/dist/lib/Authorization/Type/OAuth2/IOAuth2Application';
import GoogleCloudLoggingGetEntryListBatch from '../src/Batch/GoogleCloudLoggingGetEntryListBatch';
import GoogleCloudLoggingApplication, { NAME as GOOGLE_CLOUD_LOGGING_APPLICATION } from '../src/GoogleCloudLoggingApplication';
export default function init(): void {
appInstall(GOOGLE_CLOUD_LOGGING_APPLICATION, DEFAULT_USER, {
[CoreFormsEnum.AUTHORIZATION_FORM]: {
[CLIENT_ID]: DEFAULT_CLIENT_ID,
[CLIENT_SECRET]: DEFAULT_CLIENT_SECRET,
[TOKEN]: {
[ACCESS_TOKEN]: DEFAULT_ACCESS_TOKEN,
},
},
});
prepare();
const app = new GoogleCloudLoggingApplication(oauth2Provider);
container.setApplication(app);
container.setNode(new GoogleCloudLoggingGetEntryListBatch(), app);
}
|