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

[WIP] Sla resource Acc test fixes #206

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

Conversation

tamccall
Copy link
Contributor

Working to fix issues with the sla policy Acc tests

@tamccall tamccall requested a review from nukosuke as a code owner April 16, 2020 04:51

all {
# TODO: this is failing on the ACC test.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@nukosuke after looking into this a bit more I think the problem here is that zendesk is translating the input here:

It is taking this:

  all {
    # TODO: this is failing on the ACC test.
    field    = "type"
    operator = "is"
    value    = "incident"
  }

and turning it into something like this

  all {
    # TODO: this is failing on the ACC test.
    field    = "ticket_type_id"
    operator = "is"
    value    = 2
  }

but that said I am not exactly sure of the best way to solve this. Seems like we might have to figure out how to translate the response from zendesk back into the resource listed in the terraform file.

Curious if you have thoughts.

See: https://developer.zendesk.com/rest_api/docs/support/views#additional-sla-policies-conditions

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.

1 participant