Skip to content

Some tests are failing in Test Kitchen runs #3910

Description

@corbob

Checklist

  • I have verified this is the correct repository for opening this issue.
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    1 - ReadyIssue is accepted, milestone added and are ready to be worked on.EnhancementIssues that introduce new functionality to the project, or enhances/updates existing functionality.NO RELEASE NOTESShould not be included in the release notes - not enhancing or fixing end product.TestsIssues related to the tests (NUnit, xUnit, Pester, etc).

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions