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

Don't ignore options diff in synthetics resource #707

Merged
merged 5 commits into from
Oct 19, 2020

Conversation

therve
Copy link
Contributor

@therve therve commented Oct 14, 2020

We ignore the diff completely when options_list is set, which sounds
like unwanted behavior.

Closes #697

We ignore the diff completely when options_list is set, which sounds
like unwanted behavior.

Closes #697
@therve therve requested review from a team as code owners October 14, 2020 09:01
romainberger
romainberger previously approved these changes Oct 14, 2020
@therve
Copy link
Contributor Author

therve commented Oct 14, 2020

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

@jirikuncar jirikuncar left a comment

Choose a reason for hiding this comment

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

@therve can we add a regression test case?

@therve
Copy link
Contributor Author

therve commented Oct 14, 2020

@therve can we add a regression test case?

It's going to be tough because we ignore diffs on those particular fields in the tests. I'll have a look.

@therve
Copy link
Contributor Author

therve commented Oct 19, 2020

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@@ -263,6 +263,23 @@ func TestAccDatadogSyntheticsTCPTest_Basic(t *testing.T) {
})
}

func TestAccDatadogSyntheticsTCPLegacyOptionsTest_Basic(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this test give us anything specific?
The other two look to cover the case of

  • ensuring we can still set the old options
  • ensuring that if you upgrade from old -> new, the old is no longer present

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, updated a test instead. We do cover the 2 point.

nmuesch
nmuesch previously approved these changes Oct 19, 2020
Copy link
Contributor

@nmuesch nmuesch left a comment

Choose a reason for hiding this comment

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

LGTM, left one question about a test

@therve therve merged commit f1386e9 into master Oct 19, 2020
@therve therve deleted the therve/synthetics-options-diff branch October 19, 2020 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Changed synthetics_test options to options_list, but options are still in the result of plan.
4 participants