Skip to content
This repository was archived by the owner on Aug 10, 2020. It is now read-only.

Conversation

@cheahjs
Copy link

@cheahjs cheahjs commented Sep 25, 2018

Add a new global flag --additional-gossfiles to specify additional gossfiles to run in addition to what is specified by -g.

Only works with serve and validate. This is because we avoid merging the gossfiles together entirely and can't produce a single YAML/JSON file with all the tests.

This is motivated by wanting to run multiple gossfiles that have conflicting keys in them. Since the keys used are file paths/users/services/etc, it isn't possible to specify different tests in different gossfiles for a single resource due to the behaviour of mergeGoss.

Modifying mergeGoss to perform deep merges is not an option, as there are users (goss-org#150) who rely on the overwriting behaviour to mask tests.

This allows users to specify multiple gossfiles to run for validate and
serve. This was added because the default behavior of merging gossfiles
by overwriting keys isn't always desirable.

Deep merging gossfiles is not an option, as there are users (goss-org#150) who
rely on the overwriting behavior.
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.

2 participants