chocolatey / chocolatey/choco

PushCommand tests should push to a mocked endpoint and not Chocolatey Community Repository

Open
#2,911 5 comments 0 reactions 1 assignee Claimed by @corbob View on GitHub
2 - Working Tests
Dominant language
C#
Stars
11.5k
Forks
960
PR merge metrics
No merged PRs in 30d

Description

## Is Your Feature Request Related To A Problem? Please describe.

Currently PushCommand tests require an API Key to push to the Chocolatey Community Repository. This means that community members are not able to run the full test suite as they do not have access to this API Key.

## Describe The Solution. Why is it needed?

PowerShell has the ability to respond to HTTP requests. We could therefore have our tests listen for Chocolatey to push a package to it and respond with exactly the message we want.

## Additional Context.

NA

## Related Issues

NA

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.