Skip to content

[synthetics_test] update api client to ensure the message field is set for mobile tests #3082

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

Merged
merged 1 commit into from
Jun 30, 2025

Conversation

zach-b
Copy link
Contributor

@zach-b zach-b commented Jun 30, 2025

Currently, when the message field is not set for a synthetics mobile test, the "" default value is not sent to our API, resulting in a 400 error (schema.ResourceData.GetOk returns "", false for an empty string

if attr, ok := d.GetOk("message"); ok {

).

This update of the client ensures the request will be sent with the message field set to an empty string instead in this case.

Related client change: DataDog/datadog-api-client-go#3182

@zach-b zach-b requested review from a team as code owners June 30, 2025 12:31
@Supam Supam merged commit ff91ef3 into master Jun 30, 2025
17 of 19 checks passed
@Supam Supam deleted the zach-b/SYNTH-20395/req-mobile-message branch June 30, 2025 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants