Skip to content
This repository was archived by the owner on Dec 19, 2025. It is now read-only.

[ADMINAPI-1298] - Copy over and enable the execution of the integration tests for Admin…#368

Merged
jpardogrowthaccelerationpartners merged 6 commits intomainfrom
ADMINAPI-1298
Oct 21, 2025
Merged

[ADMINAPI-1298] - Copy over and enable the execution of the integration tests for Admin…#368
jpardogrowthaccelerationpartners merged 6 commits intomainfrom
ADMINAPI-1298

Conversation

@DavidJGapCR
Copy link

@DavidJGapCR DavidJGapCR commented Oct 15, 2025

… Api V1 using the build.ps script

Copied over the integration tests from Admin Api v1.
Adjustments on the PowerShell scripts: build.ps1 and its psm1 modules.
Some fixes on namespaces

@github-actions
Copy link

github-actions bot commented Oct 15, 2025

Test Results

336 tests   335 ✅  15s ⏱️
  4 suites    1 💤
  4 files      0 ❌

Results for commit a2f0c27.

♻️ This comment has been updated with latest results.

@DavidJGapCR DavidJGapCR force-pushed the ADMINAPI-1298 branch 3 times, most recently from 38ac1a9 to 0204d12 Compare October 17, 2025 17:59
@DavidJGapCR DavidJGapCR marked this pull request as ready for review October 17, 2025 20:20
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR integrates V1 Admin API integration tests into the build process by copying tests from the previous version and updating build scripts to support multiple ODS versions (6.x and 7.x) with different database deployment configurations.

Key Changes:

  • Added support for running integration tests against both ODS 6.x and 7.x versions with version-specific parameters
  • Introduced mandatory DbDeployVersion and StandardVersion parameters throughout the database management pipeline
  • Copied and adapted V1 integration test suite with namespace corrections and modern C# syntax updates

Reviewed Changes

Copilot reviewed 88 out of 88 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
eng/database-manager.psm1 Enhanced to support multiple DbDeploy versions and made version parameters mandatory
build.ps1 Added dual API version support (6.x and 7.x) with separate test functions
EdFi.Ods.AdminApi.V1/Infrastructure/Services/* Fixed namespace inconsistencies from ClaimSetEditor to Services.ClaimSetEditor
EdFi.Ods.AdminApi.V1.DBTests/* Added complete integration test suite with test infrastructure
Ed-Fi-ODS-AdminApi.sln Added V1 DBTests project to solution
Comments suppressed due to low confidence (1)

build.ps1:1

  • The ValidateSet now includes both versioned and unversioned package names. Consider documenting why 'EdFi.Suite3.RestApi.Databases' (without version) is valid and when it should be used versus the versioned variant.
# SPDX-License-Identifier: Apache-2.0

NuGetFeed = $NuGetFeed
}

Write-Output "CALLING ---- Install-EdFiDbDeploy" -ForegroundColor Red
Copy link

Copilot AI Oct 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This debug output should be removed or replaced with appropriate logging. The -ForegroundColor Red parameter is being used with Write-Output which doesn't support color formatting - use Write-Host instead if color output is needed for debugging.

Copilot generated this review using guidance from repository custom instructions.
StandardVersion = $StandardVersion
}

Write-Output "CALLING ---- Install-EdFiDatabase" -ForegroundColor Red
Copy link

Copilot AI Oct 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This debug output should be removed or replaced with appropriate logging. The -ForegroundColor Red parameter is being used with Write-Output which doesn't support color formatting - use Write-Host instead if color output is needed for debugging.

Copilot generated this review using guidance from repository custom instructions.
Comment on lines 673 to 674
Write-Output "Get-RestApiPackage result:"
Write-Output " dbPackagePath = $dbPackagePath"
Copy link

Copilot AI Oct 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These debug outputs should be removed or replaced with appropriate logging mechanisms for production code.

Copilot generated this review using guidance from repository custom instructions.
$DbDeployExe = $DbDeployExe -replace "\.exe$", ""
}

Write-Host "Full command: $DbDeployExe $($arguments -join ' ')" -ForegroundColor blue
Copy link

Copilot AI Oct 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This debug output should be removed or replaced with appropriate logging for production code.

Copilot generated this review using guidance from repository custom instructions.
[
new() {
NamespacePrefix = "http://testvendor.net",
Vendor = new Vendor() // Assign a new Vendor instance to satisfy the required property
Copy link

Copilot AI Oct 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The workaround comment indicates a code smell. The VendorNamespacePrefix.Vendor property should not require assignment during initialization if it's meant to be a navigation property. Consider reviewing the model design to avoid circular references in initialization.

Copilot uses AI. Check for mistakes.
[
new() {
NamespacePrefix = "http://testvendor.net",
Vendor = new Vendor() // Assign a new Vendor instance to satisfy the required property
Copy link

Copilot AI Oct 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The workaround comment indicates a code smell. The VendorNamespacePrefix.Vendor property should not require assignment during initialization if it's meant to be a navigation property. Consider reviewing the model design to avoid circular references in initialization.

Copilot uses AI. Check for mistakes.
@jpardogrowthaccelerationpartners jpardogrowthaccelerationpartners merged commit 775c286 into main Oct 21, 2025
20 checks passed
@jpardogrowthaccelerationpartners jpardogrowthaccelerationpartners deleted the ADMINAPI-1298 branch October 21, 2025 13:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants