Skip to content

Conversation

@radical
Copy link
Member

@radical radical commented Jan 23, 2024

[tests] ConformanceTests: Remove dependency on GetRepoRoot

.. by changing the tests to expect `ConfigurationSchema.json` to be
available next to the test assembly.

[tests] Deploy ConfigurationSchema.json to the test output dir

[tests] Avoid redundant tests in Redis Caching tests

Both `Aspire.StackExchange.Redis.DistributedCaching`, and
`Aspire.StackExchange.Redis.OutputCaching` have
`ConfigurationSchema.json` which reference `Aspire.StackExchange.Redis`
without adding anything more.

But the tests for those two run validation for the
`Aspire.StackExchange.Redis` schema, which is already done by the main
tests. Instead of that:

- `Aspire.StackExchange.Redis` - continue doing the validation tests
- `Aspire.StackExchange.Redis.{Output,Distributed}Caching`
    - Run the validation test for the schema against the the project's
      own schema
    - And don't check for any invalid cases since there is nothing being
      added in the schema
Microsoft Reviewers: Open in CodeFlow

@ghost ghost added the area-integrations Issues pertaining to Aspire Integrations packages label Jan 23, 2024
.. by changing the tests to expect `ConfigurationSchema.json` to be
available next to the test assembly.
Both `Aspire.StackExchange.Redis.DistributedCaching`, and
`Aspire.StackExchange.Redis.OutputCaching` have
`ConfigurationSchema.json` which reference `Aspire.StackExchange.Redis`
without adding anything more.

But the tests for those two run validation for the
`Aspire.StackExchange.Redis` schema, which is already done by the main
tests. Instead of that:

- `Aspire.StackExchange.Redis` - continue doing the validation tests
- `Aspire.StackExchange.Redis.{Output,Distributed}Caching`
    - Run the validation test for the schema against the the project's
      own schema
    - And don't check for any invalid cases since there is nothing being
      added in the schema
@radical radical requested review from eerhardt and joperezr January 24, 2024 00:42
@radical radical marked this pull request as ready for review January 24, 2024 00:43
Copy link
Member

@eerhardt eerhardt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing these.

Looks good. I just have one suggestion and a nit.

@radical radical enabled auto-merge (squash) January 24, 2024 19:07
@radical radical merged commit dff1467 into dotnet:main Jan 24, 2024
@radical radical deleted the tests-repo-root branch January 24, 2024 19:47
@github-actions github-actions bot locked and limited conversation to collaborators Apr 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-integrations Issues pertaining to Aspire Integrations packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants