Skip to content

E2E: Import-TestData plumbing, section docs, and versioning#34

Merged
MariusStorhaug merged 7 commits into
mainfrom
test/e2e-import-testdata
Jul 11, 2026
Merged

E2E: Import-TestData plumbing, section docs, and versioning#34
MariusStorhaug merged 7 commits into
mainfrom
test/e2e-import-testdata

Conversation

@MariusStorhaug

Copy link
Copy Markdown
Owner

End-to-end test of the TestData plumbing fix, exercised through this module without merging the
underlying changes.

Wiring

What to observe

  • Secrets + variables pushed into the tests — the calling workflow passes a TestData object with
    a secrets map (TEST_SECRET, masked in logs) and a variables map (TEST_VARIABLE, not masked).
    tests/Environment.Tests.ps1 asserts both arrive with their exact fixture values inside the module
    test job.
  • (A) Versioning — this PR is labelled Minor; the pipeline computes the next version accordingly.
  • (B) Documentation hierarchy — public functions are grouped into sections with landing pages on
    the section nodes:
    • Greetings/ (landing page from Greetings.md) → Get-Greeting
    • DateAndTime/ (landing page from index.md) → Get-CurrentDateTime
    • Get-PSModuleTest stays at the top level

Throwaway E2E harness — not intended to merge.

Point CI at PSModule/Process-PSModule@feat/import-testdata. Push a masked secret (TEST_SECRET) and a non-masked variable (TEST_VARIABLE) into the module test jobs via TestData, asserted in tests/Environment.Tests.ps1. Reorganize public functions into sections (Greetings/ with a named landing page, DateAndTime/ with an index.md landing page) to show documentation on the section nodes, leaving Get-PSModuleTest at the top level.
@github-actions

github-actions Bot commented Jul 10, 2026

Copy link
Copy Markdown

Super-linter summary

Language Validation result
CHECKOV Pass ✅
GITHUB_ACTIONS Pass ✅
GITLEAKS Pass ✅
GIT_MERGE_CONFLICT_MARKERS Pass ✅
MARKDOWN Pass ✅
NATURAL_LANGUAGE Pass ✅
POWERSHELL Pass ✅
PRE_COMMIT Pass ✅
SPELL_CODESPELL Pass ✅
TRIVY Pass ✅
YAML Pass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter

Marius Storhaug added 2 commits July 10, 2026 22:22
Adds an It block that Write-Hosts both values. GitHub Actions masks TEST_SECRET (registered via ::add-mask:: by Import-TestData) to *** in the log, while TEST_VARIABLE is printed verbatim - demonstrating that only the secrets map is masked.
The Import-TestData plumbing and always-evaluate-version-labels fix are now released in Process-PSModule v6.1.2 (via PSModule/Process-PSModule#377, IPH v1.0.9 + Resolve-PSModuleVersion v1.1.4), so the temporary feat/import-testdata branch ref is replaced with the released tag.
Per the GitHub Actions coding standard, uses: references are pinned to a full 40-character commit SHA with the human-readable version as a trailing comment. Replaces the v6.1.2 tag pin with its commit SHA (d4020f3).
@MariusStorhaug MariusStorhaug merged commit d7021a1 into main Jul 11, 2026
40 checks passed
@MariusStorhaug MariusStorhaug deleted the test/e2e-import-testdata branch July 11, 2026 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant