forked from chocolatey/choco
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(chocolatey#62) Add unit tests for DefaultPushSource
Adds tests for DefaultPushSource to check it works correctly. If DefaultPushSource is set, it should set the source assuming that a source is not passed in explicitly with --source. If a source is passed in explicitly, then DefaultPushSource should not override it. If DefaultPushSource is set to "disabled", it should throw an error if there is not an explicit source passed in. But if an explicit source is passed in, it should not error. If the DefaultPushSource is set to the name/alias of a machine source, it should resolve to that machine source.
- Loading branch information
1 parent
0f8c210
commit 8ccbbe3
Showing
1 changed file
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters