Skip to content

Refactor test fixtures and consolidate Salt dev files#30

Merged
jsandas merged 1 commit into
masterfrom
test_fixture_refactor
Mar 31, 2026
Merged

Refactor test fixtures and consolidate Salt dev files#30
jsandas merged 1 commit into
masterfrom
test_fixture_refactor

Conversation

@jsandas

@jsandas jsandas commented Mar 31, 2026

Copy link
Copy Markdown
Owner

This pull request removes the legacy SaltStack state files and related Jinja configuration for Nexus3, and updates documentation and development environment configuration to match the new file structure. The main focus is on cleaning up obsolete automation code and ensuring that tests and examples reference the correct locations.

Key changes include:

Removal of duplicate Salt state files and configuration:

  • Deleted all SaltStack state files for Nexus3, including init.sls, setup.sls, and individual resource states like blobstores.sls, privileges.sls, repositories.sls, roles.sls, users.sls, and scripts.sls, as well as the shared map.jinja file. These files are no longer needed as part of the new setup. [1] [2] [3] [4] [5] [6] [7] [8] [9]

Documentation and development environment updates:

  • Updated the README.md to point to the new example file locations under tests/files/salt/nexus3 and tests/files/salt/pillar instead of the old directories.
  • Modified docker-compose.yml to mount the new test file locations for nexus3 and pillar in the Salt master container, ensuring the development environment uses the updated structure.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 deprecates the legacy top-level Nexus3 Salt state tree by removing the nexus3/ SLS/Jinja files and updating local dev/docs references to use the test/example Salt fixtures under tests/files/salt/.

Changes:

  • Removed the top-level Nexus3 Salt state files (nexus3/*.sls, nexus3/map.jinja).
  • Added/updated Salt pillar fixtures under tests/files/salt/pillar for example/dev usage.
  • Updated docker-compose.yml and README.md to reference the test/example fixture locations.

Reviewed changes

Copilot reviewed 11 out of 13 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/files/salt/pillar/top.sls Adds a pillar top file for the test/example pillar tree.
tests/files/salt/pillar/nexus3.sls Adds a comprehensive example pillar for Nexus3 provisioning/config tests.
README.md Updates example paths to point to tests/files/salt/*.
docker-compose.yml Changes volume mounts to use the test/example Salt and pillar fixtures.
nexus3/init.sls Removed legacy top-level Nexus3 state (container/user/data dir setup).
nexus3/setup.sls Removed legacy orchestration include state.
nexus3/blobstores.sls Removed legacy blobstore state.
nexus3/repositories.sls Removed legacy repository state.
nexus3/privileges.sls Removed legacy privileges state.
nexus3/roles.sls Removed legacy roles state.
nexus3/users.sls Removed legacy users state.
nexus3/scripts.sls Removed legacy scripts/tasks state.
nexus3/map.jinja Removed legacy pillar-to-state mapping template.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread README.md
Comment on lines 26 to 30
- [API Modules Reference](docs/ref/modules.rst)
- [API States Reference](docs/ref/states.rst)

The files under the `nexus3` and `salt/pillar` folders can be used as examples for using these modules.
The files under `tests/files/salt/nexus3` and `tests/files/salt/pillar` can be used as examples for using these modules.

Copilot AI Mar 31, 2026

Copy link

Choose a reason for hiding this comment

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

PR description says the Nexus3 Salt states/pillar files were deleted, but the PR also adds/keeps Salt example files under tests/files/salt/* and updates docs to point at them. Please clarify the PR description to reflect that the legacy top-level state tree was removed/moved, not eliminated entirely.

Copilot uses AI. Check for mistakes.
@jsandas
jsandas marked this pull request as ready for review March 31, 2026 02:11
@jsandas
jsandas merged commit eef3536 into master Mar 31, 2026
9 checks passed
@jsandas
jsandas deleted the test_fixture_refactor branch March 31, 2026 02:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants