chore(ci): remove mock integration test workflow

Real integration tests against a provisioned PVE instance replace the
mock server tests. The MockServer project remains for now but the
workflow is no longer needed.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Clint Branham
2026-03-18 17:29:18 -05:00
parent ec05e52e58
commit b73c20fdbf
@@ -1,81 +0,0 @@
name: Mock Integration Tests
# These tests run the module against a mock PVE API server.
# No real Proxmox host needed - runs on GitHub-hosted runners.
# Validates HTTP request correctness, auth flows, deserialization,
# and end-to-end cmdlet behavior against simulated PVE responses.
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
mock-integration:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
framework: net9.0
shell: pwsh
- os: windows-latest
framework: net9.0
shell: pwsh
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v5
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: '9.0.x'
- name: Build mock server
run: dotnet build tests/PSProxmoxVE.MockServer/PSProxmoxVE.MockServer.csproj --configuration Release
- name: Build module
run: dotnet publish src/PSProxmoxVE/PSProxmoxVE.csproj --configuration Release --framework net9.0 --output ./publish/net9.0
- name: Install Pester 5
shell: pwsh
run: Install-Module -Name Pester -MinimumVersion 5.0 -Force -Scope CurrentUser
- name: Copy module to module path (Windows)
if: matrix.os == 'windows-latest'
shell: pwsh
run: |
$modulePath = "$env:USERPROFILE\Documents\PowerShell\Modules\PSProxmoxVE"
New-Item -ItemType Directory -Path $modulePath -Force | Out-Null
Copy-Item -Path .\publish\net9.0\* -Destination $modulePath -Recurse -Force
- name: Copy module to module path (Linux)
if: matrix.os != 'windows-latest'
shell: pwsh
run: |
$modulePath = "$HOME/.local/share/powershell/Modules/PSProxmoxVE"
New-Item -ItemType Directory -Path $modulePath -Force | Out-Null
Copy-Item -Path ./publish/net9.0/* -Destination $modulePath -Recurse -Force
- name: Run mock integration tests
shell: pwsh
run: |
Import-Module Pester -MinimumVersion 5.0
$config = New-PesterConfiguration
$config.Run.Path = "tests/PSProxmoxVE.Tests/MockIntegration"
$config.Filter.Tag = "MockIntegration"
$config.Output.Verbosity = "Detailed"
$config.TestResult.Enabled = $true
$config.TestResult.OutputFormat = "NUnitXml"
$config.TestResult.OutputPath = "TestResults/mock-integration-results.xml"
Invoke-Pester -Configuration $config
- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: mock-integration-results-${{ matrix.os }}
path: TestResults/