AutoBE
    Preparing search index...

    Interface AutoBeTestAuthorizeFunction

    Authorization function for E2E test code.

    Michael

    interface AutoBeTestAuthorizeFunction {
        actor: string;
        authType: string;
        content: string;
        endpoint: IEndpoint;
        location: string;
        name: string;
        type: "authorize";
    }

    Hierarchy

    • AutoBeTestFunctionBase<"authorize">
      • AutoBeTestAuthorizeFunction
    Index

    Properties

    actor: string

    Actor name (e.g., "admin", "user").

    authType: string

    Authentication type, matching AutoBeOpenApi.IOperation.authorizationType:

    • "login": Authenticate existing user
    • "join": Register new user
    • "refresh": Renew expired token
    content: string

    The complete source code content of the test function. Contains the full implementation including function signature and body.

    endpoint: IEndpoint

    Source API endpoint this authorization function was generated from.

    location: string

    The file system location where this test function will be written. Should be an absolute or relative path to the target test file.

    name: string

    The name identifier of the function. Used to reference the function within the test suite.

    type: "authorize"

    Discriminator field that identifies the specific type of test function. Used for discriminated union pattern to distinguish between different test function types.