chocolatey / chocolatey/choco

Some tests are failing in Test Kitchen runs

Open
#3,910 2 comments 0 reactions 0 assignees View on GitHub
1 - Ready Enhancement NO RELEASE NOTES Tests
Dominant language
C#
Stars
11.5k
Forks
960
PR merge metrics
No merged PRs in 30d

Description

### Checklist

- [x] I have verified this is the correct repository for opening this issue.
- [x] I have verified no other issues exist related to my request.

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

_No response_

### Describe The Solution. Why is it needed?

Resolve the Test Kitchen test failures:

- Push Command tests sometimes output a different result depending on if it is a direct or indirect connection.
- Upgrade All tests fail when a newer Chocolatey product version is available than the one installed.

### User Story

As a Chocolatey Developer,
I want the Test Kitchen Tests to consistently pass,
so that I can have confidence that changes haven't broken things.

### Additional Context

- Validation of the Upgrade all tests can be done by fetching the latest tests, but have Test Kitchen run against version 2.7.0 of Chocolatey CLI.
- Validation of the Push command tests can be done by running both locally and in TeamCity (Local should result in an indirect connection, while TeamCity should have a direct connection).

### Acceptance Criteria

- [ ] Push Command tests pass regardless of if it is a direct or indirect connection.
- [ ] Upgrade All tests pass even if a newer Chocolatey product version is available than the one installed.

### Related Issues

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with the Test Kitchen runs for the Push Command and Upgrade All tests, reproducing them locally and in TeamCity to compare indirect and direct connections. Validate the Upgrade All behavior against Chocolatey CLI 2.7.0 and confirm both test groups pass when connection type or a newer installed product version differs.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.