import { ITestEnvironment } from "./doc/response/ITestEnvironment"; /** * Utilities for creating and cleaning up temporary profiles for tests */ export declare class TempTestProfiles { /** * Shebang to generated start script files with */ static SHEBANG: string; /** * The name of the binary that is run to create profiles */ static BINARY_NAME: string; /** * The log name for output from the create profiles commands * @static * @type {string} * @memberof TempTestProfiles */ static LOG_FILE_NAME: string; /** * Note reminding the user that failed profile creation may be the result of not installing Zowe CLI * globally * @type {string} * @memberof TempTestProfiles */ static GLOBAL_INSTALL_NOTE: string; /** * Create profiles for tests from data in the properties yaml file * @param {ITestEnvironment} testEnvironment - with working directory and test properties loaded * @param {string[]} profileTypes - array of types of profiles to create * from test properties * @returns {Promise<{ [key: string]: string[] }>} promise that resolves when profiles are created to * an array of profile names. Resolves to a key:value object that can be used * later to clean up profiles * @throws errors if any of the profile creations fail or if requested to create an unknown profile type */ static createProfiles(testEnvironment: ITestEnvironment, profileTypes?: string[]): Promise<{ [key: string]: string[]; }>; /** * Delete temporary profiles that were create earlier * @param {ITestEnvironment} testEnvironment - with working directory and test properties loaded * @param {{[key: string]: string[]}} profiles - temporary profiles created earlier to delete. * @throws errors if any of the profile deletions fail */ static deleteProfiles(testEnvironment: ITestEnvironment): Promise; /** * We don't need a full UUID, so we'll substring the UUID for shorter file * names if something goes wrong * @readonly * @type {number} */ private static readonly MAX_UUID_LENGTH; /** * Helper to create a temporary team config profile from test properties * @internal * @param {ITestEnvironment} testEnvironment - the test environment with env and working directory to use for output * @returns {Promise} promise that resolves to the name of the created profile on success * @throws errors if the profile creation fails */ static createV2Profile(testEnvironment: ITestEnvironment, profileType: string, profileProperties?: Record): Promise; /** * Helper to delete a temporary team config profile * @internal * @param {ITestEnvironment} testEnvironment - the test environment with env and working directory to use for output * @param {string} profileType - the type of profile e.g. zosmf to delete * @param {string} profileName - the name of the profile to delete * @returns {Promise} promise that resolves to the name of the created profile on success * @throws errors if the profile delete fails */ static deleteV2Profile(testEnvironment: ITestEnvironment, profileType: string, profileName: string): Promise; /** * log a message to a file in the working directory */ private static log; } //# sourceMappingURL=TempTestProfiles.d.ts.map