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

Error importing runscope_step #19

Open
Popls opened this issue Oct 8, 2021 · 0 comments · May be fixed by #21
Open

Error importing runscope_step #19

Popls opened this issue Oct 8, 2021 · 0 comments · May be fixed by #21

Comments

@Popls
Copy link

Popls commented Oct 8, 2021

When a runscope_step is imported with one of the next command line:

terraform import runscope_step.test_step <BUCKET_ID>/<TEST_ID>/<STEP_ID>
terraform import runscope_step.test_step <BUCKET_ID>/<TEST_ID>#<STEP_POSITION>

An error is retrieved:

Error: Couldn't read step: json: cannot unmarshal number into Go struct field StepAssertion.data.assertions.value of type string

It happens with a step with the next information:

url  = "https://XXXXXX"
method = "GET"
source = "response_status"
comparison = "equal_number"
value = "200"
jinnko added a commit to trint-it/terraform-provider-runscope that referenced this issue Apr 29, 2022
We need to be able to use number types when creating, updating or
importing assertions of a response_status because the API returns a
number type for these field.

Fixes sport24ru#19

Pair: @bogdan-largeanu @jinnko
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 a pull request may close this issue.

1 participant