8000 Deprecate the Ocelot.Testing project in favor of its NuGet package by raman-m · Pull Request #2295 · ThreeMammals/Ocelot · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Deprecate the Ocelot.Testing project in favor of its NuGet package #2295

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 23 commits into from
May 23, 2025

Conversation

raman-m
Copy link
Member
@raman-m raman-m commented May 22, 2025

Synchronize Ocelot code with the Ocelot.Testing package

Ocelot.Testing package (v24.0) was released on May 15, 2025

  1. This PR deprecates the Ocelot.Testing project of Ocelot monorepository in favor of its Ocelot.Testing NuGet package.
  2. This PR is required before the first release of the Ocelot.Administration.IdentityServer4 extension package.

Proposed Changes

  • (Re)developed the Ocelot.Testing library as a common testing library focused on unit and acceptance testing. The goal is to have one universally useful library for testing all extension packages.
    FYI: The Steps class functionality was moved to the Ocelot.Testing library as an AcceptanceSteps class, but the Steps class remains a part of Ocelot's acceptance testing as the base class for all testing classes. Other important classes, such as BearerToken, ServiceHandler, and PortFinder, are now part of the Ocelot.Testing library.
  • Deprecated the Ocelot.Testing project in favor of its Ocelot.Testing NuGet package. ❗ This is the ultimate goal of this PR ❗
  • Deprecated the old Ocelot.IntegrationTests project, moving most of the integration tests to acceptance testing. None of them were unit tests.
  • FYI: Identity Server 4 Administration tests were part of the deprecated Ocelot.IntegrationTests and are now located in the Ocelot.Administration.IdentityServer4 repository. 8000 Ocelot's native Admin API tests must be redeveloped soon using the ASP.NET Identity framework.
  • Reviewed and improved all unit & acceptance tests to reuse actual helpers from the Ocelot.Testing library (v24.0).

raman-m added 23 commits April 30, 2025 21:27
@raman-m raman-m 8000 added this to the Spring'25 milestone May 22, 2025
@raman-m raman-m requested review from RaynaldM and ggnaegi May 22, 2025 16:42
@raman-m raman-m self-assigned this May 22, 2025
@raman-m raman-m added Core Ocelot Core related or system upgrade (not a public feature) Spring'25 Spring 2025 release labels May 22, 2025
@coveralls
Copy link
Collaborator

Coverage Status

coverage: 85.972% (+0.2%) from 85.75%
when pulling ed03232 on 24.0.1-Ocelot.Testing
into e78fe42 on develop.

@raman-m raman-m merged commit cae58d5 into develop May 23, 2025
4 checks passed
@raman-m raman-m deleted the 24.0.1-Ocelot.Testing branch May 23, 2025 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core Ocelot Core related or system upgrade (not a public feature) Spring'25 Spring 2025 release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0