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

Migrate resource ec_deployment_traffic_filter to terraform-provider-framework #8

Conversation

pascal-hofmann
Copy link
Collaborator

Migrate resource ec_deployment_traffic_filter to terraform-provider-framework

The behavior of the default_value plan_modifier changes, so it also applies default values when the value has been explicitly specified before.

Unit test timeout increased.

Related Issues

Motivation and Context

How Has This Been Tested?

Types of Changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactoring (improves code quality but has no user-facing effect)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation

Readiness Checklist

  • My code follows the code style of this project
  • My change requires a change to the documentation
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • All new and existing tests passed

@pascal-hofmann pascal-hofmann force-pushed the feature/530/trafficfilterresource branch 3 times, most recently from 4803616 to 5a193b0 Compare September 18, 2022 10:12
@pascal-hofmann pascal-hofmann marked this pull request as ready for review September 19, 2022 06:35
if err := d.Set("include_by_default", res.IncludeByDefault); err != nil {
return err
}
diags.Append(flattenRules(ctx, res.Rules, &state.Rule)...)

if res.Description != "" {
Copy link
Owner

Choose a reason for hiding this comment

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

It looks like Description.Null if false here. Shall we remove the if check or set Null to true if Description is empty?

Copy link
Collaborator Author

@pascal-hofmann pascal-hofmann Sep 21, 2022

Choose a reason for hiding this comment

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

Good catch. Fixed.

@dimuon
Copy link
Owner

dimuon commented Sep 20, 2022

@pascal-hofmann , I'm sorry if I missed something, but does it make sense to add migration tests as you did in the previous PR?

@pascal-hofmann pascal-hofmann force-pushed the feature/530/trafficfilterresource branch 2 times, most recently from 64e7b70 to eef1ebe Compare September 21, 2022 07:16
@pascal-hofmann
Copy link
Collaborator Author

@pascal-hofmann , I'm sorry if I missed something, but does it make sense to add migration tests as you did in the previous PR?

I just added the missing migration test.

@pascal-hofmann pascal-hofmann force-pushed the feature/530/trafficfilterresource branch from eef1ebe to 4307d41 Compare September 21, 2022 07:27
…ramework

The behavior of the default_value plan_modifier changes, so
it also applies default values when the value has been explicitly
specified before.

Unit test timeout increased.

Switch to v6 provider in tests.
@pascal-hofmann pascal-hofmann force-pushed the feature/530/trafficfilterresource branch from 4307d41 to c197f28 Compare September 21, 2022 07:35
@dimuon dimuon merged commit c4aebde into feature/530/migrate-to-plugin-framework Sep 21, 2022
@pascal-hofmann pascal-hofmann deleted the feature/530/trafficfilterresource branch September 21, 2022 07:45
dimuon added a commit that referenced this pull request Feb 2, 2023
Migrate resource ec_deployment_traffic_filter to terraform-provider-framework
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.

2 participants