Skip to content

Variable reference validation for Octopus import

Summary

  • Implemented OctopusImportVariableReferenceValidator for validating #{...} references across current Octopus variable sets and deployment processes.
  • Added diagnostics for missing variable definitions, case-only variable-name mismatches, Octopus system variables with Squid equivalents, and unsupported Octopus system variables.
  • Reused the existing Squid template parser to extract substitution references, including filters, conditionals, and package property references.
  • Added unit tests covering defined references, escaped templates, missing definitions, K8SNameSpace/K8SNamespace casing, system-variable equivalents, and unsupported system variables.
  • Marked OpenSpec task 4.6 complete in local progress tracking.
  • Scope intentionally leaves ActionType/property translation to 5.x.

Test plan

  • Ran dotnet test tests/Squid.UnitTests/Squid.UnitTests.csproj --filter "FullyQualifiedName~Services.OctopusImport" --no-restore --disable-build-servers: passed 184/184.
  • Ran git diff --check: passed.
  • Full repository unit/integration suite was not run.

Merge request reports

Loading