<?php

it('removes shell access from the edge gateway HTTP contracts', function (): void {
    $routeSource = file_get_contents(app_path('routes/edgeGatewaysRoute.php'));

    expect($routeSource)->not->toBeFalse();

    expect($routeSource)->not->toContain("'/edge-gateways/{id}/shell-sessions/{sessionId}/events'");
    expect($routeSource)->not->toContain("'/edge-gateways/{id}/shell-sessions/{sessionId}/input'");
    expect($routeSource)->not->toContain("'/edge-gateways/{id}/shell-sessions/{sessionId}/resize'");
    expect($routeSource)->not->toContain("'/edge-gateways/{id}/shell-sessions/{sessionId}/close'");
    expect($routeSource)->not->toContain("'/edge-agent/gateways/{id}/shell-actions/poll'");
    expect($routeSource)->not->toContain("'/edge-agent/gateways/{id}/shell-actions/{actionId}/result'");
    expect($routeSource)->not->toContain("'/edge-agent/gateways/{id}/shell-sessions/{sessionId}/events'");
});
