Skip to content
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

test: de-duplicate plan definitions #846

Merged
merged 3 commits into from
Mar 29, 2023
Merged

test: de-duplicate plan definitions #846

merged 3 commits into from
Mar 29, 2023

Conversation

blgm
Copy link
Member

@blgm blgm commented Mar 28, 2023

Instead of maintaining plan definitions in the tests, they should be read from the source of truth - the .envrc file. This reduces duplication and the tendency for the definitions to drift apart.

Instead of maintaining plan definitions in the tests, they should be read from the source of truth - the `.envrc` file. This reduces duplication and the tendency for the definitions to drift apart.
@cf-gitbot
Copy link

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/184814890

The labels on this github issue will be updated when the story is started.

@@ -14,16 +14,11 @@ import (
var _ = Describe("Redis", Label("redis"), func() {
When("upgrading broker version", func() {
It("should continue to work", func() {
if brokerpaks.DetectBrokerpakV140(releasedBuildDir) {
Skip("Brokerpak 1.4.0 and earlier no longer can create AWS Redis service instances")

Choose a reason for hiding this comment

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

I am not sure how we are replacing this. Are we skipping somehow differently? Or just getting rid of it as those versions are not longer tested?

Copy link
Member Author

@blgm blgm Mar 29, 2023

Choose a reason for hiding this comment

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

We test the 1.6.0 -> 1.6.1 upgrade currently, so as you say those versions are no longer tested. If we start testing them in the future, we can add the check back quite easily. The current implementation confused me: is it just 1.4.0, 1.4.0 and higher, or 1.4.0 and lower? So I just got rid of it.

@blgm blgm merged commit 17f2603 into main Mar 29, 2023
@blgm blgm deleted the envrcparsing branch March 29, 2023 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

3 participants