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

build-config/project: updating the name field / making step Optional & Computed #82

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

tombuildsstuff
Copy link
Contributor

@tombuildsstuff tombuildsstuff commented Apr 24, 2020

This PR makes three changes:

  • Build Configuration: support for updating the Name
  • Build Configuration: making the step block Computed
  • Project: support for updating the Name

When creating a Build Configuration based on a Template, once the build has first been created - Terraform shows a diff because the Build Steps are missing from the configuration but returned from the API.

As such this commit makes this block Optional & Computed so that this diff can be omitted if a user hasn't specified any step blocks to override this in the config (e.g. wants to /only/ use steps from the template).

Dependent on cvbarros/go-teamcity#81
Dependent on cvbarros/go-teamcity#82

When creating a Build Configuration based on a Template, once the
build has first been created - Terraform shows a diff because the
Build Steps are missing from the configuration but returned from
the API.

As such this commit makes this block `Optional` & `Computed` so that
this diff can be omitted if a user hasn't specified any `step` blocks
to override this in the config (e.g. wants to /only/ use steps from
the template).
@cvbarros cvbarros added this to the 1.1 milestone Apr 24, 2020
@cvbarros cvbarros mentioned this pull request Jun 11, 2020
@cvbarros cvbarros modified the milestones: 1.1, 1.2 Jun 11, 2020
Copy link
Owner

@cvbarros cvbarros left a comment

Choose a reason for hiding this comment

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

👋 @tombuildsstuff this is gtg, except for a minor comment - client 1.2.0 has been pushed, so if you could kindly rebase on master for CI tests, that would be 💯 . Thanks!

Config: testAccTeamcityProjectFullUpdated,
Check: resource.ComposeTestCheckFunc(
testAccCheckTeamcityProjectExists(resName, &p),
resource.TestCheckResourceAttr(resName, "description", "updated project"),
Copy link
Owner

Choose a reason for hiding this comment

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

Would this attr check be name or description?

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.

None yet

2 participants