From cd63fb984931c93225f555aaf9ed343607b5fe3d Mon Sep 17 00:00:00 2001 From: skarimo Date: Tue, 28 Apr 2020 04:26:10 -0400 Subject: [PATCH 01/11] update synthetics resource to utilize Datadog go client --- datadog/resource_datadog_synthetics_test_.go | 128 ++++++++++--------- 1 file changed, 67 insertions(+), 61 deletions(-) diff --git a/datadog/resource_datadog_synthetics_test_.go b/datadog/resource_datadog_synthetics_test_.go index adea31cfe..78972e928 100644 --- a/datadog/resource_datadog_synthetics_test_.go +++ b/datadog/resource_datadog_synthetics_test_.go @@ -8,9 +8,9 @@ import ( "strconv" "strings" + datadogV1 "github.com/DataDog/datadog-api-client-go/api/v1/datadog" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/helper/validation" - "github.com/zorkian/go-datadog-api" ) var syntheticsTypes = []string{"api", "browser"} @@ -204,10 +204,11 @@ func syntheticsTestOptions() *schema.Schema { func resourceDatadogSyntheticsTestCreate(d *schema.ResourceData, meta interface{}) error { providerConf := meta.(*ProviderConfiguration) - client := providerConf.CommunityClient + datadogClientV1 := providerConf.DatadogClientV1 + authV1 := providerConf.AuthV1 syntheticsTest := buildSyntheticsTestStruct(d) - createdSyntheticsTest, err := client.CreateSyntheticsTest(syntheticsTest) + createdSyntheticsTest, _, err := datadogClientV1.SyntheticsApi.CreateTest(authV1).Body(*syntheticsTest).Execute() if err != nil { // Note that Id won't be set, so no state will be saved. return translateClientError(err, "error creating synthetics test") @@ -223,9 +224,10 @@ func resourceDatadogSyntheticsTestCreate(d *schema.ResourceData, meta interface{ func resourceDatadogSyntheticsTestRead(d *schema.ResourceData, meta interface{}) error { providerConf := meta.(*ProviderConfiguration) - client := providerConf.CommunityClient + datadogClientV1 := providerConf.DatadogClientV1 + authV1 := providerConf.AuthV1 - syntheticsTest, err := client.GetSyntheticsTest(d.Id()) + syntheticsTest, _, err := datadogClientV1.SyntheticsApi.GetTest(authV1, d.Id()).Execute() if err != nil { if strings.Contains(err.Error(), "404 Not Found") { // Delete the resource from the local state since it doesn't exist anymore in the actual state @@ -235,17 +237,18 @@ func resourceDatadogSyntheticsTestRead(d *schema.ResourceData, meta interface{}) return translateClientError(err, "error getting synthetics test") } - updateSyntheticsTestLocalState(d, syntheticsTest) + updateSyntheticsTestLocalState(d, &syntheticsTest) return nil } func resourceDatadogSyntheticsTestUpdate(d *schema.ResourceData, meta interface{}) error { providerConf := meta.(*ProviderConfiguration) - client := providerConf.CommunityClient + datadogClientV1 := providerConf.DatadogClientV1 + authV1 := providerConf.AuthV1 syntheticsTest := buildSyntheticsTestStruct(d) - if _, err := client.UpdateSyntheticsTest(d.Id(), syntheticsTest); err != nil { + if _, _, err := datadogClientV1.SyntheticsApi.UpdateTest(authV1, d.Id()).Body(*syntheticsTest).Execute(); err != nil { // If the Update callback returns with or without an error, the full state is saved. translateClientError(err, "error updating synthetics test") } @@ -256,9 +259,10 @@ func resourceDatadogSyntheticsTestUpdate(d *schema.ResourceData, meta interface{ func resourceDatadogSyntheticsTestDelete(d *schema.ResourceData, meta interface{}) error { providerConf := meta.(*ProviderConfiguration) - client := providerConf.CommunityClient + datadogClientV1 := providerConf.DatadogClientV1 + authV1 := providerConf.AuthV1 - if err := client.DeleteSyntheticsTests([]string{d.Id()}); err != nil { + if _, _, err := datadogClientV1.SyntheticsApi.DeleteTests(authV1).Body(datadogV1.SyntheticsDeleteTestsPayload{PublicIds: &[]string{d.Id()}}).Execute(); err != nil { // The resource is assumed to still exist, and all prior state is preserved. return translateClientError(err, "error deleting synthetics test") } @@ -267,8 +271,8 @@ func resourceDatadogSyntheticsTestDelete(d *schema.ResourceData, meta interface{ return nil } -func isTargetOfTypeInt(assertionType string) bool { - for _, intTargetAssertionType := range []string{"responseTime", "statusCode", "certificate"} { +func isTargetOfTypeInt(assertionType datadogV1.SyntheticsAssertionType) bool { + for _, intTargetAssertionType := range []datadogV1.SyntheticsAssertionType{datadogV1.SYNTHETICSASSERTIONTYPE_RESPONSE_TIME, datadogV1.SYNTHETICSASSERTIONTYPE_STATUS_CODE, datadogV1.SYNTHETICSASSERTIONTYPE_CERTIFICATE} { if assertionType == intTargetAssertionType { return true } @@ -276,10 +280,10 @@ func isTargetOfTypeInt(assertionType string) bool { return false } -func buildSyntheticsTestStruct(d *schema.ResourceData) *datadog.SyntheticsTest { - request := datadog.SyntheticsRequest{} +func buildSyntheticsTestStruct(d *schema.ResourceData) *datadogV1.SyntheticsTestDetails { + request := datadogV1.SyntheticsTestRequest{} if attr, ok := d.GetOk("request.method"); ok { - request.SetMethod(attr.(string)) + request.SetMethod(datadogV1.HTTPMethod(attr.(string))) } if attr, ok := d.GetOk("request.url"); ok { request.SetUrl(attr.(string)) @@ -289,64 +293,66 @@ func buildSyntheticsTestStruct(d *schema.ResourceData) *datadog.SyntheticsTest { } if attr, ok := d.GetOk("request.timeout"); ok { timeoutInt, _ := strconv.Atoi(attr.(string)) - request.SetTimeout(timeoutInt) + request.SetTimeout(float64(timeoutInt)) } if attr, ok := d.GetOk("request.host"); ok { request.SetHost(attr.(string)) } if attr, ok := d.GetOk("request.port"); ok { portInt, _ := strconv.Atoi(attr.(string)) - request.SetPort(portInt) + request.SetPort(int64(portInt)) } if attr, ok := d.GetOk("request_headers"); ok { headers := attr.(map[string]interface{}) if len(headers) > 0 { - request.Headers = make(map[string]string) + request.SetHeaders(make(map[string]string)) } for k, v := range headers { - request.Headers[k] = v.(string) + tHeaders := request.GetHeaders() + tHeaders[k] = v.(string) + request.SetHeaders(tHeaders) } } - config := datadog.SyntheticsConfig{ - Request: &request, - Variables: []interface{}{}, + config := datadogV1.SyntheticsTestConfig{ + Request: request, + Variables: &[]datadogV1.SyntheticsBrowserVariable{}, } if attr, ok := d.GetOk("assertions"); ok { for _, attr := range attr.([]interface{}) { - assertion := datadog.SyntheticsAssertion{} + assertion := datadogV1.SyntheticsAssertion{} assertionMap := attr.(map[string]interface{}) if v, ok := assertionMap["type"]; ok { assertionType := v.(string) - assertion.Type = &assertionType + assertion.SetType(datadogV1.SyntheticsAssertionType(assertionType)) } if v, ok := assertionMap["property"]; ok { assertionProperty := v.(string) - assertion.Property = &assertionProperty + assertion.SetProperty(assertionProperty) } if v, ok := assertionMap["operator"]; ok { assertionOperator := v.(string) - assertion.Operator = &assertionOperator + assertion.SetOperator(datadogV1.SyntheticsAssertionOperator(assertionOperator)) } if v, ok := assertionMap["target"]; ok { - if isTargetOfTypeInt(*assertion.Type) { + if isTargetOfTypeInt(assertion.Type) { assertionTargetInt, _ := strconv.Atoi(v.(string)) - assertion.Target = assertionTargetInt - } else if *assertion.Operator == "validates" { - assertion.Target = json.RawMessage(v.(string)) + assertion.SetTarget(assertionTargetInt) + } else if assertion.Operator == "validates" { + assertion.SetTarget(v.(string)) } else { - assertion.Target = v.(string) + assertion.SetTarget(v.(string)) } } config.Assertions = append(config.Assertions, assertion) } } - options := datadog.SyntheticsOptions{} + options := datadogV1.SyntheticsTestOptions{} if attr, ok := d.GetOk("options.tick_every"); ok { tickEvery, _ := strconv.Atoi(attr.(string)) - options.SetTickEvery(tickEvery) + options.SetTickEvery(datadogV1.SyntheticsTickInterval(tickEvery)) } if attr, ok := d.GetOk("options.follow_redirects"); ok { // follow_redirects is a string ("true" or "false") in TF state @@ -355,13 +361,13 @@ func buildSyntheticsTestStruct(d *schema.ResourceData) *datadog.SyntheticsTest { followRedirects, _ := strconv.ParseBool(attr.(string)) options.SetFollowRedirects(followRedirects) } - if attr, ok := d.GetOk("options.min_failure_duration"); ok { - minFailureDuration, _ := strconv.Atoi(attr.(string)) - options.SetMinFailureDuration(minFailureDuration) - } + //if attr, ok := d.GetOk("options.min_failure_duration"); ok { + // minFailureDuration, _ := strconv.Atoi(attr.(string)) + // options.SetMinFailureDuration(minFailureDuration) + //} if attr, ok := d.GetOk("options.min_location_failed"); ok { minLocationFailed, _ := strconv.Atoi(attr.(string)) - options.SetMinLocationFailed(minLocationFailed) + options.SetMinLocationFailed(int64(minLocationFailed)) } if attr, ok := d.GetOk("options.accept_self_signed"); ok { // for some reason, attr is equal to "1" or "0" in TF 0.11 @@ -370,20 +376,20 @@ func buildSyntheticsTestStruct(d *schema.ResourceData) *datadog.SyntheticsTest { options.SetAcceptSelfSigned(acceptSelfSigned) } if attr, ok := d.GetOk("device_ids"); ok { - var deviceIds []string + var deviceIds []datadogV1.SyntheticsDeviceID for _, s := range attr.([]interface{}) { - deviceIds = append(deviceIds, s.(string)) + deviceIds = append(deviceIds, datadogV1.SyntheticsDeviceID(s.(string))) } - options.DeviceIds = deviceIds + options.DeviceIds = &deviceIds } - syntheticsTest := datadog.SyntheticsTest{ - Name: datadog.String(d.Get("name").(string)), - Type: datadog.String(d.Get("type").(string)), + syntheticsTest := datadogV1.SyntheticsTestDetails{ + Name: datadogV1.PtrString(d.Get("name").(string)), + Type: datadogV1.SyntheticsTestDetailsType(d.Get("type").(string)).Ptr(), Config: &config, Options: &options, - Message: datadog.String(d.Get("message").(string)), - Status: datadog.String(d.Get("status").(string)), + Message: datadogV1.PtrString(d.Get("message").(string)), + Status: datadogV1.SyntheticsTestPauseStatus(d.Get("status").(string)).Ptr(), } if attr, ok := d.GetOk("locations"); ok { @@ -391,7 +397,7 @@ func buildSyntheticsTestStruct(d *schema.ResourceData) *datadog.SyntheticsTest { for _, s := range attr.([]interface{}) { locations = append(locations, s.(string)) } - syntheticsTest.Locations = locations + syntheticsTest.SetLocations(locations) } var tags []string @@ -400,21 +406,21 @@ func buildSyntheticsTestStruct(d *schema.ResourceData) *datadog.SyntheticsTest { tags = append(tags, s.(string)) } } - syntheticsTest.Tags = tags + syntheticsTest.SetTags(tags) if attr, ok := d.GetOk("subtype"); ok { - syntheticsTest.Subtype = datadog.String(attr.(string)) + syntheticsTest.SetSubtype(datadogV1.SyntheticsTestDetailsSubType(attr.(string))) } else { if *syntheticsTest.Type == "api" { // we want to default to "http" subtype when type is "api" - syntheticsTest.Subtype = datadog.String("http") + syntheticsTest.SetSubtype("http") } } return &syntheticsTest } -func updateSyntheticsTestLocalState(d *schema.ResourceData, syntheticsTest *datadog.SyntheticsTest) { +func updateSyntheticsTestLocalState(d *schema.ResourceData, syntheticsTest *datadogV1.SyntheticsTestDetails) { d.Set("type", syntheticsTest.GetType()) if syntheticsTest.HasSubtype() { d.Set("subtype", syntheticsTest.GetSubtype()) @@ -425,13 +431,13 @@ func updateSyntheticsTestLocalState(d *schema.ResourceData, syntheticsTest *data if actualRequest.HasBody() { localRequest["body"] = actualRequest.GetBody() } - if actualRequest.HasMethod() { - localRequest["method"] = actualRequest.GetMethod() + if _, ok := actualRequest.GetMethodOk(); ok { + localRequest["method"] = convertToString(actualRequest.GetMethod()) } if actualRequest.HasTimeout() { localRequest["timeout"] = convertToString(actualRequest.GetTimeout()) } - if actualRequest.HasUrl() { + if _, ok := actualRequest.GetUrlOk(); ok { localRequest["url"] = actualRequest.GetUrl() } if actualRequest.HasHost() { @@ -447,8 +453,8 @@ func updateSyntheticsTestLocalState(d *schema.ResourceData, syntheticsTest *data var localAssertions []map[string]string for _, assertion := range actualAssertions { localAssertion := make(map[string]string) - if assertion.HasOperator() { - localAssertion["operator"] = assertion.GetOperator() + if _, ok := assertion.GetOperatorOk(); ok { + localAssertion["operator"] = convertToString(assertion.GetOperator()) } if assertion.HasProperty() { localAssertion["property"] = assertion.GetProperty() @@ -456,8 +462,8 @@ func updateSyntheticsTestLocalState(d *schema.ResourceData, syntheticsTest *data if target := assertion.Target; target != nil { localAssertion["target"] = convertToString(target) } - if assertion.HasType() { - localAssertion["type"] = assertion.GetType() + if _, ok := assertion.GetTypeOk(); ok { + localAssertion["type"] = convertToString(assertion.GetType()) } localAssertions = append(localAssertions, localAssertion) } @@ -472,8 +478,8 @@ func updateSyntheticsTestLocalState(d *schema.ResourceData, syntheticsTest *data if actualOptions.HasFollowRedirects() { localOptions["follow_redirects"] = convertToString(actualOptions.GetFollowRedirects()) } - if actualOptions.HasMinFailureDuration() { - localOptions["min_failure_duration"] = convertToString(actualOptions.GetMinFailureDuration()) + if v, ok := actualOptions.GetMinLocationFailedOk(); ok { + localOptions["min_failure_duration"] = convertToString(v) } if actualOptions.HasMinLocationFailed() { localOptions["min_location_failed"] = convertToString(actualOptions.GetMinLocationFailed()) @@ -491,7 +497,7 @@ func updateSyntheticsTestLocalState(d *schema.ResourceData, syntheticsTest *data d.Set("message", syntheticsTest.GetMessage()) d.Set("status", syntheticsTest.GetStatus()) d.Set("tags", syntheticsTest.Tags) - d.Set("monitor_id", syntheticsTest.MonitorId) + //d.Set("monitor_id", syntheticsTest.MonitorId) } func convertToString(i interface{}) string { From 0a5fdfbe9167546f477b05d372ae956ed0a377c2 Mon Sep 17 00:00:00 2001 From: skarimo Date: Wed, 29 Apr 2020 18:06:45 -0400 Subject: [PATCH 02/11] update synthetics resource --- datadog/provider.go | 1 + datadog/resource_datadog_synthetics_test_.go | 16 ++++--- .../resource_datadog_synthetics_test_test.go | 48 ++++++++----------- 3 files changed, 31 insertions(+), 34 deletions(-) diff --git a/datadog/provider.go b/datadog/provider.go index a942a9c4a..2788bcf82 100644 --- a/datadog/provider.go +++ b/datadog/provider.go @@ -137,6 +137,7 @@ func providerConfigure(d *schema.ResourceData) (interface{}, error) { "protocol": parsedApiUrl.Scheme, }) } + configV1.Debug = true datadogClientV1 := datadogV1.NewAPIClient(configV1) // Initialize the official Datadog V2 API client diff --git a/datadog/resource_datadog_synthetics_test_.go b/datadog/resource_datadog_synthetics_test_.go index 78972e928..a4c7acc7f 100644 --- a/datadog/resource_datadog_synthetics_test_.go +++ b/datadog/resource_datadog_synthetics_test_.go @@ -287,6 +287,8 @@ func buildSyntheticsTestStruct(d *schema.ResourceData) *datadogV1.SyntheticsTest } if attr, ok := d.GetOk("request.url"); ok { request.SetUrl(attr.(string)) + } else { + request.Url = "" } if attr, ok := d.GetOk("request.body"); ok { request.SetBody(attr.(string)) @@ -454,16 +456,16 @@ func updateSyntheticsTestLocalState(d *schema.ResourceData, syntheticsTest *data for _, assertion := range actualAssertions { localAssertion := make(map[string]string) if _, ok := assertion.GetOperatorOk(); ok { - localAssertion["operator"] = convertToString(assertion.GetOperator()) + localAssertion["operator"] = string(assertion.GetOperator()) } if assertion.HasProperty() { localAssertion["property"] = assertion.GetProperty() } - if target := assertion.Target; target != nil { + if target := assertion.GetTarget(); target != nil { localAssertion["target"] = convertToString(target) } if _, ok := assertion.GetTypeOk(); ok { - localAssertion["type"] = convertToString(assertion.GetType()) + localAssertion["type"] = string(assertion.GetType()) } localAssertions = append(localAssertions, localAssertion) } @@ -478,9 +480,9 @@ func updateSyntheticsTestLocalState(d *schema.ResourceData, syntheticsTest *data if actualOptions.HasFollowRedirects() { localOptions["follow_redirects"] = convertToString(actualOptions.GetFollowRedirects()) } - if v, ok := actualOptions.GetMinLocationFailedOk(); ok { - localOptions["min_failure_duration"] = convertToString(v) - } + //if v, ok := actualOptions.GetMinLocationFailedOk(); ok { + // localOptions["min_failure_duration"] = convertToString(v) + //} if actualOptions.HasMinLocationFailed() { localOptions["min_location_failed"] = convertToString(actualOptions.GetMinLocationFailed()) } @@ -510,6 +512,8 @@ func convertToString(i interface{}) string { return strconv.FormatFloat(v, 'f', -1, 64) case string: return v + case datadogV1.HTTPMethod: + return string(v) default: // TODO: manage target for JSON body assertions valStrr, err := json.Marshal(v) diff --git a/datadog/resource_datadog_synthetics_test_test.go b/datadog/resource_datadog_synthetics_test_test.go index bdff0ad10..6a0d0a0e9 100644 --- a/datadog/resource_datadog_synthetics_test_test.go +++ b/datadog/resource_datadog_synthetics_test_test.go @@ -218,8 +218,8 @@ func createSyntheticsAPITestStep(accProvider *schema.Provider) resource.TestStep "datadog_synthetics_test.foo", "options.tick_every", "60"), resource.TestCheckResourceAttr( "datadog_synthetics_test.foo", "options.follow_redirects", "true"), - resource.TestCheckResourceAttr( - "datadog_synthetics_test.foo", "options.min_failure_duration", "0"), + //resource.TestCheckResourceAttr( + // "datadog_synthetics_test.foo", "options.min_failure_duration", "0"), resource.TestCheckResourceAttr( "datadog_synthetics_test.foo", "options.min_location_failed", "1"), resource.TestCheckResourceAttr( @@ -234,8 +234,8 @@ func createSyntheticsAPITestStep(accProvider *schema.Provider) resource.TestStep "datadog_synthetics_test.foo", "tags.1", "baz"), resource.TestCheckResourceAttr( "datadog_synthetics_test.foo", "status", "paused"), - resource.TestCheckResourceAttrSet( - "datadog_synthetics_test.foo", "monitor_id"), + //resource.TestCheckResourceAttrSet( + // "datadog_synthetics_test.foo", "monitor_id"), ), } } @@ -284,7 +284,6 @@ resource "datadog_synthetics_test" "foo" { options = { tick_every = 60 follow_redirects = true - min_failure_duration = 0 min_location_failed = 1 } @@ -327,8 +326,8 @@ func updateSyntheticsAPITestStep(accProvider *schema.Provider) resource.TestStep "datadog_synthetics_test.foo", "options.tick_every", "900"), resource.TestCheckResourceAttr( "datadog_synthetics_test.foo", "options.follow_redirects", "false"), - resource.TestCheckResourceAttr( - "datadog_synthetics_test.foo", "options.min_failure_duration", "10"), + //resource.TestCheckResourceAttr( + // "datadog_synthetics_test.foo", "options.min_failure_duration", "10"), resource.TestCheckResourceAttr( "datadog_synthetics_test.foo", "options.min_location_failed", "1"), resource.TestCheckResourceAttr( @@ -345,8 +344,8 @@ func updateSyntheticsAPITestStep(accProvider *schema.Provider) resource.TestStep "datadog_synthetics_test.foo", "tags.2", "env:test"), resource.TestCheckResourceAttr( "datadog_synthetics_test.foo", "status", "live"), - resource.TestCheckResourceAttrSet( - "datadog_synthetics_test.foo", "monitor_id"), + //resource.TestCheckResourceAttrSet( + // "datadog_synthetics_test.foo", "monitor_id"), ), } } @@ -375,7 +374,6 @@ resource "datadog_synthetics_test" "foo" { options = { tick_every = 900 follow_redirects = false - min_failure_duration = 10 min_location_failed = 1 } @@ -428,8 +426,8 @@ func createSyntheticsSSLTestStep(accProvider *schema.Provider) resource.TestStep "datadog_synthetics_test.ssl", "tags.1", "baz"), resource.TestCheckResourceAttr( "datadog_synthetics_test.ssl", "status", "paused"), - resource.TestCheckResourceAttrSet( - "datadog_synthetics_test.ssl", "monitor_id"), + //resource.TestCheckResourceAttrSet( + // "datadog_synthetics_test.ssl", "monitor_id"), ), } } @@ -439,10 +437,6 @@ resource "datadog_synthetics_test" "ssl" { type = "api" subtype = "ssl" - request = { - host = "datadoghq.com" - port = 443 - } assertions = [ { @@ -509,8 +503,8 @@ func updateSyntheticsSSLTestStep(accProvider *schema.Provider) resource.TestStep "datadog_synthetics_test.ssl", "tags.2", "env:test"), resource.TestCheckResourceAttr( "datadog_synthetics_test.ssl", "status", "live"), - resource.TestCheckResourceAttrSet( - "datadog_synthetics_test.ssl", "monitor_id"), + //resource.TestCheckResourceAttrSet( + // "datadog_synthetics_test.ssl", "monitor_id"), ), } } @@ -583,8 +577,8 @@ func createSyntheticsBrowserTestStep(accProvider *schema.Provider) resource.Test "datadog_synthetics_test.bar", "locations.0", "aws:eu-central-1"), resource.TestCheckResourceAttr( "datadog_synthetics_test.bar", "options.tick_every", "900"), - resource.TestCheckResourceAttr( - "datadog_synthetics_test.bar", "options.min_failure_duration", "0"), + //resource.TestCheckResourceAttr( + // "datadog_synthetics_test.bar", "options.min_failure_duration", "0"), resource.TestCheckResourceAttr( "datadog_synthetics_test.bar", "options.min_location_failed", "1"), resource.TestCheckResourceAttr( @@ -597,8 +591,8 @@ func createSyntheticsBrowserTestStep(accProvider *schema.Provider) resource.Test "datadog_synthetics_test.bar", "tags.0", "foo:bar"), resource.TestCheckResourceAttr( "datadog_synthetics_test.bar", "tags.1", "baz"), - resource.TestCheckResourceAttrSet( - "datadog_synthetics_test.bar", "monitor_id"), + //resource.TestCheckResourceAttrSet( + // "datadog_synthetics_test.bar", "monitor_id"), ), } } @@ -622,7 +616,6 @@ resource "datadog_synthetics_test" "bar" { locations = [ "aws:eu-central-1" ] options = { tick_every = 900 - min_failure_duration = 0 min_location_failed = 1 } @@ -669,8 +662,8 @@ func updateSyntheticsBrowserTestStep(accProvider *schema.Provider) resource.Test "datadog_synthetics_test.bar", "locations.0", "aws:eu-central-1"), resource.TestCheckResourceAttr( "datadog_synthetics_test.bar", "options.tick_every", "1800"), - resource.TestCheckResourceAttr( - "datadog_synthetics_test.bar", "options.min_failure_duration", "10"), + //resource.TestCheckResourceAttr( + // "datadog_synthetics_test.bar", "options.min_failure_duration", "10"), resource.TestCheckResourceAttr( "datadog_synthetics_test.bar", "options.min_location_failed", "1"), resource.TestCheckResourceAttr( @@ -683,8 +676,8 @@ func updateSyntheticsBrowserTestStep(accProvider *schema.Provider) resource.Test "datadog_synthetics_test.bar", "tags.0", "foo:bar"), resource.TestCheckResourceAttr( "datadog_synthetics_test.bar", "tags.1", "buz"), - resource.TestCheckResourceAttrSet( - "datadog_synthetics_test.bar", "monitor_id"), + //resource.TestCheckResourceAttrSet( + // "datadog_synthetics_test.bar", "monitor_id"), ), } } @@ -706,7 +699,6 @@ resource "datadog_synthetics_test" "bar" { locations = [ "aws:eu-central-1" ] options = { tick_every = 1800 - min_failure_duration = 10 min_location_failed = 1 } name = "updated name for synthetics browser test bar" From 028b725648a0df42cc7e295956ff85d4727181c1 Mon Sep 17 00:00:00 2001 From: skarimo Date: Thu, 30 Apr 2020 18:17:41 -0400 Subject: [PATCH 03/11] update synthetics test to include min_failure_duration and monitor id --- datadog/resource_datadog_synthetics_test_.go | 22 +++--- .../resource_datadog_synthetics_test_test.go | 74 +++++++------------ 2 files changed, 38 insertions(+), 58 deletions(-) diff --git a/datadog/resource_datadog_synthetics_test_.go b/datadog/resource_datadog_synthetics_test_.go index a4c7acc7f..6b3c9a532 100644 --- a/datadog/resource_datadog_synthetics_test_.go +++ b/datadog/resource_datadog_synthetics_test_.go @@ -287,8 +287,6 @@ func buildSyntheticsTestStruct(d *schema.ResourceData) *datadogV1.SyntheticsTest } if attr, ok := d.GetOk("request.url"); ok { request.SetUrl(attr.(string)) - } else { - request.Url = "" } if attr, ok := d.GetOk("request.body"); ok { request.SetBody(attr.(string)) @@ -317,8 +315,8 @@ func buildSyntheticsTestStruct(d *schema.ResourceData) *datadogV1.SyntheticsTest } config := datadogV1.SyntheticsTestConfig{ - Request: request, - Variables: &[]datadogV1.SyntheticsBrowserVariable{}, + Request: request, + //Variables: &[]datadogV1.SyntheticsBrowserVariable{}, } if attr, ok := d.GetOk("assertions"); ok { @@ -363,10 +361,10 @@ func buildSyntheticsTestStruct(d *schema.ResourceData) *datadogV1.SyntheticsTest followRedirects, _ := strconv.ParseBool(attr.(string)) options.SetFollowRedirects(followRedirects) } - //if attr, ok := d.GetOk("options.min_failure_duration"); ok { - // minFailureDuration, _ := strconv.Atoi(attr.(string)) - // options.SetMinFailureDuration(minFailureDuration) - //} + if attr, ok := d.GetOk("options.min_failure_duration"); ok { + minFailureDuration, _ := strconv.Atoi(attr.(string)) + options.SetMinFailureDuration(int64(minFailureDuration)) + } if attr, ok := d.GetOk("options.min_location_failed"); ok { minLocationFailed, _ := strconv.Atoi(attr.(string)) options.SetMinLocationFailed(int64(minLocationFailed)) @@ -480,9 +478,9 @@ func updateSyntheticsTestLocalState(d *schema.ResourceData, syntheticsTest *data if actualOptions.HasFollowRedirects() { localOptions["follow_redirects"] = convertToString(actualOptions.GetFollowRedirects()) } - //if v, ok := actualOptions.GetMinLocationFailedOk(); ok { - // localOptions["min_failure_duration"] = convertToString(v) - //} + if v, ok := actualOptions.GetMinLocationFailedOk(); ok { + localOptions["min_failure_duration"] = convertToString(v) + } if actualOptions.HasMinLocationFailed() { localOptions["min_location_failed"] = convertToString(actualOptions.GetMinLocationFailed()) } @@ -499,7 +497,7 @@ func updateSyntheticsTestLocalState(d *schema.ResourceData, syntheticsTest *data d.Set("message", syntheticsTest.GetMessage()) d.Set("status", syntheticsTest.GetStatus()) d.Set("tags", syntheticsTest.Tags) - //d.Set("monitor_id", syntheticsTest.MonitorId) + d.Set("monitor_id", syntheticsTest.MonitorId) } func convertToString(i interface{}) string { diff --git a/datadog/resource_datadog_synthetics_test_test.go b/datadog/resource_datadog_synthetics_test_test.go index 6a0d0a0e9..a2111c9d7 100644 --- a/datadog/resource_datadog_synthetics_test_test.go +++ b/datadog/resource_datadog_synthetics_test_test.go @@ -218,8 +218,8 @@ func createSyntheticsAPITestStep(accProvider *schema.Provider) resource.TestStep "datadog_synthetics_test.foo", "options.tick_every", "60"), resource.TestCheckResourceAttr( "datadog_synthetics_test.foo", "options.follow_redirects", "true"), - //resource.TestCheckResourceAttr( - // "datadog_synthetics_test.foo", "options.min_failure_duration", "0"), + resource.TestCheckResourceAttr( + "datadog_synthetics_test.foo", "options.min_failure_duration", "0"), resource.TestCheckResourceAttr( "datadog_synthetics_test.foo", "options.min_location_failed", "1"), resource.TestCheckResourceAttr( @@ -234,8 +234,8 @@ func createSyntheticsAPITestStep(accProvider *schema.Provider) resource.TestStep "datadog_synthetics_test.foo", "tags.1", "baz"), resource.TestCheckResourceAttr( "datadog_synthetics_test.foo", "status", "paused"), - //resource.TestCheckResourceAttrSet( - // "datadog_synthetics_test.foo", "monitor_id"), + resource.TestCheckResourceAttrSet( + "datadog_synthetics_test.foo", "monitor_id"), ), } } @@ -244,7 +244,6 @@ const createSyntheticsAPITestConfig = ` resource "datadog_synthetics_test" "foo" { type = "api" subtype = "http" - request = { method = "GET" url = "https://www.datadoghq.com" @@ -255,7 +254,6 @@ resource "datadog_synthetics_test" "foo" { Accept = "application/json" X-Datadog-Trace-ID = "1234566789" } - assertions = [ { type = "header" @@ -279,18 +277,16 @@ resource "datadog_synthetics_test" "foo" { target = "terraform" } ] - locations = [ "aws:eu-central-1" ] options = { tick_every = 60 follow_redirects = true + min_failure_duration = 0 min_location_failed = 1 } - name = "name for synthetics test foo" message = "Notify @datadog.user" tags = ["foo:bar", "baz"] - status = "paused" } ` @@ -326,8 +322,8 @@ func updateSyntheticsAPITestStep(accProvider *schema.Provider) resource.TestStep "datadog_synthetics_test.foo", "options.tick_every", "900"), resource.TestCheckResourceAttr( "datadog_synthetics_test.foo", "options.follow_redirects", "false"), - //resource.TestCheckResourceAttr( - // "datadog_synthetics_test.foo", "options.min_failure_duration", "10"), + resource.TestCheckResourceAttr( + "datadog_synthetics_test.foo", "options.min_failure_duration", "10"), resource.TestCheckResourceAttr( "datadog_synthetics_test.foo", "options.min_location_failed", "1"), resource.TestCheckResourceAttr( @@ -344,8 +340,8 @@ func updateSyntheticsAPITestStep(accProvider *schema.Provider) resource.TestStep "datadog_synthetics_test.foo", "tags.2", "env:test"), resource.TestCheckResourceAttr( "datadog_synthetics_test.foo", "status", "live"), - //resource.TestCheckResourceAttrSet( - // "datadog_synthetics_test.foo", "monitor_id"), + resource.TestCheckResourceAttrSet( + "datadog_synthetics_test.foo", "monitor_id"), ), } } @@ -354,13 +350,11 @@ const updateSyntheticsAPITestConfig = ` resource "datadog_synthetics_test" "foo" { type = "api" subtype = "http" - request = { method = "GET" url = "https://docs.datadoghq.com" timeout = 60 } - assertions = [ { type = "statusCode" @@ -368,19 +362,16 @@ resource "datadog_synthetics_test" "foo" { target = "500" } ] - locations = [ "aws:eu-central-1" ] - options = { tick_every = 900 follow_redirects = false + min_failure_duration = 10 min_location_failed = 1 } - name = "updated name" message = "Notify @pagerduty" tags = ["foo:bar", "foo", "env:test"] - status = "live" } ` @@ -426,8 +417,8 @@ func createSyntheticsSSLTestStep(accProvider *schema.Provider) resource.TestStep "datadog_synthetics_test.ssl", "tags.1", "baz"), resource.TestCheckResourceAttr( "datadog_synthetics_test.ssl", "status", "paused"), - //resource.TestCheckResourceAttrSet( - // "datadog_synthetics_test.ssl", "monitor_id"), + resource.TestCheckResourceAttrSet( + "datadog_synthetics_test.ssl", "monitor_id"), ), } } @@ -436,8 +427,10 @@ const createSyntheticsSSLTestConfig = ` resource "datadog_synthetics_test" "ssl" { type = "api" subtype = "ssl" - - + request = { + host = "datadoghq.com" + port = 443 + } assertions = [ { type = "certificate" @@ -445,17 +438,14 @@ resource "datadog_synthetics_test" "ssl" { target = 30 } ] - locations = [ "aws:eu-central-1" ] options = { tick_every = 60 accept_self_signed = true } - name = "name for synthetics test ssl" message = "Notify @datadog.user" tags = ["foo:bar", "baz"] - status = "paused" } ` @@ -503,8 +493,8 @@ func updateSyntheticsSSLTestStep(accProvider *schema.Provider) resource.TestStep "datadog_synthetics_test.ssl", "tags.2", "env:test"), resource.TestCheckResourceAttr( "datadog_synthetics_test.ssl", "status", "live"), - //resource.TestCheckResourceAttrSet( - // "datadog_synthetics_test.ssl", "monitor_id"), + resource.TestCheckResourceAttrSet( + "datadog_synthetics_test.ssl", "monitor_id"), ), } } @@ -513,12 +503,10 @@ const updateSyntheticsSSLTestConfig = ` resource "datadog_synthetics_test" "ssl" { type = "api" subtype = "ssl" - request = { host = "datadoghq.com" port = 443 } - assertions = [ { type = "certificate" @@ -526,18 +514,14 @@ resource "datadog_synthetics_test" "ssl" { target = 60 } ] - locations = [ "aws:eu-central-1" ] - options = { tick_every = 60 accept_self_signed = false } - name = "updated name" message = "Notify @pagerduty" tags = ["foo:bar", "foo", "env:test"] - status = "live" } ` @@ -577,8 +561,8 @@ func createSyntheticsBrowserTestStep(accProvider *schema.Provider) resource.Test "datadog_synthetics_test.bar", "locations.0", "aws:eu-central-1"), resource.TestCheckResourceAttr( "datadog_synthetics_test.bar", "options.tick_every", "900"), - //resource.TestCheckResourceAttr( - // "datadog_synthetics_test.bar", "options.min_failure_duration", "0"), + resource.TestCheckResourceAttr( + "datadog_synthetics_test.bar", "options.min_failure_duration", "0"), resource.TestCheckResourceAttr( "datadog_synthetics_test.bar", "options.min_location_failed", "1"), resource.TestCheckResourceAttr( @@ -591,8 +575,8 @@ func createSyntheticsBrowserTestStep(accProvider *schema.Provider) resource.Test "datadog_synthetics_test.bar", "tags.0", "foo:bar"), resource.TestCheckResourceAttr( "datadog_synthetics_test.bar", "tags.1", "baz"), - //resource.TestCheckResourceAttrSet( - // "datadog_synthetics_test.bar", "monitor_id"), + resource.TestCheckResourceAttrSet( + "datadog_synthetics_test.bar", "monitor_id"), ), } } @@ -600,7 +584,6 @@ func createSyntheticsBrowserTestStep(accProvider *schema.Provider) resource.Test const createSyntheticsBrowserTestConfig = ` resource "datadog_synthetics_test" "bar" { type = "browser" - request = { method = "GET" url = "https://www.datadoghq.com" @@ -611,18 +594,16 @@ resource "datadog_synthetics_test" "bar" { Accept = "application/json" X-Datadog-Trace-ID = "123456789" } - device_ids = [ "laptop_large", "mobile_small" ] locations = [ "aws:eu-central-1" ] options = { tick_every = 900 + min_failure_duration = 0 min_location_failed = 1 } - name = "name for synthetics browser test bar" message = "Notify @datadog.user" tags = ["foo:bar", "baz"] - status = "paused" } ` @@ -662,8 +643,8 @@ func updateSyntheticsBrowserTestStep(accProvider *schema.Provider) resource.Test "datadog_synthetics_test.bar", "locations.0", "aws:eu-central-1"), resource.TestCheckResourceAttr( "datadog_synthetics_test.bar", "options.tick_every", "1800"), - //resource.TestCheckResourceAttr( - // "datadog_synthetics_test.bar", "options.min_failure_duration", "10"), + resource.TestCheckResourceAttr( + "datadog_synthetics_test.bar", "options.min_failure_duration", "10"), resource.TestCheckResourceAttr( "datadog_synthetics_test.bar", "options.min_location_failed", "1"), resource.TestCheckResourceAttr( @@ -676,8 +657,8 @@ func updateSyntheticsBrowserTestStep(accProvider *schema.Provider) resource.Test "datadog_synthetics_test.bar", "tags.0", "foo:bar"), resource.TestCheckResourceAttr( "datadog_synthetics_test.bar", "tags.1", "buz"), - //resource.TestCheckResourceAttrSet( - // "datadog_synthetics_test.bar", "monitor_id"), + resource.TestCheckResourceAttrSet( + "datadog_synthetics_test.bar", "monitor_id"), ), } } @@ -699,6 +680,7 @@ resource "datadog_synthetics_test" "bar" { locations = [ "aws:eu-central-1" ] options = { tick_every = 1800 + min_failure_duration = 10 min_location_failed = 1 } name = "updated name for synthetics browser test bar" From 82b8efd4d9b32d73b77ef760ad64bed3adb16fe0 Mon Sep 17 00:00:00 2001 From: skarimo Date: Thu, 30 Apr 2020 20:00:34 -0400 Subject: [PATCH 04/11] revert provider.go and update synthetics resource --- datadog/provider.go | 1 - datadog/resource_datadog_synthetics_test_.go | 27 ++++++++++---------- 2 files changed, 13 insertions(+), 15 deletions(-) diff --git a/datadog/provider.go b/datadog/provider.go index 2788bcf82..a942a9c4a 100644 --- a/datadog/provider.go +++ b/datadog/provider.go @@ -137,7 +137,6 @@ func providerConfigure(d *schema.ResourceData) (interface{}, error) { "protocol": parsedApiUrl.Scheme, }) } - configV1.Debug = true datadogClientV1 := datadogV1.NewAPIClient(configV1) // Initialize the official Datadog V2 API client diff --git a/datadog/resource_datadog_synthetics_test_.go b/datadog/resource_datadog_synthetics_test_.go index 6b3c9a532..60dde4170 100644 --- a/datadog/resource_datadog_synthetics_test_.go +++ b/datadog/resource_datadog_synthetics_test_.go @@ -308,18 +308,17 @@ func buildSyntheticsTestStruct(d *schema.ResourceData) *datadogV1.SyntheticsTest request.SetHeaders(make(map[string]string)) } for k, v := range headers { - tHeaders := request.GetHeaders() - tHeaders[k] = v.(string) - request.SetHeaders(tHeaders) + request.GetHeaders()[k] = v.(string) } } config := datadogV1.SyntheticsTestConfig{ - Request: request, - //Variables: &[]datadogV1.SyntheticsBrowserVariable{}, + Request: request, + Variables: &[]datadogV1.SyntheticsBrowserVariable{}, + Assertions: []datadogV1.SyntheticsAssertion{}, } - if attr, ok := d.GetOk("assertions"); ok { + if attr, ok := d.GetOk("assertions"); ok && attr != nil { for _, attr := range attr.([]interface{}) { assertion := datadogV1.SyntheticsAssertion{} assertionMap := attr.(map[string]interface{}) @@ -336,10 +335,10 @@ func buildSyntheticsTestStruct(d *schema.ResourceData) *datadogV1.SyntheticsTest assertion.SetOperator(datadogV1.SyntheticsAssertionOperator(assertionOperator)) } if v, ok := assertionMap["target"]; ok { - if isTargetOfTypeInt(assertion.Type) { + if isTargetOfTypeInt(assertion.GetType()) { assertionTargetInt, _ := strconv.Atoi(v.(string)) assertion.SetTarget(assertionTargetInt) - } else if assertion.Operator == "validates" { + } else if assertion.GetOperator() == datadogV1.SYNTHETICSASSERTIONOPERATOR_VALIDATES { assertion.SetTarget(v.(string)) } else { assertion.SetTarget(v.(string)) @@ -411,9 +410,9 @@ func buildSyntheticsTestStruct(d *schema.ResourceData) *datadogV1.SyntheticsTest if attr, ok := d.GetOk("subtype"); ok { syntheticsTest.SetSubtype(datadogV1.SyntheticsTestDetailsSubType(attr.(string))) } else { - if *syntheticsTest.Type == "api" { + if syntheticsTest.GetType() == "api" { // we want to default to "http" subtype when type is "api" - syntheticsTest.SetSubtype("http") + syntheticsTest.SetSubtype(datadogV1.SYNTHETICSTESTDETAILSSUBTYPE_HTTP) } } @@ -437,8 +436,8 @@ func updateSyntheticsTestLocalState(d *schema.ResourceData, syntheticsTest *data if actualRequest.HasTimeout() { localRequest["timeout"] = convertToString(actualRequest.GetTimeout()) } - if _, ok := actualRequest.GetUrlOk(); ok { - localRequest["url"] = actualRequest.GetUrl() + if v, ok := actualRequest.GetUrlOk(); ok { + localRequest["url"] = *v } if actualRequest.HasHost() { localRequest["host"] = actualRequest.GetHost() @@ -478,8 +477,8 @@ func updateSyntheticsTestLocalState(d *schema.ResourceData, syntheticsTest *data if actualOptions.HasFollowRedirects() { localOptions["follow_redirects"] = convertToString(actualOptions.GetFollowRedirects()) } - if v, ok := actualOptions.GetMinLocationFailedOk(); ok { - localOptions["min_failure_duration"] = convertToString(v) + if actualOptions.HasMinFailureDuration() { + localOptions["min_failure_duration"] = convertToString(actualOptions.GetMinFailureDuration()) } if actualOptions.HasMinLocationFailed() { localOptions["min_location_failed"] = convertToString(actualOptions.GetMinLocationFailed()) From 4bd7a2d55ad02a9cb635e92fc671f1b8a783d5b8 Mon Sep 17 00:00:00 2001 From: skarimo Date: Thu, 30 Apr 2020 20:07:36 -0400 Subject: [PATCH 05/11] update synthetics test test --- .../resource_datadog_synthetics_test_test.go | 36 ++++++++++++++++--- 1 file changed, 32 insertions(+), 4 deletions(-) diff --git a/datadog/resource_datadog_synthetics_test_test.go b/datadog/resource_datadog_synthetics_test_test.go index a2111c9d7..d0de2aae2 100644 --- a/datadog/resource_datadog_synthetics_test_test.go +++ b/datadog/resource_datadog_synthetics_test_test.go @@ -244,6 +244,7 @@ const createSyntheticsAPITestConfig = ` resource "datadog_synthetics_test" "foo" { type = "api" subtype = "http" + request = { method = "GET" url = "https://www.datadoghq.com" @@ -254,6 +255,7 @@ resource "datadog_synthetics_test" "foo" { Accept = "application/json" X-Datadog-Trace-ID = "1234566789" } + assertions = [ { type = "header" @@ -277,6 +279,7 @@ resource "datadog_synthetics_test" "foo" { target = "terraform" } ] + locations = [ "aws:eu-central-1" ] options = { tick_every = 60 @@ -284,9 +287,11 @@ resource "datadog_synthetics_test" "foo" { min_failure_duration = 0 min_location_failed = 1 } + name = "name for synthetics test foo" message = "Notify @datadog.user" tags = ["foo:bar", "baz"] + status = "paused" } ` @@ -350,11 +355,13 @@ const updateSyntheticsAPITestConfig = ` resource "datadog_synthetics_test" "foo" { type = "api" subtype = "http" + request = { method = "GET" url = "https://docs.datadoghq.com" timeout = 60 } + assertions = [ { type = "statusCode" @@ -362,16 +369,20 @@ resource "datadog_synthetics_test" "foo" { target = "500" } ] + locations = [ "aws:eu-central-1" ] + options = { tick_every = 900 follow_redirects = false min_failure_duration = 10 min_location_failed = 1 } + name = "updated name" message = "Notify @pagerduty" tags = ["foo:bar", "foo", "env:test"] + status = "live" } ` @@ -427,10 +438,12 @@ const createSyntheticsSSLTestConfig = ` resource "datadog_synthetics_test" "ssl" { type = "api" subtype = "ssl" + request = { host = "datadoghq.com" port = 443 } + assertions = [ { type = "certificate" @@ -438,14 +451,17 @@ resource "datadog_synthetics_test" "ssl" { target = 30 } ] + locations = [ "aws:eu-central-1" ] options = { tick_every = 60 accept_self_signed = true } + name = "name for synthetics test ssl" message = "Notify @datadog.user" tags = ["foo:bar", "baz"] + status = "paused" } ` @@ -503,10 +519,12 @@ const updateSyntheticsSSLTestConfig = ` resource "datadog_synthetics_test" "ssl" { type = "api" subtype = "ssl" + request = { host = "datadoghq.com" port = 443 } + assertions = [ { type = "certificate" @@ -514,14 +532,18 @@ resource "datadog_synthetics_test" "ssl" { target = 60 } ] + locations = [ "aws:eu-central-1" ] + options = { tick_every = 60 accept_self_signed = false } + name = "updated name" message = "Notify @pagerduty" tags = ["foo:bar", "foo", "env:test"] + status = "live" } ` @@ -584,6 +606,7 @@ func createSyntheticsBrowserTestStep(accProvider *schema.Provider) resource.Test const createSyntheticsBrowserTestConfig = ` resource "datadog_synthetics_test" "bar" { type = "browser" + request = { method = "GET" url = "https://www.datadoghq.com" @@ -594,6 +617,7 @@ resource "datadog_synthetics_test" "bar" { Accept = "application/json" X-Datadog-Trace-ID = "123456789" } + device_ids = [ "laptop_large", "mobile_small" ] locations = [ "aws:eu-central-1" ] options = { @@ -601,9 +625,11 @@ resource "datadog_synthetics_test" "bar" { min_failure_duration = 0 min_location_failed = 1 } + name = "name for synthetics browser test bar" message = "Notify @datadog.user" tags = ["foo:bar", "baz"] + status = "paused" } ` @@ -693,10 +719,11 @@ resource "datadog_synthetics_test" "bar" { func testSyntheticsTestExists(accProvider *schema.Provider) resource.TestCheckFunc { return func(s *terraform.State) error { providerConf := accProvider.Meta().(*ProviderConfiguration) - client := providerConf.CommunityClient + datadogClientV1 := providerConf.DatadogClientV1 + authV1 := providerConf.AuthV1 for _, r := range s.RootModule().Resources { - if _, err := client.GetSyntheticsTest(r.Primary.ID); err != nil { + if _, _, err := datadogClientV1.SyntheticsApi.GetTest(authV1, r.Primary.ID).Execute(); err != nil { return fmt.Errorf("received an error retrieving synthetics test %s", err) } } @@ -707,10 +734,11 @@ func testSyntheticsTestExists(accProvider *schema.Provider) resource.TestCheckFu func testSyntheticsTestIsDestroyed(accProvider *schema.Provider) resource.TestCheckFunc { return func(s *terraform.State) error { providerConf := accProvider.Meta().(*ProviderConfiguration) - client := providerConf.CommunityClient + datadogClientV1 := providerConf.DatadogClientV1 + authV1 := providerConf.AuthV1 for _, r := range s.RootModule().Resources { - if _, err := client.GetSyntheticsTest(r.Primary.ID); err != nil { + if _, _, err := datadogClientV1.SyntheticsApi.GetTest(authV1, r.Primary.ID).Execute(); err != nil { if strings.Contains(err.Error(), "404 Not Found") { continue } From 581f1d204f67b21d5fc251a2c7633ac2897ea684 Mon Sep 17 00:00:00 2001 From: skarimo Date: Thu, 30 Apr 2020 20:09:40 -0400 Subject: [PATCH 06/11] update cassettes --- ...TestAccDatadogSyntheticsAPITest_Basic.yaml | 190 ++++++---- ...stAccDatadogSyntheticsAPITest_Updated.yaml | 336 +++++++++-------- ...cDatadogSyntheticsAPITest_importBasic.yaml | 192 +++++----- ...AccDatadogSyntheticsBrowserTest_Basic.yaml | 185 ++++++---- ...cDatadogSyntheticsBrowserTest_Updated.yaml | 337 ++++++++++-------- ...adogSyntheticsBrowserTest_importBasic.yaml | 187 ++++++---- ...TestAccDatadogSyntheticsSSLTest_Basic.yaml | 179 ++++++---- ...stAccDatadogSyntheticsSSLTest_Updated.yaml | 325 ++++++++++------- ...cDatadogSyntheticsSSLTest_importBasic.yaml | 181 ++++++---- 9 files changed, 1231 insertions(+), 881 deletions(-) diff --git a/datadog/cassettes/TestAccDatadogSyntheticsAPITest_Basic.yaml b/datadog/cassettes/TestAccDatadogSyntheticsAPITest_Basic.yaml index d1b9e059c..2aba76df6 100644 --- a/datadog/cassettes/TestAccDatadogSyntheticsAPITest_Basic.yaml +++ b/datadog/cassettes/TestAccDatadogSyntheticsAPITest_Basic.yaml @@ -2,21 +2,24 @@ version: 1 interactions: - request: - body: '{"name":"name for synthetics test foo","type":"api","subtype":"http","tags":["foo:bar","baz"],"config":{"request":{"url":"https://www.datadoghq.com","method":"GET","timeout":30,"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"body":"this - is a body"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"message":"Notify - @datadog.user","options":{"tick_every":60,"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1},"locations":["aws:eu-central-1"],"status":"paused"}' + body: | + {"config":{"assertions":[{"operator":"contains","property":"content-type","target":"application/json","type":"header"},{"operator":"is","target":200,"type":"statusCode"},{"operator":"lessThan","target":2000,"type":"responseTime"},{"operator":"doesNotContain","target":"terraform","type":"body"}],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"method":"GET","timeout":30,"url":"https://www.datadoghq.com"},"variables":[]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"name for synthetics test foo","options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} form: {} headers: + Accept: + - application/json Content-Type: - application/json + Dd-Operation-Id: + - CreateTest User-Agent: - - Datadog/dev/terraform (go1.13) + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests method: POST response: - body: '{"status":"paused","public_id":"a86-tuq-sw2","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","deleted_at":null,"name":"name for synthetics test foo","monitor_id":16887156,"type":"api","created_at":"2020-03-16T13:06:10.522260+00:00","modified_at":"2020-03-16T13:06:10.522260+00:00","subtype":"http","config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"body":"this - is a body","method":"GET","timeout":30},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"tick_every":60,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"gxg-km2-cpe","tags":["foo:bar","baz"],"org_id":242643,"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","deleted_at":null,"name":"name for synthetics test foo","monitor_id":18158434,"type":"api","created_at":"2020-05-01T00:09:03.000334+00:00","modified_at":"2020-05-01T00:09:03.000334+00:00","subtype":"http","config":{"variables":[],"request":{"body":"this + is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -27,13 +30,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:10 GMT + - Fri, 01 May 2020 00:09:03 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:10 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:02 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -42,9 +45,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - F11u7JCZTPrHz8VfzL5YeXThxcQSR6CdLGgk2tF52+EbYWhXciN8nv9vA8oQ9C9A + - kqXz3OvR7iajEJOdRFWpzJtcDHRumYwGfjdF12Vd65Xt1uV9T6lEO/K0lkxmcRvl X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -54,7 +57,7 @@ interactions: X-Ratelimit-Remaining: - "119" X-Ratelimit-Reset: - - "50" + - "58" status: 200 OK code: 200 duration: "" @@ -62,15 +65,20 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/a86-tuq-sw2 + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/gxg-km2-cpe method: GET response: - body: '{"status":"paused","public_id":"a86-tuq-sw2","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics test foo","monitor_id":16887156,"type":"api","created_at":"2020-03-16T13:06:10.522260+00:00","modified_at":"2020-03-16T13:06:10.522260+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"http","config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"body":"this - is a body","method":"GET","timeout":30},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"tick_every":60,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"gxg-km2-cpe","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics test foo","monitor_id":18158434,"type":"api","created_at":"2020-05-01T00:09:03.000334+00:00","modified_at":"2020-05-01T00:09:03.000334+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"http","config":{"variables":[],"request":{"body":"this + is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -81,13 +89,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:10 GMT + - Fri, 01 May 2020 00:09:03 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:10 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:03 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -96,19 +104,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - gVnECQ7ifaEfJ6BNPsXSglLjlU41ay4U8jXHC6V3+oC4U6gHkBb20H5zrSJj1zee + - 2qCkWfddHrPF9jSCADI+4oMJC7ye/JJPxREHTFHEFILURsabvi1w9B+PDmBrh/Xk X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "119" + - "999" X-Ratelimit-Reset: - - "50" + - "57" status: 200 OK code: 200 duration: "" @@ -116,15 +124,20 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/a86-tuq-sw2 + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/gxg-km2-cpe method: GET response: - body: '{"status":"paused","public_id":"a86-tuq-sw2","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics test foo","monitor_id":16887156,"type":"api","created_at":"2020-03-16T13:06:10.522260+00:00","modified_at":"2020-03-16T13:06:10.522260+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"http","config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"body":"this - is a body","method":"GET","timeout":30},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"tick_every":60,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"gxg-km2-cpe","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics test foo","monitor_id":18158434,"type":"api","created_at":"2020-05-01T00:09:03.000334+00:00","modified_at":"2020-05-01T00:09:03.000334+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"http","config":{"variables":[],"request":{"body":"this + is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -135,13 +148,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:10 GMT + - Fri, 01 May 2020 00:09:03 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:10 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:03 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -150,19 +163,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - IkXBg4ZNMRmDsobzMjEa2v35+NuPiQI0gFmho/o6e7+hfyyJl3rjuklsE4uVJo7l + - ADT0ms9dQnbDHbbduv4c09ChngZrYY7A/Pgms/qacMOruS4mPwZ1GJWq74I7G11W X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "118" + - "998" X-Ratelimit-Reset: - - "50" + - "57" status: 200 OK code: 200 duration: "" @@ -170,15 +183,20 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/a86-tuq-sw2 + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/gxg-km2-cpe method: GET response: - body: '{"status":"paused","public_id":"a86-tuq-sw2","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics test foo","monitor_id":16887156,"type":"api","created_at":"2020-03-16T13:06:10.522260+00:00","modified_at":"2020-03-16T13:06:10.522260+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"http","overall_state_modified":"2020-03-16T13:06:11.068299+00:00","overall_state":2,"config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"body":"this - is a body","method":"GET","timeout":30},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"tick_every":60,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"gxg-km2-cpe","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics test foo","monitor_id":18158434,"type":"api","created_at":"2020-05-01T00:09:03.000334+00:00","modified_at":"2020-05-01T00:09:03.000334+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"http","config":{"variables":[],"request":{"body":"this + is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -189,13 +207,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:11 GMT + - Fri, 01 May 2020 00:09:03 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:11 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:03 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -204,19 +222,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - /Lq4EjXKMzRKp9qa/TaJTTVqSY3uTwQpdi8SFIU3firYrLG0qdPC+ksTJBROerQS + - 4HTfT92VNwJOKM3+9Fghpi7RnKwXOMM9XiE8bZkwhVPDb5jbW4knJKZPCpE1XUb8 X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "117" + - "997" X-Ratelimit-Reset: - - "49" + - "57" status: 200 OK code: 200 duration: "" @@ -224,15 +242,20 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/a86-tuq-sw2 + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/gxg-km2-cpe method: GET response: - body: '{"status":"paused","public_id":"a86-tuq-sw2","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics test foo","monitor_id":16887156,"type":"api","created_at":"2020-03-16T13:06:10.522260+00:00","modified_at":"2020-03-16T13:06:10.522260+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"http","overall_state_modified":"2020-03-16T13:06:11.286859+00:00","overall_state":2,"config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"body":"this - is a body","method":"GET","timeout":30},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"tick_every":60,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"gxg-km2-cpe","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics test foo","monitor_id":18158434,"type":"api","created_at":"2020-05-01T00:09:03.000334+00:00","modified_at":"2020-05-01T00:09:03.000334+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"http","config":{"variables":[],"request":{"body":"this + is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -243,13 +266,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:11 GMT + - Fri, 01 May 2020 00:09:03 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:11 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:03 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -258,34 +281,39 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - YCJuwY9AAFMveejFq3DmCuXNgWrXpDBQxqXi3LxQxaHO16MK3yMSWa14TOuRlDjy + - IkXBg4ZNMRmDsobzMjEa2v35+NuPiQI0gFmho/o6e7+hfyyJl3rjuklsE4uVJo7l X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "116" + - "996" X-Ratelimit-Reset: - - "49" + - "57" status: 200 OK code: 200 duration: "" - request: - body: '{"public_ids":["a86-tuq-sw2"]}' + body: | + {"public_ids":["gxg-km2-cpe"]} form: {} headers: + Accept: + - application/json Content-Type: - application/json + Dd-Operation-Id: + - DeleteTests User-Agent: - - Datadog/dev/terraform (go1.13) + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2020-03-16T13:06:11.490168+00:00","public_id":"a86-tuq-sw2"}]}' + body: '{"deleted_tests":[{"deleted_at":"2020-05-01T00:09:03.648245+00:00","public_id":"gxg-km2-cpe"}]}' headers: Cache-Control: - no-cache @@ -296,13 +324,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:11 GMT + - Fri, 01 May 2020 00:09:03 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:11 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:03 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -311,9 +339,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - KKdI9UAf8fC5q7osIllxNui0A1CUm45w7mZBz+tu6Vlp/ga+Q6ZXvY0JoJlUBVi+ + - GAK1J4mJd/EBZfEK4rqUw9OeB9GOeKgSyrXGtzNUi5zrv5sHYU56xJgA4bcbtgUA X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -323,7 +351,7 @@ interactions: X-Ratelimit-Remaining: - "119" X-Ratelimit-Reset: - - "49" + - "57" status: 200 OK code: 200 duration: "" @@ -331,9 +359,13 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/a86-tuq-sw2 + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/gxg-km2-cpe method: GET response: body: '{"errors": ["Synthetics test not found"]}' @@ -347,7 +379,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:11 GMT + - Fri, 01 May 2020 00:09:03 GMT Dd-Pool: - dogweb Pragma: @@ -359,17 +391,17 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "115" + - "995" X-Ratelimit-Reset: - - "49" + - "57" status: 404 Not Found code: 404 duration: "" diff --git a/datadog/cassettes/TestAccDatadogSyntheticsAPITest_Updated.yaml b/datadog/cassettes/TestAccDatadogSyntheticsAPITest_Updated.yaml index 4b8f2d468..151f3a1a8 100644 --- a/datadog/cassettes/TestAccDatadogSyntheticsAPITest_Updated.yaml +++ b/datadog/cassettes/TestAccDatadogSyntheticsAPITest_Updated.yaml @@ -2,21 +2,24 @@ version: 1 interactions: - request: - body: '{"name":"name for synthetics test foo","type":"api","subtype":"http","tags":["foo:bar","baz"],"config":{"request":{"url":"https://www.datadoghq.com","method":"GET","timeout":30,"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"body":"this - is a body"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"message":"Notify - @datadog.user","options":{"tick_every":60,"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1},"locations":["aws:eu-central-1"],"status":"paused"}' + body: | + {"config":{"assertions":[{"operator":"contains","property":"content-type","target":"application/json","type":"header"},{"operator":"is","target":200,"type":"statusCode"},{"operator":"lessThan","target":2000,"type":"responseTime"},{"operator":"doesNotContain","target":"terraform","type":"body"}],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"method":"GET","timeout":30,"url":"https://www.datadoghq.com"},"variables":[]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"name for synthetics test foo","options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} form: {} headers: + Accept: + - application/json Content-Type: - application/json + Dd-Operation-Id: + - CreateTest User-Agent: - - Datadog/dev/terraform (go1.13) + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests method: POST response: - body: '{"status":"paused","public_id":"5pc-mgw-3js","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","deleted_at":null,"name":"name for synthetics test foo","monitor_id":16887157,"type":"api","created_at":"2020-03-16T13:06:12.156714+00:00","modified_at":"2020-03-16T13:06:12.156714+00:00","subtype":"http","config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"body":"this - is a body","method":"GET","timeout":30},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"tick_every":60,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"6wi-248-wdd","tags":["foo:bar","baz"],"org_id":242643,"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","deleted_at":null,"name":"name for synthetics test foo","monitor_id":18158437,"type":"api","created_at":"2020-05-01T00:09:04.037568+00:00","modified_at":"2020-05-01T00:09:04.037568+00:00","subtype":"http","config":{"variables":[],"request":{"body":"this + is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -27,13 +30,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:12 GMT + - Fri, 01 May 2020 00:09:04 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:12 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:03 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -42,9 +45,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - nRZqCODixwNZX0HLyT17WzYwenviVG0rmnZak57k5KsDWun3aWEsPedTsRpiFQxf + - xNK8D8E4U1PyLMVOdDgzcc4izX6UzMbP9Ygv1jJl/dgpKsJQ0NHsqPPadJ+IsqEV X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -54,7 +57,7 @@ interactions: X-Ratelimit-Remaining: - "118" X-Ratelimit-Reset: - - "48" + - "57" status: 200 OK code: 200 duration: "" @@ -62,15 +65,20 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/5pc-mgw-3js + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/6wi-248-wdd method: GET response: - body: '{"status":"paused","public_id":"5pc-mgw-3js","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics test foo","monitor_id":16887157,"type":"api","created_at":"2020-03-16T13:06:12.156714+00:00","modified_at":"2020-03-16T13:06:12.156714+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"http","config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"body":"this - is a body","method":"GET","timeout":30},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"tick_every":60,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"6wi-248-wdd","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics test foo","monitor_id":18158437,"type":"api","created_at":"2020-05-01T00:09:04.037568+00:00","modified_at":"2020-05-01T00:09:04.037568+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"http","config":{"variables":[],"request":{"body":"this + is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -81,13 +89,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:12 GMT + - Fri, 01 May 2020 00:09:04 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:12 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:04 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -96,19 +104,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - bZImwKnIO3sUAXCuyRs9fWaEMDsBOTeSFh5dFNajdvBKpGDGzy05mj4PBPSf18hx + - qQjtInIx1/QKXFlq6Yoz4D/caW/S2oJqgJl91CEEpXrlxRmYHcLgIFCRCvW61KAy X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "114" + - "994" X-Ratelimit-Reset: - - "48" + - "56" status: 200 OK code: 200 duration: "" @@ -116,15 +124,20 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/5pc-mgw-3js + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/6wi-248-wdd method: GET response: - body: '{"status":"paused","public_id":"5pc-mgw-3js","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics test foo","monitor_id":16887157,"type":"api","created_at":"2020-03-16T13:06:12.156714+00:00","modified_at":"2020-03-16T13:06:12.156714+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"http","config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"body":"this - is a body","method":"GET","timeout":30},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"tick_every":60,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"6wi-248-wdd","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics test foo","monitor_id":18158437,"type":"api","created_at":"2020-05-01T00:09:04.037568+00:00","modified_at":"2020-05-01T00:09:04.037568+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"http","config":{"variables":[],"request":{"body":"this + is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -135,13 +148,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:12 GMT + - Fri, 01 May 2020 00:09:04 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:12 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:04 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -150,19 +163,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - Iy6HNgrdx6jplabT1ZfQVzkCrk+jqjHEQw0NvfR/5Sb/NsvSUgBv2AbCahJdaB7p + - XsUcj00kgZUn78/yrMgBc2B4U9QizwFFNtN2OKmtTvmSRTdL165j4Ltg6xvjCzDU X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "113" + - "993" X-Ratelimit-Reset: - - "48" + - "56" status: 200 OK code: 200 duration: "" @@ -170,15 +183,20 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/5pc-mgw-3js + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/6wi-248-wdd method: GET response: - body: '{"status":"paused","public_id":"5pc-mgw-3js","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics test foo","monitor_id":16887157,"type":"api","created_at":"2020-03-16T13:06:12.156714+00:00","modified_at":"2020-03-16T13:06:12.156714+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"http","config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"body":"this - is a body","method":"GET","timeout":30},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"tick_every":60,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"6wi-248-wdd","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics test foo","monitor_id":18158437,"type":"api","created_at":"2020-05-01T00:09:04.037568+00:00","modified_at":"2020-05-01T00:09:04.037568+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"http","config":{"variables":[],"request":{"body":"this + is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -189,13 +207,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:12 GMT + - Fri, 01 May 2020 00:09:04 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:12 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:04 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -204,19 +222,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - f5hY0MW4w2fhZz0SAfv1+LF9me92dJz6mowUerU7gZ8k/CpuQLqOWzykixb5WZaX + - ADT0ms9dQnbDHbbduv4c09ChngZrYY7A/Pgms/qacMOruS4mPwZ1GJWq74I7G11W X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "112" + - "992" X-Ratelimit-Reset: - - "48" + - "56" status: 200 OK code: 200 duration: "" @@ -224,15 +242,20 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/5pc-mgw-3js + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/6wi-248-wdd method: GET response: - body: '{"status":"paused","public_id":"5pc-mgw-3js","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics test foo","monitor_id":16887157,"type":"api","created_at":"2020-03-16T13:06:12.156714+00:00","modified_at":"2020-03-16T13:06:12.156714+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"http","config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"body":"this - is a body","method":"GET","timeout":30},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"tick_every":60,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"6wi-248-wdd","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics test foo","monitor_id":18158437,"type":"api","created_at":"2020-05-01T00:09:04.037568+00:00","modified_at":"2020-05-01T00:09:04.037568+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"http","config":{"variables":[],"request":{"body":"this + is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -243,13 +266,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:12 GMT + - Fri, 01 May 2020 00:09:04 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:12 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:04 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -258,36 +281,40 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 1bzfAqb/6TIngEeU7r7YcGGp2+NaI+ne9J3bzgQrdB0qTrgVrMtd4iKXr1zCNOHr + - x4pYHtiOW9rUeREgXmH2iIgBaXVGD7x1RIZUg56H0ghPppdtz0ZBEK6nMs8tuoqc X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "111" + - "991" X-Ratelimit-Reset: - - "48" + - "56" status: 200 OK code: 200 duration: "" - request: - body: '{"name":"updated name","type":"api","subtype":"http","tags":["foo:bar","foo","env:test"],"config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}]},"message":"Notify - @pagerduty","options":{"tick_every":900,"follow_redirects":false,"min_failure_duration":10,"min_location_failed":1},"locations":["aws:eu-central-1"],"status":"live"}' + body: | + {"config":{"assertions":[{"operator":"isNot","target":500,"type":"statusCode"}],"request":{"method":"GET","timeout":60,"url":"https://docs.datadoghq.com"},"variables":[]},"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"updated name","options":{"follow_redirects":false,"min_failure_duration":10,"min_location_failed":1,"tick_every":900},"status":"live","subtype":"http","tags":["foo:bar","foo","env:test"],"type":"api"} form: {} headers: + Accept: + - application/json Content-Type: - application/json + Dd-Operation-Id: + - UpdateTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/5pc-mgw-3js + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/6wi-248-wdd method: PUT response: - body: '{"status":"live","public_id":"5pc-mgw-3js","tags":["foo:bar","foo","env:test"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify - @pagerduty","deleted_at":null,"name":"updated name","monitor_id":16887157,"type":"api","created_at":"2020-03-16T13:06:12.156714+00:00","modified_at":"2020-03-16T13:06:13.189138+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}]},"options":{"follow_redirects":false,"min_failure_duration":10,"tick_every":900,"min_location_failed":1}}' + body: '{"status":"live","public_id":"6wi-248-wdd","tags":["foo:bar","foo","env:test"],"org_id":242643,"locations":["aws:eu-central-1"],"message":"Notify + @pagerduty","deleted_at":null,"name":"updated name","monitor_id":18158437,"type":"api","created_at":"2020-05-01T00:09:04.037568+00:00","modified_at":"2020-05-01T00:09:04.741382+00:00","subtype":"http","config":{"variables":[],"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}]},"options":{"follow_redirects":false,"min_failure_duration":10,"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -298,13 +325,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:13 GMT + - Fri, 01 May 2020 00:09:04 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:13 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:04 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -313,19 +340,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - HTCsbjwqQM0jTFHFq9ukWObBv4f/yxvHIxzrANPhzJkr6s3+rN5uCN3TcZuK2V2B + - yL2jMz/muX5URjcdpTHzlehf0qi0hyVxH7uShvIhWEeYrIRwdt0CU/7wzCTakK6N X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "500" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "119" + - "499" X-Ratelimit-Reset: - - "47" + - "56" status: 200 OK code: 200 duration: "" @@ -333,14 +360,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/5pc-mgw-3js + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/6wi-248-wdd method: GET response: - body: '{"status":"live","public_id":"5pc-mgw-3js","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify - @pagerduty","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"updated - name","monitor_id":16887157,"type":"api","created_at":"2020-03-16T13:06:12.156714+00:00","modified_at":"2020-03-16T13:06:13.189138+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"http","overall_state_modified":"2020-03-16T13:06:13.432704+00:00","overall_state":2,"config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}]},"options":{"follow_redirects":false,"min_failure_duration":10,"tick_every":900,"min_location_failed":1}}' + body: '{"status":"live","public_id":"6wi-248-wdd","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify + @pagerduty","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"updated name","monitor_id":18158437,"type":"api","created_at":"2020-05-01T00:09:04.037568+00:00","modified_at":"2020-05-01T00:09:04.741382+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"http","config":{"variables":[],"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}]},"options":{"follow_redirects":false,"min_failure_duration":10,"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -351,13 +383,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:13 GMT + - Fri, 01 May 2020 00:09:05 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:13 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:04 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -366,19 +398,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - zDaLXgTwOglSG/+LeCisOhDwAOr7D4UzTY02i97kQg3V5W3f2nMLfChR6yLoaPN1 + - pxuY3ZnSwE+rCP/MLubWk3EuAMlxxciIsQ2EBSRxZafCu9H4+UEVULDCm144bb3W X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "110" + - "990" X-Ratelimit-Reset: - - "47" + - "55" status: 200 OK code: 200 duration: "" @@ -386,14 +418,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/5pc-mgw-3js + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/6wi-248-wdd method: GET response: - body: '{"status":"live","public_id":"5pc-mgw-3js","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify - @pagerduty","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"updated - name","monitor_id":16887157,"type":"api","created_at":"2020-03-16T13:06:12.156714+00:00","modified_at":"2020-03-16T13:06:13.189138+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"http","overall_state_modified":"2020-03-16T13:06:13.626756+00:00","overall_state":2,"config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}]},"options":{"follow_redirects":false,"min_failure_duration":10,"tick_every":900,"min_location_failed":1}}' + body: '{"status":"live","public_id":"6wi-248-wdd","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify + @pagerduty","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"updated name","monitor_id":18158437,"type":"api","created_at":"2020-05-01T00:09:04.037568+00:00","modified_at":"2020-05-01T00:09:04.741382+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"http","config":{"variables":[],"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}]},"options":{"follow_redirects":false,"min_failure_duration":10,"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -404,13 +441,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:13 GMT + - Fri, 01 May 2020 00:09:05 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:13 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:05 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -419,19 +456,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - OGWvqyuIWnbl6WkXpkkRXBvKLURJhdDx+xXZ6vxnnyjZzYdefkAlNGOfG85GcOUu + - vlc9b/rJPByGsV/acj3ScS7B1lo9nEAbSgYCfkl0GH3egry4iXeiGBP0WX8DpJ/T X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "109" + - "989" X-Ratelimit-Reset: - - "47" + - "55" status: 200 OK code: 200 duration: "" @@ -439,14 +476,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/5pc-mgw-3js + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/6wi-248-wdd method: GET response: - body: '{"status":"live","public_id":"5pc-mgw-3js","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify - @pagerduty","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"updated - name","monitor_id":16887157,"type":"api","created_at":"2020-03-16T13:06:12.156714+00:00","modified_at":"2020-03-16T13:06:13.189138+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"http","overall_state_modified":"2020-03-16T13:06:13.810802+00:00","overall_state":2,"config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}]},"options":{"follow_redirects":false,"min_failure_duration":10,"tick_every":900,"min_location_failed":1}}' + body: '{"status":"live","public_id":"6wi-248-wdd","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify + @pagerduty","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"updated name","monitor_id":18158437,"type":"api","created_at":"2020-05-01T00:09:04.037568+00:00","modified_at":"2020-05-01T00:09:04.741382+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"http","config":{"variables":[],"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}]},"options":{"follow_redirects":false,"min_failure_duration":10,"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -457,13 +499,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:13 GMT + - Fri, 01 May 2020 00:09:05 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:13 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:05 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -472,19 +514,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - kqXz3OvR7iajEJOdRFWpzJtcDHRumYwGfjdF12Vd65Xt1uV9T6lEO/K0lkxmcRvl + - em3KoJu1XYdqq1w4EpLi4L54svjYBxZahEDJ8c5gcdIOxnNafHMdF5LLysPLuNcH X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "108" + - "988" X-Ratelimit-Reset: - - "47" + - "55" status: 200 OK code: 200 duration: "" @@ -492,14 +534,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/5pc-mgw-3js + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/6wi-248-wdd method: GET response: - body: '{"status":"live","public_id":"5pc-mgw-3js","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify - @pagerduty","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"updated - name","monitor_id":16887157,"type":"api","created_at":"2020-03-16T13:06:12.156714+00:00","modified_at":"2020-03-16T13:06:13.189138+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"http","overall_state_modified":"2020-03-16T13:06:13.999315+00:00","overall_state":2,"config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}]},"options":{"follow_redirects":false,"min_failure_duration":10,"tick_every":900,"min_location_failed":1}}' + body: '{"status":"live","public_id":"6wi-248-wdd","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify + @pagerduty","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"updated name","monitor_id":18158437,"type":"api","created_at":"2020-05-01T00:09:04.037568+00:00","modified_at":"2020-05-01T00:09:04.741382+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"http","config":{"variables":[],"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}]},"options":{"follow_redirects":false,"min_failure_duration":10,"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -510,13 +557,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:14 GMT + - Fri, 01 May 2020 00:09:05 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:13 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:05 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -525,34 +572,39 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - oQ/oy4ezTZ+/WzL4afBMlDjLd5w62e5H15hF5BJChw1Gte+Sq8B8tB7i6vlTiLL0 + - o1rjyOSbDnvYaQgtO33vwWSNsIwHafzLqam2amG/PbTP69SVY965ZpWutdoYJB30 X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "107" + - "987" X-Ratelimit-Reset: - - "47" + - "55" status: 200 OK code: 200 duration: "" - request: - body: '{"public_ids":["5pc-mgw-3js"]}' + body: | + {"public_ids":["6wi-248-wdd"]} form: {} headers: + Accept: + - application/json Content-Type: - application/json + Dd-Operation-Id: + - DeleteTests User-Agent: - - Datadog/dev/terraform (go1.13) + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2020-03-16T13:06:14.193378+00:00","public_id":"5pc-mgw-3js"}]}' + body: '{"deleted_tests":[{"deleted_at":"2020-05-01T00:09:05.427709+00:00","public_id":"6wi-248-wdd"}]}' headers: Cache-Control: - no-cache @@ -563,13 +615,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:14 GMT + - Fri, 01 May 2020 00:09:05 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:14 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:05 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -578,9 +630,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - YKF8+1vTI0wiWlB3VWhiMVnZ1RLtV3h2yAW6/TGe9qIMWdYXxsNpy3J4QxfrJoDD + - QO3HutZQjgMDp/HqClcLon+qq5lEghb3LRV+gXMIQ2Jivd1m1eEGCh0RxplUQMIV X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -590,7 +642,7 @@ interactions: X-Ratelimit-Remaining: - "118" X-Ratelimit-Reset: - - "46" + - "55" status: 200 OK code: 200 duration: "" @@ -598,9 +650,13 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/5pc-mgw-3js + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/6wi-248-wdd method: GET response: body: '{"errors": ["Synthetics test not found"]}' @@ -614,7 +670,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:15 GMT + - Fri, 01 May 2020 00:09:05 GMT Dd-Pool: - dogweb Pragma: @@ -626,17 +682,17 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "106" + - "986" X-Ratelimit-Reset: - - "45" + - "55" status: 404 Not Found code: 404 duration: "" diff --git a/datadog/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.yaml b/datadog/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.yaml index 80f8cac55..c0453d104 100644 --- a/datadog/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.yaml +++ b/datadog/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.yaml @@ -2,21 +2,24 @@ version: 1 interactions: - request: - body: '{"name":"name for synthetics test foo","type":"api","subtype":"http","tags":["foo:bar","baz"],"config":{"request":{"url":"https://www.datadoghq.com","method":"GET","timeout":30,"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"body":"this - is a body"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"message":"Notify - @datadog.user","options":{"tick_every":60,"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1},"locations":["aws:eu-central-1"],"status":"paused"}' + body: | + {"config":{"assertions":[{"operator":"contains","property":"content-type","target":"application/json","type":"header"},{"operator":"is","target":200,"type":"statusCode"},{"operator":"lessThan","target":2000,"type":"responseTime"},{"operator":"doesNotContain","target":"terraform","type":"body"}],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"method":"GET","timeout":30,"url":"https://www.datadoghq.com"},"variables":[]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"name for synthetics test foo","options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} form: {} headers: + Accept: + - application/json Content-Type: - application/json + Dd-Operation-Id: + - CreateTest User-Agent: - - Datadog/dev/terraform (go1.13) + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests method: POST response: - body: '{"status":"paused","public_id":"a8j-qk5-53a","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","deleted_at":null,"name":"name for synthetics test foo","monitor_id":16887166,"type":"api","created_at":"2020-03-16T13:06:38.186803+00:00","modified_at":"2020-03-16T13:06:38.186803+00:00","subtype":"http","config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"body":"this - is a body","method":"GET","timeout":30},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"tick_every":60,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"7t2-re6-ukz","tags":["foo:bar","baz"],"org_id":242643,"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","deleted_at":null,"name":"name for synthetics test foo","monitor_id":18158460,"type":"api","created_at":"2020-05-01T00:09:11.965961+00:00","modified_at":"2020-05-01T00:09:11.965961+00:00","subtype":"http","config":{"variables":[],"request":{"body":"this + is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -27,13 +30,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:38 GMT + - Fri, 01 May 2020 00:09:12 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:38 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:11 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -42,9 +45,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - RL7BSOiWXeq2P2iJbmiDo/2BPpcpoCDzQceVuBkp6yO348trcqTrfm/pm8rvZRoT + - 2AZOmbSnS2o4jaTO55IoEgDi10r3ewUAnpo5XLuAFAThAxt0uvbRy8dZoSIDmBYA X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -52,9 +55,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "113" + - "111" X-Ratelimit-Reset: - - "22" + - "49" status: 200 OK code: 200 duration: "" @@ -62,15 +65,20 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/a8j-qk5-53a + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/7t2-re6-ukz method: GET response: - body: '{"status":"paused","public_id":"a8j-qk5-53a","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics test foo","monitor_id":16887166,"type":"api","created_at":"2020-03-16T13:06:38.186803+00:00","modified_at":"2020-03-16T13:06:38.186803+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"http","config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"body":"this - is a body","method":"GET","timeout":30},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"tick_every":60,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"7t2-re6-ukz","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics test foo","monitor_id":18158460,"type":"api","created_at":"2020-05-01T00:09:11.965961+00:00","modified_at":"2020-05-01T00:09:11.965961+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"http","config":{"variables":[],"request":{"body":"this + is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -81,13 +89,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:38 GMT + - Fri, 01 May 2020 00:09:12 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:38 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:12 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -96,19 +104,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - TAg/qKywM5rz/AUGkmt8+wB4wzGMJfSiHOrBzxBctPLsV/erSD5TChi/uo5ZlVXK + - QO3HutZQjgMDp/HqClcLon+qq5lEghb3LRV+gXMIQ2Jivd1m1eEGCh0RxplUQMIV X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "77" + - "956" X-Ratelimit-Reset: - - "22" + - "48" status: 200 OK code: 200 duration: "" @@ -116,15 +124,20 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/a8j-qk5-53a + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/7t2-re6-ukz method: GET response: - body: '{"status":"paused","public_id":"a8j-qk5-53a","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics test foo","monitor_id":16887166,"type":"api","created_at":"2020-03-16T13:06:38.186803+00:00","modified_at":"2020-03-16T13:06:38.186803+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"http","config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"body":"this - is a body","method":"GET","timeout":30},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"tick_every":60,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"7t2-re6-ukz","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics test foo","monitor_id":18158460,"type":"api","created_at":"2020-05-01T00:09:11.965961+00:00","modified_at":"2020-05-01T00:09:11.965961+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"http","config":{"variables":[],"request":{"body":"this + is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -135,13 +148,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:38 GMT + - Fri, 01 May 2020 00:09:12 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:38 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:12 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -150,19 +163,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - vYQu3ls2HKdZ2pXErBiwg/FlJyuK31hjiI+oJSqoEPPw/7mzimb2FzvWEsshbznY + - CFSDBBie5Okt4N1oWVJNTAqpt778eCo7VQZ0NhVFWw8MHYFUwuA7DURhpFRYY+Wy X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "75" + - "953" X-Ratelimit-Reset: - - "22" + - "48" status: 200 OK code: 200 duration: "" @@ -170,15 +183,20 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/a8j-qk5-53a + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/7t2-re6-ukz method: GET response: - body: '{"status":"paused","public_id":"a8j-qk5-53a","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics test foo","monitor_id":16887166,"type":"api","created_at":"2020-03-16T13:06:38.186803+00:00","modified_at":"2020-03-16T13:06:38.186803+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"http","config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"body":"this - is a body","method":"GET","timeout":30},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"tick_every":60,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"7t2-re6-ukz","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics test foo","monitor_id":18158460,"type":"api","created_at":"2020-05-01T00:09:11.965961+00:00","modified_at":"2020-05-01T00:09:11.965961+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"http","config":{"variables":[],"request":{"body":"this + is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -189,13 +207,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:38 GMT + - Fri, 01 May 2020 00:09:12 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:38 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:12 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -204,19 +222,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - F11u7JCZTPrHz8VfzL5YeXThxcQSR6CdLGgk2tF52+EbYWhXciN8nv9vA8oQ9C9A + - em3KoJu1XYdqq1w4EpLi4L54svjYBxZahEDJ8c5gcdIOxnNafHMdF5LLysPLuNcH X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "73" + - "950" X-Ratelimit-Reset: - - "22" + - "48" status: 200 OK code: 200 duration: "" @@ -224,15 +242,20 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/a8j-qk5-53a + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/7t2-re6-ukz method: GET response: - body: '{"status":"paused","public_id":"a8j-qk5-53a","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics test foo","monitor_id":16887166,"type":"api","created_at":"2020-03-16T13:06:38.186803+00:00","modified_at":"2020-03-16T13:06:38.186803+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"http","config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"body":"this - is a body","method":"GET","timeout":30},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"tick_every":60,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"7t2-re6-ukz","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics test foo","monitor_id":18158460,"type":"api","created_at":"2020-05-01T00:09:11.965961+00:00","modified_at":"2020-05-01T00:09:11.965961+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"http","config":{"variables":[],"request":{"body":"this + is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -243,13 +266,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:38 GMT + - Fri, 01 May 2020 00:09:12 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:38 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:12 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -258,34 +281,39 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - FiLv+OaMPfXL1uddbn+9yDPMV5awac1EEhAgzXF2ZG6GNVh7KFUCM+HhGv6IDSg0 + - j9H0Mt41m875GBjR2i9r831ZILGOU6+Jata5+JJkOQgIsO+SrMkmgWN80SCun0Sk X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "70" + - "949" X-Ratelimit-Reset: - - "22" + - "48" status: 200 OK code: 200 duration: "" - request: - body: '{"public_ids":["a8j-qk5-53a"]}' + body: | + {"public_ids":["7t2-re6-ukz"]} form: {} headers: + Accept: + - application/json Content-Type: - application/json + Dd-Operation-Id: + - DeleteTests User-Agent: - - Datadog/dev/terraform (go1.13) + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2020-03-16T13:06:39.130182+00:00","public_id":"a8j-qk5-53a"}]}' + body: '{"deleted_tests":[{"deleted_at":"2020-05-01T00:09:12.551433+00:00","public_id":"7t2-re6-ukz"}]}' headers: Cache-Control: - no-cache @@ -296,13 +324,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:39 GMT + - Fri, 01 May 2020 00:09:12 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:39 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:12 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -311,9 +339,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - svhoihUM58m7WJ4Z4lY5tmaXf/MnplHzAbMByuVznFW8yf3JIFAZgW/pCvMnq4iN + - UH1aMdrlnlnaxy/K+HUi5QUN2T0FBtGPSUC8sLrviqCK1XXfgHsSO5DneAd5J+6F X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -323,7 +351,7 @@ interactions: X-Ratelimit-Remaining: - "113" X-Ratelimit-Reset: - - "21" + - "48" status: 200 OK code: 200 duration: "" @@ -331,9 +359,13 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/a8j-qk5-53a + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/7t2-re6-ukz method: GET response: body: '{"errors": ["Synthetics test not found"]}' @@ -347,7 +379,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:39 GMT + - Fri, 01 May 2020 00:09:12 GMT Dd-Pool: - dogweb Pragma: @@ -359,17 +391,17 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "65" + - "945" X-Ratelimit-Reset: - - "21" + - "48" status: 404 Not Found code: 404 duration: "" diff --git a/datadog/cassettes/TestAccDatadogSyntheticsBrowserTest_Basic.yaml b/datadog/cassettes/TestAccDatadogSyntheticsBrowserTest_Basic.yaml index e852a4e7f..2600c6237 100644 --- a/datadog/cassettes/TestAccDatadogSyntheticsBrowserTest_Basic.yaml +++ b/datadog/cassettes/TestAccDatadogSyntheticsBrowserTest_Basic.yaml @@ -2,20 +2,24 @@ version: 1 interactions: - request: - body: '{"name":"name for synthetics browser test bar","type":"browser","tags":["foo:bar","baz"],"config":{"request":{"url":"https://www.datadoghq.com","method":"GET","timeout":30,"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"body":"this - is a body"}},"message":"Notify @datadog.user","options":{"tick_every":900,"min_failure_duration":0,"min_location_failed":1,"device_ids":["laptop_large","mobile_small"]},"locations":["aws:eu-central-1"],"status":"paused"}' + body: | + {"config":{"assertions":[],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","timeout":30,"url":"https://www.datadoghq.com"},"variables":[]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"name for synthetics browser test bar","options":{"device_ids":["laptop_large","mobile_small"],"min_failure_duration":0,"min_location_failed":1,"tick_every":900},"status":"paused","tags":["foo:bar","baz"],"type":"browser"} form: {} headers: + Accept: + - application/json Content-Type: - application/json + Dd-Operation-Id: + - CreateTest User-Agent: - - Datadog/dev/terraform (go1.13) + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests method: POST response: - body: '{"status":"paused","public_id":"h6g-v4e-c38","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","deleted_at":null,"name":"name for synthetics browser test bar","monitor_id":16887160,"type":"browser","created_at":"2020-03-16T13:06:20.434916+00:00","modified_at":"2020-03-16T13:06:20.434916+00:00","config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"body":"this - is a body","method":"GET","timeout":30}},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"tick_every":900,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"9fw-48z-8iz","tags":["foo:bar","baz"],"org_id":242643,"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","deleted_at":null,"name":"name for synthetics browser test bar","monitor_id":18158451,"type":"browser","created_at":"2020-05-01T00:09:08.887967+00:00","modified_at":"2020-05-01T00:09:08.887967+00:00","config":{"variables":[],"request":{"body":"this + is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[]},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -26,13 +30,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:20 GMT + - Fri, 01 May 2020 00:09:08 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:20 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:08 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -41,9 +45,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 3GTZ6ImnvkiMOuKTP2ILv/2CbQJLb5wTjyX1KOTCD/aaxDS+HyYye1EH1uVK9Ajh + - j0VNx9cZdAj+uuO7pabHlao4Ioc5q8ovvp4Ja/NYzbHA51zSBYXNvtO+8cOYbE0B X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -53,7 +57,7 @@ interactions: X-Ratelimit-Remaining: - "115" X-Ratelimit-Reset: - - "40" + - "52" status: 200 OK code: 200 duration: "" @@ -61,15 +65,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/h6g-v4e-c38 + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/9fw-48z-8iz method: GET response: - body: '{"status":"paused","public_id":"h6g-v4e-c38","tags":["foo:bar","baz"],"stepCount":0,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics browser test bar","monitor_id":16887160,"type":"browser","created_at":"2020-03-16T13:06:20.434916+00:00","modified_at":"2020-03-16T13:06:20.434916+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"body":"this - is a body","method":"GET","timeout":30}},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"tick_every":900,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"9fw-48z-8iz","tags":["foo:bar","baz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics browser test bar","monitor_id":18158451,"type":"browser","created_at":"2020-05-01T00:09:08.887967+00:00","modified_at":"2020-05-01T00:09:08.887967+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"config":{"variables":[],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[]},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -80,13 +88,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:20 GMT + - Fri, 01 May 2020 00:09:09 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:20 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:09 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -95,19 +103,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - KHJbOoqp3I4BOBzIFnc/Ois3eg3Rjmudy0YalRpnXQEDXDoppykpDMDaJPIufi9t + - rpB/2GMZHvzTHZxhwmnNa1XnSQuif7FV+gIndoDc8IvUeRNb65r4x+P7Djp1119C X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "91" + - "971" X-Ratelimit-Reset: - - "40" + - "51" status: 200 OK code: 200 duration: "" @@ -115,15 +123,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/h6g-v4e-c38 + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/9fw-48z-8iz method: GET response: - body: '{"status":"paused","public_id":"h6g-v4e-c38","tags":["foo:bar","baz"],"stepCount":0,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics browser test bar","monitor_id":16887160,"type":"browser","created_at":"2020-03-16T13:06:20.434916+00:00","modified_at":"2020-03-16T13:06:20.434916+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"body":"this - is a body","method":"GET","timeout":30}},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"tick_every":900,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"9fw-48z-8iz","tags":["foo:bar","baz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics browser test bar","monitor_id":18158451,"type":"browser","created_at":"2020-05-01T00:09:08.887967+00:00","modified_at":"2020-05-01T00:09:08.887967+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"config":{"variables":[],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[]},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -134,13 +146,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:20 GMT + - Fri, 01 May 2020 00:09:09 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:20 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:09 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -149,19 +161,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - aERr2Ftx8O/BR8oAhSymZ3bVROQEC+81YMSphOQK1me4DxXSbMIcFkB0Di4ggZ++ + - ucJMu0SEwqvJ36fqkYRsP+glKObktTtdBf6X17lKXJ4+xOn7nFKnx11beu1ycofn X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "90" + - "970" X-Ratelimit-Reset: - - "40" + - "51" status: 200 OK code: 200 duration: "" @@ -169,15 +181,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/h6g-v4e-c38 + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/9fw-48z-8iz method: GET response: - body: '{"status":"paused","public_id":"h6g-v4e-c38","tags":["foo:bar","baz"],"stepCount":0,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics browser test bar","monitor_id":16887160,"type":"browser","created_at":"2020-03-16T13:06:20.434916+00:00","modified_at":"2020-03-16T13:06:20.434916+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"body":"this - is a body","method":"GET","timeout":30}},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"tick_every":900,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"9fw-48z-8iz","tags":["foo:bar","baz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics browser test bar","monitor_id":18158451,"type":"browser","created_at":"2020-05-01T00:09:08.887967+00:00","modified_at":"2020-05-01T00:09:08.887967+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"config":{"variables":[],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[]},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -188,13 +204,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:20 GMT + - Fri, 01 May 2020 00:09:09 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:20 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:09 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -203,19 +219,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - kg+/Cls6zaJcT2blJLlU62BwgGePGdpqSwWrJ0xEIvzmSMWHXxGNsiyEzBPJ1a96 + - WatxAL43AyqgfI4tyA152NzYM3DLdjL7IWr0SzhldiWriTsbw9vUaRZnaqhOCdUk X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "89" + - "969" X-Ratelimit-Reset: - - "40" + - "51" status: 200 OK code: 200 duration: "" @@ -223,15 +239,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/h6g-v4e-c38 + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/9fw-48z-8iz method: GET response: - body: '{"status":"paused","public_id":"h6g-v4e-c38","tags":["foo:bar","baz"],"stepCount":0,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics browser test bar","monitor_id":16887160,"type":"browser","created_at":"2020-03-16T13:06:20.434916+00:00","modified_at":"2020-03-16T13:06:20.434916+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"overall_state_modified":"2020-03-16T13:06:21.259221+00:00","overall_state":2,"config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"body":"this - is a body","method":"GET","timeout":30}},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"tick_every":900,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"9fw-48z-8iz","tags":["foo:bar","baz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics browser test bar","monitor_id":18158451,"type":"browser","created_at":"2020-05-01T00:09:08.887967+00:00","modified_at":"2020-05-01T00:09:08.887967+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"config":{"variables":[],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[]},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -242,13 +262,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:21 GMT + - Fri, 01 May 2020 00:09:09 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:21 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:09 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -257,34 +277,39 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - JbIYRXbRMsAVaKGy+d2H1ud8Z295ghodOPi6eELPzhmBKrZI3+dlseyrUY1cqOAd + - 2VXDwI2pcuhRZeQ6xt/fJh1koMYSfGcgQg5wAzgLqeh10Zf5/W946U7T5w6SEIhy X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "88" + - "968" X-Ratelimit-Reset: - - "39" + - "51" status: 200 OK code: 200 duration: "" - request: - body: '{"public_ids":["h6g-v4e-c38"]}' + body: | + {"public_ids":["9fw-48z-8iz"]} form: {} headers: + Accept: + - application/json Content-Type: - application/json + Dd-Operation-Id: + - DeleteTests User-Agent: - - Datadog/dev/terraform (go1.13) + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2020-03-16T13:06:21.499685+00:00","public_id":"h6g-v4e-c38"}]}' + body: '{"deleted_tests":[{"deleted_at":"2020-05-01T00:09:09.568116+00:00","public_id":"9fw-48z-8iz"}]}' headers: Cache-Control: - no-cache @@ -295,13 +320,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:21 GMT + - Fri, 01 May 2020 00:09:09 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:21 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:09 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -310,9 +335,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - pEDVi2191MvoIMwusdL+COAxndBmcRhJtxAtWxDDnECWDI8Z99hIoBZbpR57tJKz + - sg8vzlrAXfi82gDuSEBUxkn5dG85uDtr4RhaVLNn521TM8s6JdimiKDHvX2NhFjo X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -322,7 +347,7 @@ interactions: X-Ratelimit-Remaining: - "115" X-Ratelimit-Reset: - - "39" + - "51" status: 200 OK code: 200 duration: "" @@ -330,9 +355,13 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/h6g-v4e-c38 + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/9fw-48z-8iz method: GET response: body: '{"errors": ["Synthetics test not found"]}' @@ -346,7 +375,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:22 GMT + - Fri, 01 May 2020 00:09:09 GMT Dd-Pool: - dogweb Pragma: @@ -358,17 +387,17 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "87" + - "967" X-Ratelimit-Reset: - - "38" + - "51" status: 404 Not Found code: 404 duration: "" diff --git a/datadog/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated.yaml b/datadog/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated.yaml index fc2bd9f77..c7a931e50 100644 --- a/datadog/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated.yaml +++ b/datadog/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated.yaml @@ -2,20 +2,24 @@ version: 1 interactions: - request: - body: '{"name":"name for synthetics browser test bar","type":"browser","tags":["foo:bar","baz"],"config":{"request":{"url":"https://www.datadoghq.com","method":"GET","timeout":30,"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"body":"this - is a body"}},"message":"Notify @datadog.user","options":{"tick_every":900,"min_failure_duration":0,"min_location_failed":1,"device_ids":["laptop_large","mobile_small"]},"locations":["aws:eu-central-1"],"status":"paused"}' + body: | + {"config":{"assertions":[],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","timeout":30,"url":"https://www.datadoghq.com"},"variables":[]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"name for synthetics browser test bar","options":{"device_ids":["laptop_large","mobile_small"],"min_failure_duration":0,"min_location_failed":1,"tick_every":900},"status":"paused","tags":["foo:bar","baz"],"type":"browser"} form: {} headers: + Accept: + - application/json Content-Type: - application/json + Dd-Operation-Id: + - CreateTest User-Agent: - - Datadog/dev/terraform (go1.13) + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests method: POST response: - body: '{"status":"paused","public_id":"f6q-cfn-tr5","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","deleted_at":null,"name":"name for synthetics browser test bar","monitor_id":16887161,"type":"browser","created_at":"2020-03-16T13:06:22.507104+00:00","modified_at":"2020-03-16T13:06:22.507104+00:00","config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"body":"this - is a body","method":"GET","timeout":30}},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"tick_every":900,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"cfp-fc8-hfc","tags":["foo:bar","baz"],"org_id":242643,"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","deleted_at":null,"name":"name for synthetics browser test bar","monitor_id":18158454,"type":"browser","created_at":"2020-05-01T00:09:10.016307+00:00","modified_at":"2020-05-01T00:09:10.016307+00:00","config":{"variables":[],"request":{"body":"this + is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[]},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -26,13 +30,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:22 GMT + - Fri, 01 May 2020 00:09:10 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:22 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:09 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -41,9 +45,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - Iy6HNgrdx6jplabT1ZfQVzkCrk+jqjHEQw0NvfR/5Sb/NsvSUgBv2AbCahJdaB7p + - rk3iIRyevtXsTLLTMsm8PoHrVjRY2UIgJwOnYxasATpPihgg0ps3VPSw7zz+6jrL X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -53,7 +57,7 @@ interactions: X-Ratelimit-Remaining: - "114" X-Ratelimit-Reset: - - "38" + - "51" status: 200 OK code: 200 duration: "" @@ -61,15 +65,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/f6q-cfn-tr5 + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/cfp-fc8-hfc method: GET response: - body: '{"status":"paused","public_id":"f6q-cfn-tr5","tags":["foo:bar","baz"],"stepCount":0,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics browser test bar","monitor_id":16887161,"type":"browser","created_at":"2020-03-16T13:06:22.507104+00:00","modified_at":"2020-03-16T13:06:22.507104+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"body":"this - is a body","method":"GET","timeout":30}},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"tick_every":900,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"cfp-fc8-hfc","tags":["foo:bar","baz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics browser test bar","monitor_id":18158454,"type":"browser","created_at":"2020-05-01T00:09:10.016307+00:00","modified_at":"2020-05-01T00:09:10.016307+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"config":{"variables":[],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[]},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -80,13 +88,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:22 GMT + - Fri, 01 May 2020 00:09:10 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:22 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:10 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -95,19 +103,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - SaHvyR/hQzhMjBxXmmuM76vwlwfocpgL0LhX3u6R0CFONYqUGm7Xe/7/HyTliTFX + - og1WGdy+2nV+rkkclmd3Cf2I26XhV3/6yjBeQCP8aHbH2k2cKwC+X9WmhIghcJ94 X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "86" + - "966" X-Ratelimit-Reset: - - "38" + - "50" status: 200 OK code: 200 duration: "" @@ -115,15 +123,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/f6q-cfn-tr5 + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/cfp-fc8-hfc method: GET response: - body: '{"status":"paused","public_id":"f6q-cfn-tr5","tags":["foo:bar","baz"],"stepCount":0,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics browser test bar","monitor_id":16887161,"type":"browser","created_at":"2020-03-16T13:06:22.507104+00:00","modified_at":"2020-03-16T13:06:22.507104+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"overall_state_modified":"2020-03-16T13:06:23.085449+00:00","overall_state":2,"config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"body":"this - is a body","method":"GET","timeout":30}},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"tick_every":900,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"cfp-fc8-hfc","tags":["foo:bar","baz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics browser test bar","monitor_id":18158454,"type":"browser","created_at":"2020-05-01T00:09:10.016307+00:00","modified_at":"2020-05-01T00:09:10.016307+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"config":{"variables":[],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[]},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -134,13 +146,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:23 GMT + - Fri, 01 May 2020 00:09:10 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:23 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:10 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -149,19 +161,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - qA85Kiicwd/s93AfT3MSf+l6IYc5FQ6tEbp4Kft/ri41UOumJ967MPQKmz3gwejd + - YCJuwY9AAFMveejFq3DmCuXNgWrXpDBQxqXi3LxQxaHO16MK3yMSWa14TOuRlDjy X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "85" + - "965" X-Ratelimit-Reset: - - "37" + - "50" status: 200 OK code: 200 duration: "" @@ -169,15 +181,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/f6q-cfn-tr5 + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/cfp-fc8-hfc method: GET response: - body: '{"status":"paused","public_id":"f6q-cfn-tr5","tags":["foo:bar","baz"],"stepCount":0,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics browser test bar","monitor_id":16887161,"type":"browser","created_at":"2020-03-16T13:06:22.507104+00:00","modified_at":"2020-03-16T13:06:22.507104+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"overall_state_modified":"2020-03-16T13:06:23.308683+00:00","overall_state":2,"config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"body":"this - is a body","method":"GET","timeout":30}},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"tick_every":900,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"cfp-fc8-hfc","tags":["foo:bar","baz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics browser test bar","monitor_id":18158454,"type":"browser","created_at":"2020-05-01T00:09:10.016307+00:00","modified_at":"2020-05-01T00:09:10.016307+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"config":{"variables":[],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[]},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -188,13 +204,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:23 GMT + - Fri, 01 May 2020 00:09:10 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:23 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:10 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -203,19 +219,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - Jhz2Lh32XBCZ7PVSj7/lof8hXjgbtiexG4VIRWAEYHPFefqyYpXnVaeT62yBncrB + - JbIYRXbRMsAVaKGy+d2H1ud8Z295ghodOPi6eELPzhmBKrZI3+dlseyrUY1cqOAd X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "84" + - "964" X-Ratelimit-Reset: - - "37" + - "50" status: 200 OK code: 200 duration: "" @@ -223,15 +239,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/f6q-cfn-tr5 + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/cfp-fc8-hfc method: GET response: - body: '{"status":"paused","public_id":"f6q-cfn-tr5","tags":["foo:bar","baz"],"stepCount":0,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics browser test bar","monitor_id":16887161,"type":"browser","created_at":"2020-03-16T13:06:22.507104+00:00","modified_at":"2020-03-16T13:06:22.507104+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"overall_state_modified":"2020-03-16T13:06:23.555855+00:00","overall_state":2,"config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"body":"this - is a body","method":"GET","timeout":30}},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"tick_every":900,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"cfp-fc8-hfc","tags":["foo:bar","baz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics browser test bar","monitor_id":18158454,"type":"browser","created_at":"2020-05-01T00:09:10.016307+00:00","modified_at":"2020-05-01T00:09:10.016307+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"config":{"variables":[],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[]},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -242,13 +262,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:23 GMT + - Fri, 01 May 2020 00:09:10 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:23 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:10 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -257,38 +277,42 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - tp1qdVxoUmtlsVp6hgBWraWfL5vEbA116VZkaWKWIZtgPr5Ima8zysCBv+o2WoZ/ + - svhoihUM58m7WJ4Z4lY5tmaXf/MnplHzAbMByuVznFW8yf3JIFAZgW/pCvMnq4iN X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "83" + - "963" X-Ratelimit-Reset: - - "37" + - "50" status: 200 OK code: 200 duration: "" - request: - body: '{"name":"updated name for synthetics browser test bar","type":"browser","tags":["foo:bar","buz"],"config":{"request":{"url":"https://docs.datadoghq.com","method":"PUT","timeout":60,"headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"body":"this - is an updated body"}},"message":"Notify @pagerduty","options":{"tick_every":1800,"min_failure_duration":10,"min_location_failed":1,"device_ids":["laptop_large","tablet"]},"locations":["aws:eu-central-1"],"status":"live"}' + body: | + {"config":{"assertions":[],"request":{"body":"this is an updated body","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"method":"PUT","timeout":60,"url":"https://docs.datadoghq.com"},"variables":[]},"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"updated name for synthetics browser test bar","options":{"device_ids":["laptop_large","tablet"],"min_failure_duration":10,"min_location_failed":1,"tick_every":1800},"status":"live","tags":["foo:bar","buz"],"type":"browser"} form: {} headers: + Accept: + - application/json Content-Type: - application/json + Dd-Operation-Id: + - UpdateTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/f6q-cfn-tr5 + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/cfp-fc8-hfc method: PUT response: - body: '{"status":"live","public_id":"f6q-cfn-tr5","tags":["foo:bar","buz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify + body: '{"status":"live","public_id":"cfp-fc8-hfc","tags":["foo:bar","buz"],"org_id":242643,"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","deleted_at":null,"name":"updated name for synthetics browser test - bar","monitor_id":16887161,"type":"browser","created_at":"2020-03-16T13:06:22.507104+00:00","modified_at":"2020-03-16T13:06:23.927438+00:00","config":{"request":{"url":"https://docs.datadoghq.com","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"body":"this - is an updated body","method":"PUT","timeout":60}},"options":{"min_failure_duration":10,"device_ids":["laptop_large","tablet"],"tick_every":1800,"min_location_failed":1}}' + bar","monitor_id":18158454,"type":"browser","created_at":"2020-05-01T00:09:10.016307+00:00","modified_at":"2020-05-01T00:09:10.753415+00:00","config":{"variables":[],"request":{"body":"this + is an updated body","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"url":"https://docs.datadoghq.com","timeout":60,"method":"PUT"},"assertions":[]},"options":{"min_failure_duration":10,"device_ids":["laptop_large","tablet"],"min_location_failed":1,"tick_every":1800}}' headers: Cache-Control: - no-cache @@ -299,13 +323,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:24 GMT + - Fri, 01 May 2020 00:09:10 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:23 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:10 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -314,19 +338,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 11g4TM+MO8VJV6iUJTOff4hAGEXsIqbG4IMv2YuWygOleCGxCxx6NihCkVtjenZN + - IWbeot5NPPjwzkLRJwJSrhKxooUYWPiItYmeOu7MvfpEU9kI8879nM2EukYnEnom X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "500" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "117" + - "497" X-Ratelimit-Reset: - - "37" + - "50" status: 200 OK code: 200 duration: "" @@ -334,15 +358,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/f6q-cfn-tr5 + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/cfp-fc8-hfc method: GET response: - body: '{"status":"live","public_id":"f6q-cfn-tr5","tags":["foo:bar","buz"],"stepCount":0,"locations":["aws:eu-central-1"],"message":"Notify - @pagerduty","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"updated - name for synthetics browser test bar","monitor_id":16887161,"type":"browser","created_at":"2020-03-16T13:06:22.507104+00:00","modified_at":"2020-03-16T13:06:23.927438+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"overall_state_modified":"2020-03-16T13:06:24.152562+00:00","overall_state":2,"config":{"request":{"url":"https://docs.datadoghq.com","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"body":"this - is an updated body","method":"PUT","timeout":60}},"options":{"min_failure_duration":10,"device_ids":["laptop_large","tablet"],"tick_every":1800,"min_location_failed":1}}' + body: '{"status":"live","public_id":"cfp-fc8-hfc","tags":["foo:bar","buz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify + @pagerduty","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"updated name for synthetics browser test bar","monitor_id":18158454,"type":"browser","created_at":"2020-05-01T00:09:10.016307+00:00","modified_at":"2020-05-01T00:09:10.753415+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"config":{"variables":[],"request":{"body":"this is an updated body","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"url":"https://docs.datadoghq.com","timeout":60,"method":"PUT"},"assertions":[]},"options":{"min_failure_duration":10,"device_ids":["laptop_large","tablet"],"min_location_failed":1,"tick_every":1800}}' headers: Cache-Control: - no-cache @@ -353,13 +381,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:24 GMT + - Fri, 01 May 2020 00:09:10 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:24 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:10 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -368,19 +396,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 11g4TM+MO8VJV6iUJTOff4hAGEXsIqbG4IMv2YuWygOleCGxCxx6NihCkVtjenZN + - MZCX71FNdAUQ6AMWRBKW1fkNpiPTypOoXE57zLYE3lG5gigqB2nroYJ/8uMn9muy X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "82" + - "962" X-Ratelimit-Reset: - - "36" + - "50" status: 200 OK code: 200 duration: "" @@ -388,15 +416,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/f6q-cfn-tr5 + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/cfp-fc8-hfc method: GET response: - body: '{"status":"live","public_id":"f6q-cfn-tr5","tags":["foo:bar","buz"],"stepCount":0,"locations":["aws:eu-central-1"],"message":"Notify - @pagerduty","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"updated - name for synthetics browser test bar","monitor_id":16887161,"type":"browser","created_at":"2020-03-16T13:06:22.507104+00:00","modified_at":"2020-03-16T13:06:23.927438+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"overall_state_modified":"2020-03-16T13:06:24.298284+00:00","overall_state":2,"config":{"request":{"url":"https://docs.datadoghq.com","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"body":"this - is an updated body","method":"PUT","timeout":60}},"options":{"min_failure_duration":10,"device_ids":["laptop_large","tablet"],"tick_every":1800,"min_location_failed":1}}' + body: '{"status":"live","public_id":"cfp-fc8-hfc","tags":["foo:bar","buz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify + @pagerduty","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"updated name for synthetics browser test bar","monitor_id":18158454,"type":"browser","created_at":"2020-05-01T00:09:10.016307+00:00","modified_at":"2020-05-01T00:09:10.753415+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"config":{"variables":[],"request":{"body":"this is an updated body","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"url":"https://docs.datadoghq.com","timeout":60,"method":"PUT"},"assertions":[]},"options":{"min_failure_duration":10,"device_ids":["laptop_large","tablet"],"min_location_failed":1,"tick_every":1800}}' headers: Cache-Control: - no-cache @@ -407,13 +439,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:24 GMT + - Fri, 01 May 2020 00:09:11 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:24 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:11 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -422,19 +454,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - +6muH0vWWhHE6JfE/xHkdpoFSNgX/+wCvqEMuEDvglDKir3htwvCDYdHi0bPaPF0 + - IWbeot5NPPjwzkLRJwJSrhKxooUYWPiItYmeOu7MvfpEU9kI8879nM2EukYnEnom X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "81" + - "961" X-Ratelimit-Reset: - - "36" + - "49" status: 200 OK code: 200 duration: "" @@ -442,15 +474,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/f6q-cfn-tr5 + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/cfp-fc8-hfc method: GET response: - body: '{"status":"live","public_id":"f6q-cfn-tr5","tags":["foo:bar","buz"],"stepCount":0,"locations":["aws:eu-central-1"],"message":"Notify - @pagerduty","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"updated - name for synthetics browser test bar","monitor_id":16887161,"type":"browser","created_at":"2020-03-16T13:06:22.507104+00:00","modified_at":"2020-03-16T13:06:23.927438+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"overall_state_modified":"2020-03-16T13:06:24.482165+00:00","overall_state":2,"config":{"request":{"url":"https://docs.datadoghq.com","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"body":"this - is an updated body","method":"PUT","timeout":60}},"options":{"min_failure_duration":10,"device_ids":["laptop_large","tablet"],"tick_every":1800,"min_location_failed":1}}' + body: '{"status":"live","public_id":"cfp-fc8-hfc","tags":["foo:bar","buz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify + @pagerduty","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"updated name for synthetics browser test bar","monitor_id":18158454,"type":"browser","created_at":"2020-05-01T00:09:10.016307+00:00","modified_at":"2020-05-01T00:09:10.753415+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"config":{"variables":[],"request":{"body":"this is an updated body","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"url":"https://docs.datadoghq.com","timeout":60,"method":"PUT"},"assertions":[]},"options":{"min_failure_duration":10,"device_ids":["laptop_large","tablet"],"min_location_failed":1,"tick_every":1800}}' headers: Cache-Control: - no-cache @@ -461,13 +497,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:24 GMT + - Fri, 01 May 2020 00:09:11 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:24 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:11 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -476,19 +512,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - menB+JzZJZWnsBMzYDdvLqZLyJ1Z3XKvvLNUvAnnxCkhc359HSRPRWZhATTwUzcU + - JbIYRXbRMsAVaKGy+d2H1ud8Z295ghodOPi6eELPzhmBKrZI3+dlseyrUY1cqOAd X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "80" + - "960" X-Ratelimit-Reset: - - "36" + - "49" status: 200 OK code: 200 duration: "" @@ -496,15 +532,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/f6q-cfn-tr5 + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/cfp-fc8-hfc method: GET response: - body: '{"status":"live","public_id":"f6q-cfn-tr5","tags":["foo:bar","buz"],"stepCount":0,"locations":["aws:eu-central-1"],"message":"Notify - @pagerduty","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"updated - name for synthetics browser test bar","monitor_id":16887161,"type":"browser","created_at":"2020-03-16T13:06:22.507104+00:00","modified_at":"2020-03-16T13:06:23.927438+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"overall_state_modified":"2020-03-16T13:06:24.676578+00:00","overall_state":2,"config":{"request":{"url":"https://docs.datadoghq.com","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"body":"this - is an updated body","method":"PUT","timeout":60}},"options":{"min_failure_duration":10,"device_ids":["laptop_large","tablet"],"tick_every":1800,"min_location_failed":1}}' + body: '{"status":"live","public_id":"cfp-fc8-hfc","tags":["foo:bar","buz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify + @pagerduty","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"updated name for synthetics browser test bar","monitor_id":18158454,"type":"browser","created_at":"2020-05-01T00:09:10.016307+00:00","modified_at":"2020-05-01T00:09:10.753415+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"config":{"variables":[],"request":{"body":"this is an updated body","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"url":"https://docs.datadoghq.com","timeout":60,"method":"PUT"},"assertions":[]},"options":{"min_failure_duration":10,"device_ids":["laptop_large","tablet"],"min_location_failed":1,"tick_every":1800}}' headers: Cache-Control: - no-cache @@ -515,13 +555,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:24 GMT + - Fri, 01 May 2020 00:09:11 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:24 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:11 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -530,34 +570,39 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - jety+2H6BA1H4x31+wzy5BjqI2NDwh54fgbjSYyrLU0p2tWQPCCTKspX7sHO7u1n + - PcnVfOcEtqolY6fi98GEVSGXOZZkwQSBbl/twLr2TucYRfYyGCLXvKm6pTUNQt1l X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "79" + - "959" X-Ratelimit-Reset: - - "36" + - "49" status: 200 OK code: 200 duration: "" - request: - body: '{"public_ids":["f6q-cfn-tr5"]}' + body: | + {"public_ids":["cfp-fc8-hfc"]} form: {} headers: + Accept: + - application/json Content-Type: - application/json + Dd-Operation-Id: + - DeleteTests User-Agent: - - Datadog/dev/terraform (go1.13) + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2020-03-16T13:06:24.877856+00:00","public_id":"f6q-cfn-tr5"}]}' + body: '{"deleted_tests":[{"deleted_at":"2020-05-01T00:09:11.417077+00:00","public_id":"cfp-fc8-hfc"}]}' headers: Cache-Control: - no-cache @@ -568,13 +613,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:25 GMT + - Fri, 01 May 2020 00:09:11 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:24 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:11 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -583,9 +628,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - l+fZq7vW9gg1qInAzXkJZdt8f8e/094RDnN9pOEIlkXbx1jb6kpjgt1+syYCZyFC + - xKFgbVhCHArG4Y0sXMtZ5P8r3tuxi63adTKFxNzM7f4aJAAu82zS1Bp7ak9HjM4Y X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -595,7 +640,7 @@ interactions: X-Ratelimit-Remaining: - "114" X-Ratelimit-Reset: - - "36" + - "49" status: 200 OK code: 200 duration: "" @@ -603,9 +648,13 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/f6q-cfn-tr5 + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/cfp-fc8-hfc method: GET response: body: '{"errors": ["Synthetics test not found"]}' @@ -619,7 +668,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:25 GMT + - Fri, 01 May 2020 00:09:11 GMT Dd-Pool: - dogweb Pragma: @@ -631,17 +680,17 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "78" + - "958" X-Ratelimit-Reset: - - "35" + - "49" status: 404 Not Found code: 404 duration: "" diff --git a/datadog/cassettes/TestAccDatadogSyntheticsBrowserTest_importBasic.yaml b/datadog/cassettes/TestAccDatadogSyntheticsBrowserTest_importBasic.yaml index a948c3c8e..014eb5f1b 100644 --- a/datadog/cassettes/TestAccDatadogSyntheticsBrowserTest_importBasic.yaml +++ b/datadog/cassettes/TestAccDatadogSyntheticsBrowserTest_importBasic.yaml @@ -2,20 +2,24 @@ version: 1 interactions: - request: - body: '{"name":"name for synthetics browser test bar","type":"browser","tags":["foo:bar","baz"],"config":{"request":{"url":"https://www.datadoghq.com","method":"GET","timeout":30,"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"body":"this - is a body"}},"message":"Notify @datadog.user","options":{"tick_every":900,"min_failure_duration":0,"min_location_failed":1,"device_ids":["laptop_large","mobile_small"]},"locations":["aws:eu-central-1"],"status":"paused"}' + body: | + {"config":{"assertions":[],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","timeout":30,"url":"https://www.datadoghq.com"},"variables":[]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"name for synthetics browser test bar","options":{"device_ids":["laptop_large","mobile_small"],"min_failure_duration":0,"min_location_failed":1,"tick_every":900},"status":"paused","tags":["foo:bar","baz"],"type":"browser"} form: {} headers: + Accept: + - application/json Content-Type: - application/json + Dd-Operation-Id: + - CreateTest User-Agent: - - Datadog/dev/terraform (go1.13) + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests method: POST response: - body: '{"status":"paused","public_id":"ez5-7jq-gmq","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","deleted_at":null,"name":"name for synthetics browser test bar","monitor_id":16887168,"type":"browser","created_at":"2020-03-16T13:06:38.630021+00:00","modified_at":"2020-03-16T13:06:38.630021+00:00","config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"body":"this - is a body","method":"GET","timeout":30}},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"tick_every":900,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"77j-rkq-c22","tags":["foo:bar","baz"],"org_id":242643,"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","deleted_at":null,"name":"name for synthetics browser test bar","monitor_id":18158461,"type":"browser","created_at":"2020-05-01T00:09:12.007846+00:00","modified_at":"2020-05-01T00:09:12.007846+00:00","config":{"variables":[],"request":{"body":"this + is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[]},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -26,13 +30,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:38 GMT + - Fri, 01 May 2020 00:09:12 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:38 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:11 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -41,9 +45,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - pT9LlAdgAzlrCUxMXQkBRs/Qti76jKIHng1uB0/SctAaYjB4WqOgOZYpCbOMQKll + - EbXB0e7cF4uDRViRvI+w6qPg1YzykoJqZiw5SbqL/81VRQW4a286h09eTGyIVvXJ X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -51,9 +55,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "111" + - "112" X-Ratelimit-Reset: - - "22" + - "49" status: 200 OK code: 200 duration: "" @@ -61,15 +65,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/ez5-7jq-gmq + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/77j-rkq-c22 method: GET response: - body: '{"status":"paused","public_id":"ez5-7jq-gmq","tags":["foo:bar","baz"],"stepCount":0,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics browser test bar","monitor_id":16887168,"type":"browser","created_at":"2020-03-16T13:06:38.630021+00:00","modified_at":"2020-03-16T13:06:38.630021+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"body":"this - is a body","method":"GET","timeout":30}},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"tick_every":900,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"77j-rkq-c22","tags":["foo:bar","baz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics browser test bar","monitor_id":18158461,"type":"browser","created_at":"2020-05-01T00:09:12.007846+00:00","modified_at":"2020-05-01T00:09:12.007846+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"config":{"variables":[],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[]},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -80,13 +88,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:38 GMT + - Fri, 01 May 2020 00:09:12 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:38 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:12 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -95,19 +103,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - x4m73yTAj65OpCjnvpw3RBJyiFQpkDOBZ7rE/UM6Q4o0837nUb4ZsWFNJUD0Xh0e + - HtltRxB6FWULKbr8JD/35HKWhI+dqAFQg/rNpMbjeMOPUq5j5iWk+nIs8OwDOqUR X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "71" + - "954" X-Ratelimit-Reset: - - "22" + - "48" status: 200 OK code: 200 duration: "" @@ -115,15 +123,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/ez5-7jq-gmq + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/77j-rkq-c22 method: GET response: - body: '{"status":"paused","public_id":"ez5-7jq-gmq","tags":["foo:bar","baz"],"stepCount":0,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics browser test bar","monitor_id":16887168,"type":"browser","created_at":"2020-03-16T13:06:38.630021+00:00","modified_at":"2020-03-16T13:06:38.630021+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"body":"this - is a body","method":"GET","timeout":30}},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"tick_every":900,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"77j-rkq-c22","tags":["foo:bar","baz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics browser test bar","monitor_id":18158461,"type":"browser","created_at":"2020-05-01T00:09:12.007846+00:00","modified_at":"2020-05-01T00:09:12.007846+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"config":{"variables":[],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[]},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -134,13 +146,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:38 GMT + - Fri, 01 May 2020 00:09:12 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:38 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:12 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -149,19 +161,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - IRAJ1mQ+c3epm0CLGtZoe/y8O4TCss3jYw+fwQOm7+eSKRCE+p3OtawVnIQ5ts76 + - zDaLXgTwOglSG/+LeCisOhDwAOr7D4UzTY02i97kQg3V5W3f2nMLfChR6yLoaPN1 X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "68" + - "951" X-Ratelimit-Reset: - - "22" + - "48" status: 200 OK code: 200 duration: "" @@ -169,15 +181,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/ez5-7jq-gmq + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/77j-rkq-c22 method: GET response: - body: '{"status":"paused","public_id":"ez5-7jq-gmq","tags":["foo:bar","baz"],"stepCount":0,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics browser test bar","monitor_id":16887168,"type":"browser","created_at":"2020-03-16T13:06:38.630021+00:00","modified_at":"2020-03-16T13:06:38.630021+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"body":"this - is a body","method":"GET","timeout":30}},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"tick_every":900,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"77j-rkq-c22","tags":["foo:bar","baz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics browser test bar","monitor_id":18158461,"type":"browser","created_at":"2020-05-01T00:09:12.007846+00:00","modified_at":"2020-05-01T00:09:12.007846+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"config":{"variables":[],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[]},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -188,13 +204,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:39 GMT + - Fri, 01 May 2020 00:09:12 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:39 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:12 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -203,19 +219,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - EE74ncTR989SomsonUvABJWdGDkXBs7Emqj3HVDpp6NYddpvHp95kXsnHux1Es9E + - J7vOWsxZd7Grxzg2TIaQpn2nGjrOScgI4Kwzur8V2oOTYInX6xbVT4leinNkGLPk X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "67" + - "947" X-Ratelimit-Reset: - - "21" + - "48" status: 200 OK code: 200 duration: "" @@ -223,15 +239,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/ez5-7jq-gmq + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/77j-rkq-c22 method: GET response: - body: '{"status":"paused","public_id":"ez5-7jq-gmq","tags":["foo:bar","baz"],"stepCount":0,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics browser test bar","monitor_id":16887168,"type":"browser","created_at":"2020-03-16T13:06:38.630021+00:00","modified_at":"2020-03-16T13:06:38.630021+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"body":"this - is a body","method":"GET","timeout":30}},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"tick_every":900,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"77j-rkq-c22","tags":["foo:bar","baz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics browser test bar","monitor_id":18158461,"type":"browser","created_at":"2020-05-01T00:09:12.007846+00:00","modified_at":"2020-05-01T00:09:12.007846+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"config":{"variables":[],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[]},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -242,13 +262,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:39 GMT + - Fri, 01 May 2020 00:09:12 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:39 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:12 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -257,34 +277,39 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - o1rjyOSbDnvYaQgtO33vwWSNsIwHafzLqam2amG/PbTP69SVY965ZpWutdoYJB30 + - EE74ncTR989SomsonUvABJWdGDkXBs7Emqj3HVDpp6NYddpvHp95kXsnHux1Es9E X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "66" + - "946" X-Ratelimit-Reset: - - "21" + - "48" status: 200 OK code: 200 duration: "" - request: - body: '{"public_ids":["ez5-7jq-gmq"]}' + body: | + {"public_ids":["77j-rkq-c22"]} form: {} headers: + Accept: + - application/json Content-Type: - application/json + Dd-Operation-Id: + - DeleteTests User-Agent: - - Datadog/dev/terraform (go1.13) + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2020-03-16T13:06:39.601573+00:00","public_id":"ez5-7jq-gmq"}]}' + body: '{"deleted_tests":[{"deleted_at":"2020-05-01T00:09:12.752464+00:00","public_id":"77j-rkq-c22"}]}' headers: Cache-Control: - no-cache @@ -295,13 +320,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:39 GMT + - Fri, 01 May 2020 00:09:12 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:39 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:12 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -310,9 +335,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 562ySu37xnxKxbTr0NFd7oH3+L3JO3D7GcG/Lb1Dr0vgKuyocJBk1SrO7ogLRZuZ + - GAK1J4mJd/EBZfEK4rqUw9OeB9GOeKgSyrXGtzNUi5zrv5sHYU56xJgA4bcbtgUA X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -322,7 +347,7 @@ interactions: X-Ratelimit-Remaining: - "111" X-Ratelimit-Reset: - - "21" + - "48" status: 200 OK code: 200 duration: "" @@ -330,9 +355,13 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/ez5-7jq-gmq + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/77j-rkq-c22 method: GET response: body: '{"errors": ["Synthetics test not found"]}' @@ -346,7 +375,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:39 GMT + - Fri, 01 May 2020 00:09:12 GMT Dd-Pool: - dogweb Pragma: @@ -358,17 +387,17 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "63" + - "944" X-Ratelimit-Reset: - - "21" + - "48" status: 404 Not Found code: 404 duration: "" diff --git a/datadog/cassettes/TestAccDatadogSyntheticsSSLTest_Basic.yaml b/datadog/cassettes/TestAccDatadogSyntheticsSSLTest_Basic.yaml index 2da3ad9b4..799531308 100644 --- a/datadog/cassettes/TestAccDatadogSyntheticsSSLTest_Basic.yaml +++ b/datadog/cassettes/TestAccDatadogSyntheticsSSLTest_Basic.yaml @@ -2,19 +2,23 @@ version: 1 interactions: - request: - body: '{"name":"name for synthetics test ssl","type":"api","subtype":"ssl","tags":["foo:bar","baz"],"config":{"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"message":"Notify - @datadog.user","options":{"tick_every":60,"accept_self_signed":true},"locations":["aws:eu-central-1"],"status":"paused"}' + body: | + {"config":{"assertions":[{"operator":"isInMoreThan","target":30,"type":"certificate"}],"request":{"host":"datadoghq.com","port":443},"variables":[]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"name for synthetics test ssl","options":{"accept_self_signed":true,"tick_every":60},"status":"paused","subtype":"ssl","tags":["foo:bar","baz"],"type":"api"} form: {} headers: + Accept: + - application/json Content-Type: - application/json + Dd-Operation-Id: + - CreateTest User-Agent: - - Datadog/dev/terraform (go1.13) + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests method: POST response: - body: '{"status":"paused","public_id":"pte-txs-53q","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","deleted_at":null,"name":"name for synthetics test ssl","monitor_id":16887158,"type":"api","created_at":"2020-03-16T13:06:16.126704+00:00","modified_at":"2020-03-16T13:06:16.126704+00:00","subtype":"ssl","config":{"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' + body: '{"status":"paused","public_id":"54g-9s4-uav","tags":["foo:bar","baz"],"org_id":242643,"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","deleted_at":null,"name":"name for synthetics test ssl","monitor_id":18158441,"type":"api","created_at":"2020-05-01T00:09:05.797108+00:00","modified_at":"2020-05-01T00:09:05.797108+00:00","subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -25,13 +29,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:16 GMT + - Fri, 01 May 2020 00:09:05 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:15 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:05 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -40,9 +44,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - CPK+34LtKdL5YYX/NFOJUdMpxMoO80HISGpGpzDG5fENYSoZ2QNw1gEubOsJ9JNb + - v8lEj/pYmsavh1I0Db6FT/BAvLdOdAv91ctM9ImcmfZ/KHrCACXEdhuskTCPihd+ X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -52,7 +56,7 @@ interactions: X-Ratelimit-Remaining: - "117" X-Ratelimit-Reset: - - "45" + - "55" status: 200 OK code: 200 duration: "" @@ -60,14 +64,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/pte-txs-53q + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/54g-9s4-uav method: GET response: - body: '{"status":"paused","public_id":"pte-txs-53q","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics test ssl","monitor_id":16887158,"type":"api","created_at":"2020-03-16T13:06:16.126704+00:00","modified_at":"2020-03-16T13:06:16.126704+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"ssl","config":{"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' + body: '{"status":"paused","public_id":"54g-9s4-uav","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics test ssl","monitor_id":18158441,"type":"api","created_at":"2020-05-01T00:09:05.797108+00:00","modified_at":"2020-05-01T00:09:05.797108+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -78,13 +87,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:16 GMT + - Fri, 01 May 2020 00:09:05 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:16 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:05 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -93,19 +102,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - EbXB0e7cF4uDRViRvI+w6qPg1YzykoJqZiw5SbqL/81VRQW4a286h09eTGyIVvXJ + - FGm8mbL/ixNS/zyX94m5xaWAxszhu9w68KL0QwTbLNqYgp2ZyX2W4rsoYLDoadr+ X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "105" + - "985" X-Ratelimit-Reset: - - "44" + - "55" status: 200 OK code: 200 duration: "" @@ -113,14 +122,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/pte-txs-53q + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/54g-9s4-uav method: GET response: - body: '{"status":"paused","public_id":"pte-txs-53q","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics test ssl","monitor_id":16887158,"type":"api","created_at":"2020-03-16T13:06:16.126704+00:00","modified_at":"2020-03-16T13:06:16.126704+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"ssl","config":{"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' + body: '{"status":"paused","public_id":"54g-9s4-uav","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics test ssl","monitor_id":18158441,"type":"api","created_at":"2020-05-01T00:09:05.797108+00:00","modified_at":"2020-05-01T00:09:05.797108+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -131,13 +145,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:16 GMT + - Fri, 01 May 2020 00:09:06 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:16 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:06 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -146,19 +160,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - bZxgHnChon9vZm5xdRa4NrQAYSVWc7iQc54D228L4geTT/U2FwMh0nkSo8j+6vpL + - TAg/qKywM5rz/AUGkmt8+wB4wzGMJfSiHOrBzxBctPLsV/erSD5TChi/uo5ZlVXK X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "104" + - "984" X-Ratelimit-Reset: - - "44" + - "54" status: 200 OK code: 200 duration: "" @@ -166,14 +180,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/pte-txs-53q + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/54g-9s4-uav method: GET response: - body: '{"status":"paused","public_id":"pte-txs-53q","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics test ssl","monitor_id":16887158,"type":"api","created_at":"2020-03-16T13:06:16.126704+00:00","modified_at":"2020-03-16T13:06:16.126704+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"ssl","config":{"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' + body: '{"status":"paused","public_id":"54g-9s4-uav","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics test ssl","monitor_id":18158441,"type":"api","created_at":"2020-05-01T00:09:05.797108+00:00","modified_at":"2020-05-01T00:09:05.797108+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"ssl","overall_state_modified":"2020-05-01T00:09:06.248582+00:00","overall_state":2,"config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -184,13 +203,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:16 GMT + - Fri, 01 May 2020 00:09:06 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:16 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:06 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -199,19 +218,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - sAPKocoLMDEnM5qY2PL6SCQ+dkENYAR/6IistAQ5iiTU/UnJHAba158nxOvVRvKJ + - vwiIwb5QepaQFIQrmPfIwwVWkQ/z0inFQwNEDjqDDy4v3CsF5qbv9dnyfb7UGzLf X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "103" + - "983" X-Ratelimit-Reset: - - "44" + - "54" status: 200 OK code: 200 duration: "" @@ -219,14 +238,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/pte-txs-53q + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/54g-9s4-uav method: GET response: - body: '{"status":"paused","public_id":"pte-txs-53q","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics test ssl","monitor_id":16887158,"type":"api","created_at":"2020-03-16T13:06:16.126704+00:00","modified_at":"2020-03-16T13:06:16.126704+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"ssl","overall_state_modified":"2020-03-16T13:06:17.090334+00:00","overall_state":2,"config":{"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' + body: '{"status":"paused","public_id":"54g-9s4-uav","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics test ssl","monitor_id":18158441,"type":"api","created_at":"2020-05-01T00:09:05.797108+00:00","modified_at":"2020-05-01T00:09:05.797108+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"ssl","overall_state_modified":"2020-05-01T00:09:06.380125+00:00","overall_state":2,"config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -237,13 +261,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:17 GMT + - Fri, 01 May 2020 00:09:06 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:17 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:06 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -252,34 +276,39 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 7/pC7B9bYAY6HGz006Bg+ZrYGMZFiH1gxYQ0jMSpdzevd2r/Iy3Bkt2FGvLL5qId + - aq7EAvMMXGdldXT5eVhOcqdveqp5VDY6MoO0A/xKTuSa7v4Cc6HWT9iWUnYD+m1F X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "102" + - "982" X-Ratelimit-Reset: - - "43" + - "54" status: 200 OK code: 200 duration: "" - request: - body: '{"public_ids":["pte-txs-53q"]}' + body: | + {"public_ids":["54g-9s4-uav"]} form: {} headers: + Accept: + - application/json Content-Type: - application/json + Dd-Operation-Id: + - DeleteTests User-Agent: - - Datadog/dev/terraform (go1.13) + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2020-03-16T13:06:17.299571+00:00","public_id":"pte-txs-53q"}]}' + body: '{"deleted_tests":[{"deleted_at":"2020-05-01T00:09:06.502171+00:00","public_id":"54g-9s4-uav"}]}' headers: Cache-Control: - no-cache @@ -290,13 +319,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:17 GMT + - Fri, 01 May 2020 00:09:06 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:17 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:06 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -305,9 +334,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - zDaLXgTwOglSG/+LeCisOhDwAOr7D4UzTY02i97kQg3V5W3f2nMLfChR6yLoaPN1 + - 0Ldh7zbvTvxG6fwW0tw8N7mZPnI2XNOUoKCE8H0O1+b4UJVtdo0G52qWoFveZXDz X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -317,7 +346,7 @@ interactions: X-Ratelimit-Remaining: - "117" X-Ratelimit-Reset: - - "43" + - "54" status: 200 OK code: 200 duration: "" @@ -325,9 +354,13 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/pte-txs-53q + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/54g-9s4-uav method: GET response: body: '{"errors": ["Synthetics test not found"]}' @@ -341,7 +374,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:17 GMT + - Fri, 01 May 2020 00:09:06 GMT Dd-Pool: - dogweb Pragma: @@ -353,17 +386,17 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "101" + - "981" X-Ratelimit-Reset: - - "43" + - "54" status: 404 Not Found code: 404 duration: "" diff --git a/datadog/cassettes/TestAccDatadogSyntheticsSSLTest_Updated.yaml b/datadog/cassettes/TestAccDatadogSyntheticsSSLTest_Updated.yaml index e1ac57486..a99a828b1 100644 --- a/datadog/cassettes/TestAccDatadogSyntheticsSSLTest_Updated.yaml +++ b/datadog/cassettes/TestAccDatadogSyntheticsSSLTest_Updated.yaml @@ -2,19 +2,23 @@ version: 1 interactions: - request: - body: '{"name":"name for synthetics test ssl","type":"api","subtype":"ssl","tags":["foo:bar","baz"],"config":{"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"message":"Notify - @datadog.user","options":{"tick_every":60,"accept_self_signed":true},"locations":["aws:eu-central-1"],"status":"paused"}' + body: | + {"config":{"assertions":[{"operator":"isInMoreThan","target":30,"type":"certificate"}],"request":{"host":"datadoghq.com","port":443},"variables":[]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"name for synthetics test ssl","options":{"accept_self_signed":true,"tick_every":60},"status":"paused","subtype":"ssl","tags":["foo:bar","baz"],"type":"api"} form: {} headers: + Accept: + - application/json Content-Type: - application/json + Dd-Operation-Id: + - CreateTest User-Agent: - - Datadog/dev/terraform (go1.13) + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests method: POST response: - body: '{"status":"paused","public_id":"8b6-t2t-7mu","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","deleted_at":null,"name":"name for synthetics test ssl","monitor_id":16887159,"type":"api","created_at":"2020-03-16T13:06:17.964498+00:00","modified_at":"2020-03-16T13:06:17.964498+00:00","subtype":"ssl","config":{"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' + body: '{"status":"paused","public_id":"jed-xu7-iuu","tags":["foo:bar","baz"],"org_id":242643,"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","deleted_at":null,"name":"name for synthetics test ssl","monitor_id":18158445,"type":"api","created_at":"2020-05-01T00:09:06.876186+00:00","modified_at":"2020-05-01T00:09:06.876186+00:00","subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -25,13 +29,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:18 GMT + - Fri, 01 May 2020 00:09:06 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:17 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:06 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -40,9 +44,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - yqCkAb2Y8/4OgTSGYvedTl/k5gsPukDI7OLTlGSm9adIbRDVlGb00Ve5DDv9ImFD + - wB7h0Rt2IYxDUBLtoJ4y0ZOq10ZaMdDZiRuFZ3d/FUUtC7gfBEZWTs0Y6dZhoLZS X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -52,7 +56,7 @@ interactions: X-Ratelimit-Remaining: - "116" X-Ratelimit-Reset: - - "43" + - "54" status: 200 OK code: 200 duration: "" @@ -60,14 +64,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/8b6-t2t-7mu + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/jed-xu7-iuu method: GET response: - body: '{"status":"paused","public_id":"8b6-t2t-7mu","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics test ssl","monitor_id":16887159,"type":"api","created_at":"2020-03-16T13:06:17.964498+00:00","modified_at":"2020-03-16T13:06:17.964498+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"ssl","config":{"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' + body: '{"status":"paused","public_id":"jed-xu7-iuu","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics test ssl","monitor_id":18158445,"type":"api","created_at":"2020-05-01T00:09:06.876186+00:00","modified_at":"2020-05-01T00:09:06.876186+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -78,13 +87,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:18 GMT + - Fri, 01 May 2020 00:09:07 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:18 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:06 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -93,19 +102,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - BQaWiIhDCyK3JbvyPZudxtMuoedbvOKE6tb5GJMfo6GT4EOQ8qx9lqgA4UCxp88q + - LOVPYRkvxiVgJlSU7tTR5QW5I3IByFfoP5oRWZk6jukYFQiYGeCZXWoo6PiPBzrK X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "100" + - "980" X-Ratelimit-Reset: - - "42" + - "53" status: 200 OK code: 200 duration: "" @@ -113,14 +122,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/8b6-t2t-7mu + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/jed-xu7-iuu method: GET response: - body: '{"status":"paused","public_id":"8b6-t2t-7mu","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics test ssl","monitor_id":16887159,"type":"api","created_at":"2020-03-16T13:06:17.964498+00:00","modified_at":"2020-03-16T13:06:17.964498+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"ssl","config":{"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' + body: '{"status":"paused","public_id":"jed-xu7-iuu","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics test ssl","monitor_id":18158445,"type":"api","created_at":"2020-05-01T00:09:06.876186+00:00","modified_at":"2020-05-01T00:09:06.876186+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -131,13 +145,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:18 GMT + - Fri, 01 May 2020 00:09:07 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:18 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:07 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -146,19 +160,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - KKdI9UAf8fC5q7osIllxNui0A1CUm45w7mZBz+tu6Vlp/ga+Q6ZXvY0JoJlUBVi+ + - 3OCRM/4FZbkllI4iloi1acHDABD1SJi2aj2fysEPLLsOVOk5Ki6mi6IOsVG7JIay X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "99" + - "979" X-Ratelimit-Reset: - - "42" + - "53" status: 200 OK code: 200 duration: "" @@ -166,14 +180,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/8b6-t2t-7mu + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/jed-xu7-iuu method: GET response: - body: '{"status":"paused","public_id":"8b6-t2t-7mu","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics test ssl","monitor_id":16887159,"type":"api","created_at":"2020-03-16T13:06:17.964498+00:00","modified_at":"2020-03-16T13:06:17.964498+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"ssl","config":{"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' + body: '{"status":"paused","public_id":"jed-xu7-iuu","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics test ssl","monitor_id":18158445,"type":"api","created_at":"2020-05-01T00:09:06.876186+00:00","modified_at":"2020-05-01T00:09:06.876186+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -184,13 +203,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:18 GMT + - Fri, 01 May 2020 00:09:07 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:18 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:07 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -199,19 +218,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - DAk/CQntZmry+u4cYsuVOELuKFo1I3NzKRNwPlY9WvlbH+rffk5VylB8tKDaSRWP + - IWbeot5NPPjwzkLRJwJSrhKxooUYWPiItYmeOu7MvfpEU9kI8879nM2EukYnEnom X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "98" + - "978" X-Ratelimit-Reset: - - "42" + - "53" status: 200 OK code: 200 duration: "" @@ -219,14 +238,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/8b6-t2t-7mu + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/jed-xu7-iuu method: GET response: - body: '{"status":"paused","public_id":"8b6-t2t-7mu","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics test ssl","monitor_id":16887159,"type":"api","created_at":"2020-03-16T13:06:17.964498+00:00","modified_at":"2020-03-16T13:06:17.964498+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"ssl","config":{"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' + body: '{"status":"paused","public_id":"jed-xu7-iuu","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics test ssl","monitor_id":18158445,"type":"api","created_at":"2020-05-01T00:09:06.876186+00:00","modified_at":"2020-05-01T00:09:06.876186+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -237,13 +261,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:18 GMT + - Fri, 01 May 2020 00:09:07 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:18 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:07 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -252,36 +276,40 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - cQFL4MaIw90DmTTH7z4Gqhr8PBtz47vyzddN9k7nXjUK2yrLiBjbdIgydUT8r1ut + - bZxgHnChon9vZm5xdRa4NrQAYSVWc7iQc54D228L4geTT/U2FwMh0nkSo8j+6vpL X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "97" + - "977" X-Ratelimit-Reset: - - "42" + - "53" status: 200 OK code: 200 duration: "" - request: - body: '{"name":"updated name","type":"api","subtype":"ssl","tags":["foo:bar","foo","env:test"],"config":{"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":60}]},"message":"Notify - @pagerduty","options":{"tick_every":60,"accept_self_signed":false},"locations":["aws:eu-central-1"],"status":"live"}' + body: | + {"config":{"assertions":[{"operator":"isInMoreThan","target":60,"type":"certificate"}],"request":{"host":"datadoghq.com","port":443},"variables":[]},"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"updated name","options":{"accept_self_signed":false,"tick_every":60},"status":"live","subtype":"ssl","tags":["foo:bar","foo","env:test"],"type":"api"} form: {} headers: + Accept: + - application/json Content-Type: - application/json + Dd-Operation-Id: + - UpdateTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/8b6-t2t-7mu + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/jed-xu7-iuu method: PUT response: - body: '{"status":"live","public_id":"8b6-t2t-7mu","tags":["foo:bar","foo","env:test"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify - @pagerduty","deleted_at":null,"name":"updated name","monitor_id":16887159,"type":"api","created_at":"2020-03-16T13:06:17.964498+00:00","modified_at":"2020-03-16T13:06:18.915868+00:00","subtype":"ssl","config":{"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":60}]},"options":{"accept_self_signed":false,"tick_every":60}}' + body: '{"status":"live","public_id":"jed-xu7-iuu","tags":["foo:bar","foo","env:test"],"org_id":242643,"locations":["aws:eu-central-1"],"message":"Notify + @pagerduty","deleted_at":null,"name":"updated name","monitor_id":18158445,"type":"api","created_at":"2020-05-01T00:09:06.876186+00:00","modified_at":"2020-05-01T00:09:07.568623+00:00","subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":60}]},"options":{"accept_self_signed":false,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -292,13 +320,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:18 GMT + - Fri, 01 May 2020 00:09:07 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:18 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:07 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -307,19 +335,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 0Ldh7zbvTvxG6fwW0tw8N7mZPnI2XNOUoKCE8H0O1+b4UJVtdo0G52qWoFveZXDz + - xKFgbVhCHArG4Y0sXMtZ5P8r3tuxi63adTKFxNzM7f4aJAAu82zS1Bp7ak9HjM4Y X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "500" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "118" + - "498" X-Ratelimit-Reset: - - "42" + - "53" status: 200 OK code: 200 duration: "" @@ -327,14 +355,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/8b6-t2t-7mu + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/jed-xu7-iuu method: GET response: - body: '{"status":"live","public_id":"8b6-t2t-7mu","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify - @pagerduty","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"updated - name","monitor_id":16887159,"type":"api","created_at":"2020-03-16T13:06:17.964498+00:00","modified_at":"2020-03-16T13:06:18.915868+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"ssl","overall_state_modified":"2020-03-16T13:06:19.173718+00:00","overall_state":2,"config":{"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":60}]},"options":{"accept_self_signed":false,"tick_every":60}}' + body: '{"status":"live","public_id":"jed-xu7-iuu","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify + @pagerduty","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"updated name","monitor_id":18158445,"type":"api","created_at":"2020-05-01T00:09:06.876186+00:00","modified_at":"2020-05-01T00:09:07.568623+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":60}]},"options":{"accept_self_signed":false,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -345,13 +378,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:19 GMT + - Fri, 01 May 2020 00:09:07 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:19 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:07 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -360,19 +393,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - HtltRxB6FWULKbr8JD/35HKWhI+dqAFQg/rNpMbjeMOPUq5j5iWk+nIs8OwDOqUR + - 7vC9CD2UnUYbC7cu05B95RgDyGt2vcRq8GQJgBahx4BAPKzA8OvLqEF8NdaLccla X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "96" + - "976" X-Ratelimit-Reset: - - "41" + - "53" status: 200 OK code: 200 duration: "" @@ -380,14 +413,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/8b6-t2t-7mu + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/jed-xu7-iuu method: GET response: - body: '{"status":"live","public_id":"8b6-t2t-7mu","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify - @pagerduty","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"updated - name","monitor_id":16887159,"type":"api","created_at":"2020-03-16T13:06:17.964498+00:00","modified_at":"2020-03-16T13:06:18.915868+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"ssl","overall_state_modified":"2020-03-16T13:06:19.313944+00:00","overall_state":2,"config":{"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":60}]},"options":{"accept_self_signed":false,"tick_every":60}}' + body: '{"status":"live","public_id":"jed-xu7-iuu","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify + @pagerduty","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"updated name","monitor_id":18158445,"type":"api","created_at":"2020-05-01T00:09:06.876186+00:00","modified_at":"2020-05-01T00:09:07.568623+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":60}]},"options":{"accept_self_signed":false,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -398,13 +436,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:19 GMT + - Fri, 01 May 2020 00:09:07 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:19 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:07 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -413,19 +451,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - FB5oGxuL9E/cplxahdQnU5Nw5E7KX0Smq18it9qYKIt8BXsSloE0IpDRA39tfQwn + - GAK1J4mJd/EBZfEK4rqUw9OeB9GOeKgSyrXGtzNUi5zrv5sHYU56xJgA4bcbtgUA X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "95" + - "975" X-Ratelimit-Reset: - - "41" + - "53" status: 200 OK code: 200 duration: "" @@ -433,14 +471,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/8b6-t2t-7mu + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/jed-xu7-iuu method: GET response: - body: '{"status":"live","public_id":"8b6-t2t-7mu","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify - @pagerduty","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"updated - name","monitor_id":16887159,"type":"api","created_at":"2020-03-16T13:06:17.964498+00:00","modified_at":"2020-03-16T13:06:18.915868+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"ssl","overall_state_modified":"2020-03-16T13:06:19.484058+00:00","overall_state":2,"config":{"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":60}]},"options":{"accept_self_signed":false,"tick_every":60}}' + body: '{"status":"live","public_id":"jed-xu7-iuu","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify + @pagerduty","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"updated name","monitor_id":18158445,"type":"api","created_at":"2020-05-01T00:09:06.876186+00:00","modified_at":"2020-05-01T00:09:07.568623+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":60}]},"options":{"accept_self_signed":false,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -451,13 +494,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:19 GMT + - Fri, 01 May 2020 00:09:07 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:19 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:07 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -466,19 +509,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - YCJuwY9AAFMveejFq3DmCuXNgWrXpDBQxqXi3LxQxaHO16MK3yMSWa14TOuRlDjy + - yL2jMz/muX5URjcdpTHzlehf0qi0hyVxH7uShvIhWEeYrIRwdt0CU/7wzCTakK6N X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "94" + - "974" X-Ratelimit-Reset: - - "41" + - "53" status: 200 OK code: 200 duration: "" @@ -486,14 +529,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/8b6-t2t-7mu + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/jed-xu7-iuu method: GET response: - body: '{"status":"live","public_id":"8b6-t2t-7mu","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify - @pagerduty","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"updated - name","monitor_id":16887159,"type":"api","created_at":"2020-03-16T13:06:17.964498+00:00","modified_at":"2020-03-16T13:06:18.915868+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"ssl","overall_state_modified":"2020-03-16T13:06:19.693301+00:00","overall_state":2,"config":{"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":60}]},"options":{"accept_self_signed":false,"tick_every":60}}' + body: '{"status":"live","public_id":"jed-xu7-iuu","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify + @pagerduty","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"updated name","monitor_id":18158445,"type":"api","created_at":"2020-05-01T00:09:06.876186+00:00","modified_at":"2020-05-01T00:09:07.568623+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":60}]},"options":{"accept_self_signed":false,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -504,13 +552,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:19 GMT + - Fri, 01 May 2020 00:09:08 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:19 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:08 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -519,34 +567,39 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - Wi4QF3nhe5s0sRyfZvyTHLc/3mQu/jJVn8BZnev44SXt+VBNA1+haKi5VcNZFpaP + - sg8vzlrAXfi82gDuSEBUxkn5dG85uDtr4RhaVLNn521TM8s6JdimiKDHvX2NhFjo X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "93" + - "973" X-Ratelimit-Reset: - - "41" + - "52" status: 200 OK code: 200 duration: "" - request: - body: '{"public_ids":["8b6-t2t-7mu"]}' + body: | + {"public_ids":["jed-xu7-iuu"]} form: {} headers: + Accept: + - application/json Content-Type: - application/json + Dd-Operation-Id: + - DeleteTests User-Agent: - - Datadog/dev/terraform (go1.13) + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2020-03-16T13:06:19.883541+00:00","public_id":"8b6-t2t-7mu"}]}' + body: '{"deleted_tests":[{"deleted_at":"2020-05-01T00:09:08.251830+00:00","public_id":"jed-xu7-iuu"}]}' headers: Cache-Control: - no-cache @@ -557,13 +610,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:19 GMT + - Fri, 01 May 2020 00:09:08 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:19 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:08 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -572,9 +625,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - btzHvL7Rg/f/n1wMP2CFVXsuErrwOO9p2hvsBofLQbxzRkmZbfvXcB18pURNtIOI + - ty7T8eIeXOfZhM7KDN5nGo8JS7ZSIWAqBNFeZshTg3LLDJJa7mPU5wqGt0nOPCpy X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -584,7 +637,7 @@ interactions: X-Ratelimit-Remaining: - "116" X-Ratelimit-Reset: - - "41" + - "52" status: 200 OK code: 200 duration: "" @@ -592,9 +645,13 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/8b6-t2t-7mu + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/jed-xu7-iuu method: GET response: body: '{"errors": ["Synthetics test not found"]}' @@ -608,7 +665,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:20 GMT + - Fri, 01 May 2020 00:09:08 GMT Dd-Pool: - dogweb Pragma: @@ -620,17 +677,17 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "92" + - "972" X-Ratelimit-Reset: - - "40" + - "52" status: 404 Not Found code: 404 duration: "" diff --git a/datadog/cassettes/TestAccDatadogSyntheticsSSLTest_importBasic.yaml b/datadog/cassettes/TestAccDatadogSyntheticsSSLTest_importBasic.yaml index 84cb9855e..c7e3c9a58 100644 --- a/datadog/cassettes/TestAccDatadogSyntheticsSSLTest_importBasic.yaml +++ b/datadog/cassettes/TestAccDatadogSyntheticsSSLTest_importBasic.yaml @@ -2,19 +2,23 @@ version: 1 interactions: - request: - body: '{"name":"name for synthetics test ssl","type":"api","subtype":"ssl","tags":["foo:bar","baz"],"config":{"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"message":"Notify - @datadog.user","options":{"tick_every":60,"accept_self_signed":true},"locations":["aws:eu-central-1"],"status":"paused"}' + body: | + {"config":{"assertions":[{"operator":"isInMoreThan","target":30,"type":"certificate"}],"request":{"host":"datadoghq.com","port":443},"variables":[]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"name for synthetics test ssl","options":{"accept_self_signed":true,"tick_every":60},"status":"paused","subtype":"ssl","tags":["foo:bar","baz"],"type":"api"} form: {} headers: + Accept: + - application/json Content-Type: - application/json + Dd-Operation-Id: + - CreateTest User-Agent: - - Datadog/dev/terraform (go1.13) + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests method: POST response: - body: '{"status":"paused","public_id":"wpg-jaf-mwb","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","deleted_at":null,"name":"name for synthetics test ssl","monitor_id":16887167,"type":"api","created_at":"2020-03-16T13:06:38.213624+00:00","modified_at":"2020-03-16T13:06:38.213624+00:00","subtype":"ssl","config":{"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' + body: '{"status":"paused","public_id":"svz-8vf-u33","tags":["foo:bar","baz"],"org_id":242643,"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","deleted_at":null,"name":"name for synthetics test ssl","monitor_id":18158459,"type":"api","created_at":"2020-05-01T00:09:11.876529+00:00","modified_at":"2020-05-01T00:09:11.876529+00:00","subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -25,13 +29,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:38 GMT + - Fri, 01 May 2020 00:09:11 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:38 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:11 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -40,9 +44,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - LSmCynIhKaei2ZXhUwyt9n5ny5nHZCYRNYsTU4+Q86mceDsWCQtfUVf4lac22qNa + - UmZMvwWLI5lgbGFBnw6J7jqO5hwyrvVF8Un8TwZ8TRQQ6jetE/6GVTSaoSUmQWRg X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -50,9 +54,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "112" + - "113" X-Ratelimit-Reset: - - "22" + - "49" status: 200 OK code: 200 duration: "" @@ -60,14 +64,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/wpg-jaf-mwb + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/svz-8vf-u33 method: GET response: - body: '{"status":"paused","public_id":"wpg-jaf-mwb","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics test ssl","monitor_id":16887167,"type":"api","created_at":"2020-03-16T13:06:38.213624+00:00","modified_at":"2020-03-16T13:06:38.213624+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"ssl","config":{"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' + body: '{"status":"paused","public_id":"svz-8vf-u33","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics test ssl","monitor_id":18158459,"type":"api","created_at":"2020-05-01T00:09:11.876529+00:00","modified_at":"2020-05-01T00:09:11.876529+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"ssl","overall_state_modified":"2020-05-01T00:09:12.031618+00:00","overall_state":2,"config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -78,13 +87,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:38 GMT + - Fri, 01 May 2020 00:09:12 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:38 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:11 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -93,19 +102,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - ErnxdXQi+pjNvJU00qnaaPgTN904IR+BI4NeCvSijs0uGcTaVMOpPOuObFW+gkC6 + - 69kiClanS8NcBSsdd51HHifvhQSGoRbJJjhU9l40yqxQHVNrndFN9zVtFJW1OcSf X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "76" + - "957" X-Ratelimit-Reset: - - "22" + - "48" status: 200 OK code: 200 duration: "" @@ -113,14 +122,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/wpg-jaf-mwb + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/svz-8vf-u33 method: GET response: - body: '{"status":"paused","public_id":"wpg-jaf-mwb","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics test ssl","monitor_id":16887167,"type":"api","created_at":"2020-03-16T13:06:38.213624+00:00","modified_at":"2020-03-16T13:06:38.213624+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"ssl","config":{"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' + body: '{"status":"paused","public_id":"svz-8vf-u33","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics test ssl","monitor_id":18158459,"type":"api","created_at":"2020-05-01T00:09:11.876529+00:00","modified_at":"2020-05-01T00:09:11.876529+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"ssl","overall_state_modified":"2020-05-01T00:09:12.175044+00:00","overall_state":2,"config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -131,13 +145,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:38 GMT + - Fri, 01 May 2020 00:09:12 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:38 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:12 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -146,19 +160,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - J5PL0LnJukdy69mckjXi3cjye/YJX2hkoCBkqKQi+tYjrsXYELx6DfDD11fhyjYF + - pNNj5PhODCVJlRBPEhZP3s9KL9kvFYv//TnGsiPp+3AqL7R5kIW2JlCWtfMcXeFn X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "74" + - "955" X-Ratelimit-Reset: - - "22" + - "48" status: 200 OK code: 200 duration: "" @@ -166,14 +180,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/wpg-jaf-mwb + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/svz-8vf-u33 method: GET response: - body: '{"status":"paused","public_id":"wpg-jaf-mwb","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics test ssl","monitor_id":16887167,"type":"api","created_at":"2020-03-16T13:06:38.213624+00:00","modified_at":"2020-03-16T13:06:38.213624+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"ssl","config":{"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' + body: '{"status":"paused","public_id":"svz-8vf-u33","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics test ssl","monitor_id":18158459,"type":"api","created_at":"2020-05-01T00:09:11.876529+00:00","modified_at":"2020-05-01T00:09:11.876529+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"ssl","overall_state_modified":"2020-05-01T00:09:12.327707+00:00","overall_state":2,"config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -184,13 +203,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:38 GMT + - Fri, 01 May 2020 00:09:12 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:38 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:12 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -199,19 +218,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - HIunaScoW4AWw8tnSbk8zc5V6c9XLV6++/KbgzaC4HIb212+evjUYL1yRLeLtS2T + - xWBl6EQ7zJ83bRwMRX5o/d34f1JMs+KyihhH9fua7krbgQkOsGFusXhvqkH02q3L X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "72" + - "952" X-Ratelimit-Reset: - - "22" + - "48" status: 200 OK code: 200 duration: "" @@ -219,14 +238,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/wpg-jaf-mwb + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/svz-8vf-u33 method: GET response: - body: '{"status":"paused","public_id":"wpg-jaf-mwb","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics test ssl","monitor_id":16887167,"type":"api","created_at":"2020-03-16T13:06:38.213624+00:00","modified_at":"2020-03-16T13:06:38.213624+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"ssl","overall_state_modified":"2020-03-16T13:06:38.982312+00:00","overall_state":2,"config":{"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' + body: '{"status":"paused","public_id":"svz-8vf-u33","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics test ssl","monitor_id":18158459,"type":"api","created_at":"2020-05-01T00:09:11.876529+00:00","modified_at":"2020-05-01T00:09:11.876529+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"ssl","overall_state_modified":"2020-05-01T00:09:12.506987+00:00","overall_state":2,"config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -237,13 +261,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:38 GMT + - Fri, 01 May 2020 00:09:12 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:38 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:12 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -252,34 +276,39 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - nwn8Akm+cp12Jtby9xyfYjHWK2KZDWf5LxY+SMa+2NK6hVIBcKsVHXjynaTEG+o0 + - +24qoGfe5Pp4qbS1m8KO9qioq2P4fxuj80XQhtr/9vInDLECmYZT0VSsbqISZgqC X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "69" + - "948" X-Ratelimit-Reset: - - "22" + - "48" status: 200 OK code: 200 duration: "" - request: - body: '{"public_ids":["wpg-jaf-mwb"]}' + body: | + {"public_ids":["svz-8vf-u33"]} form: {} headers: + Accept: + - application/json Content-Type: - application/json + Dd-Operation-Id: + - DeleteTests User-Agent: - - Datadog/dev/terraform (go1.13) + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2020-03-16T13:06:39.182318+00:00","public_id":"wpg-jaf-mwb"}]}' + body: '{"deleted_tests":[{"deleted_at":"2020-05-01T00:09:12.627987+00:00","public_id":"svz-8vf-u33"}]}' headers: Cache-Control: - no-cache @@ -290,13 +319,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:39 GMT + - Fri, 01 May 2020 00:09:17 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:39 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:12 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -305,9 +334,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - UmZMvwWLI5lgbGFBnw6J7jqO5hwyrvVF8Un8TwZ8TRQQ6jetE/6GVTSaoSUmQWRg + - /Lq4EjXKMzRKp9qa/TaJTTVqSY3uTwQpdi8SFIU3firYrLG0qdPC+ksTJBROerQS X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -317,7 +346,7 @@ interactions: X-Ratelimit-Remaining: - "112" X-Ratelimit-Reset: - - "21" + - "48" status: 200 OK code: 200 duration: "" @@ -325,9 +354,13 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/wpg-jaf-mwb + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/svz-8vf-u33 method: GET response: body: '{"errors": ["Synthetics test not found"]}' @@ -341,7 +374,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:39 GMT + - Fri, 01 May 2020 00:09:17 GMT Dd-Pool: - dogweb Pragma: @@ -353,17 +386,17 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.2282030" + - "35.2454383" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "64" + - "943" X-Ratelimit-Reset: - - "21" + - "43" status: 404 Not Found code: 404 duration: "" From 47079b59abc4d1bbd551fa559e82a74a13eb7a22 Mon Sep 17 00:00:00 2001 From: skarimo Date: Sun, 3 May 2020 21:31:09 -0400 Subject: [PATCH 07/11] add support for allow_insecure and rerecord cassettes --- ...TestAccDatadogSyntheticsAPITest_Basic.yaml | 114 +++++----- ...stAccDatadogSyntheticsAPITest_Updated.yaml | 202 +++++++++--------- ...cDatadogSyntheticsAPITest_importBasic.yaml | 122 +++++------ ...AccDatadogSyntheticsBrowserTest_Basic.yaml | 100 ++++----- ...cDatadogSyntheticsBrowserTest_Updated.yaml | 192 +++++++++-------- ...adogSyntheticsBrowserTest_importBasic.yaml | 108 +++++----- ...TestAccDatadogSyntheticsSSLTest_Basic.yaml | 104 ++++----- ...stAccDatadogSyntheticsSSLTest_Updated.yaml | 180 ++++++++-------- ...cDatadogSyntheticsSSLTest_importBasic.yaml | 118 +++++----- datadog/resource_datadog_synthetics_test_.go | 27 ++- .../resource_datadog_synthetics_test_test.go | 2 + 11 files changed, 649 insertions(+), 620 deletions(-) diff --git a/datadog/cassettes/TestAccDatadogSyntheticsAPITest_Basic.yaml b/datadog/cassettes/TestAccDatadogSyntheticsAPITest_Basic.yaml index 2aba76df6..bd79ec200 100644 --- a/datadog/cassettes/TestAccDatadogSyntheticsAPITest_Basic.yaml +++ b/datadog/cassettes/TestAccDatadogSyntheticsAPITest_Basic.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"config":{"assertions":[{"operator":"contains","property":"content-type","target":"application/json","type":"header"},{"operator":"is","target":200,"type":"statusCode"},{"operator":"lessThan","target":2000,"type":"responseTime"},{"operator":"doesNotContain","target":"terraform","type":"body"}],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"method":"GET","timeout":30,"url":"https://www.datadoghq.com"},"variables":[]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"name for synthetics test foo","options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} + {"config":{"assertions":[{"operator":"contains","property":"content-type","target":"application/json","type":"header"},{"operator":"is","target":200,"type":"statusCode"},{"operator":"lessThan","target":2000,"type":"responseTime"},{"operator":"doesNotContain","target":"terraform","type":"body"}],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"method":"GET","timeout":30,"url":"https://www.datadoghq.com"},"variables":[]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"name for synthetics test foo","options":{"allow_insecure":true,"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} form: {} headers: Accept: @@ -17,9 +17,9 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests method: POST response: - body: '{"status":"paused","public_id":"gxg-km2-cpe","tags":["foo:bar","baz"],"org_id":242643,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","deleted_at":null,"name":"name for synthetics test foo","monitor_id":18158434,"type":"api","created_at":"2020-05-01T00:09:03.000334+00:00","modified_at":"2020-05-01T00:09:03.000334+00:00","subtype":"http","config":{"variables":[],"request":{"body":"this - is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' + body: '{"status":"paused","public_id":"jup-fga-tdu","tags":["foo:bar","baz"],"org_id":242643,"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","deleted_at":null,"name":"name for synthetics test foo","monitor_id":18206932,"type":"api","created_at":"2020-05-04T01:26:27.904063+00:00","modified_at":"2020-05-04T01:26:27.904063+00:00","subtype":"http","config":{"variables":[],"request":{"body":"this + is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"allow_insecure":true,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -30,13 +30,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:03 GMT + - Mon, 04 May 2020 01:26:27 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:02 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:27 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -45,9 +45,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - kqXz3OvR7iajEJOdRFWpzJtcDHRumYwGfjdF12Vd65Xt1uV9T6lEO/K0lkxmcRvl + - mGJe6qmS66N9ddKWdHwHEzQK9VHuaMNr7+EsVTKliCkGq+ayJZmadUyCSwID4him X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -57,7 +57,7 @@ interactions: X-Ratelimit-Remaining: - "119" X-Ratelimit-Reset: - - "58" + - "33" status: 200 OK code: 200 duration: "" @@ -71,14 +71,14 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/gxg-km2-cpe + url: https://api.datadoghq.com/api/v1/synthetics/tests/jup-fga-tdu method: GET response: - body: '{"status":"paused","public_id":"gxg-km2-cpe","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + body: '{"status":"paused","public_id":"jup-fga-tdu","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"name for synthetics test foo","monitor_id":18158434,"type":"api","created_at":"2020-05-01T00:09:03.000334+00:00","modified_at":"2020-05-01T00:09:03.000334+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics test foo","monitor_id":18206932,"type":"api","created_at":"2020-05-04T01:26:27.904063+00:00","modified_at":"2020-05-04T01:26:27.904063+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod Karimov"},"subtype":"http","config":{"variables":[],"request":{"body":"this - is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' + is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"allow_insecure":true,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -89,13 +89,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:03 GMT + - Mon, 04 May 2020 01:26:28 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:03 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:27 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -104,9 +104,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 2qCkWfddHrPF9jSCADI+4oMJC7ye/JJPxREHTFHEFILURsabvi1w9B+PDmBrh/Xk + - eORbNuNjI+uNwQ5fL4WiSFLQTO+rx/Fd8RRk0TnSyEY4gQIkjrXIuJ1XAoOa+8yj X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -116,7 +116,7 @@ interactions: X-Ratelimit-Remaining: - "999" X-Ratelimit-Reset: - - "57" + - "32" status: 200 OK code: 200 duration: "" @@ -130,14 +130,14 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/gxg-km2-cpe + url: https://api.datadoghq.com/api/v1/synthetics/tests/jup-fga-tdu method: GET response: - body: '{"status":"paused","public_id":"gxg-km2-cpe","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + body: '{"status":"paused","public_id":"jup-fga-tdu","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"name for synthetics test foo","monitor_id":18158434,"type":"api","created_at":"2020-05-01T00:09:03.000334+00:00","modified_at":"2020-05-01T00:09:03.000334+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics test foo","monitor_id":18206932,"type":"api","created_at":"2020-05-04T01:26:27.904063+00:00","modified_at":"2020-05-04T01:26:27.904063+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod Karimov"},"subtype":"http","config":{"variables":[],"request":{"body":"this - is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' + is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"allow_insecure":true,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -148,13 +148,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:03 GMT + - Mon, 04 May 2020 01:26:28 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:03 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:28 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -163,9 +163,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - ADT0ms9dQnbDHbbduv4c09ChngZrYY7A/Pgms/qacMOruS4mPwZ1GJWq74I7G11W + - Z91NUpPIZnIQ9h7lBFWBkEPGVUEsn4/i71imPPwrChu4RPI5uNM5HGuodISK1HBR X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -175,7 +175,7 @@ interactions: X-Ratelimit-Remaining: - "998" X-Ratelimit-Reset: - - "57" + - "32" status: 200 OK code: 200 duration: "" @@ -189,14 +189,14 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/gxg-km2-cpe + url: https://api.datadoghq.com/api/v1/synthetics/tests/jup-fga-tdu method: GET response: - body: '{"status":"paused","public_id":"gxg-km2-cpe","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + body: '{"status":"paused","public_id":"jup-fga-tdu","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"name for synthetics test foo","monitor_id":18158434,"type":"api","created_at":"2020-05-01T00:09:03.000334+00:00","modified_at":"2020-05-01T00:09:03.000334+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics test foo","monitor_id":18206932,"type":"api","created_at":"2020-05-04T01:26:27.904063+00:00","modified_at":"2020-05-04T01:26:27.904063+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod Karimov"},"subtype":"http","config":{"variables":[],"request":{"body":"this - is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' + is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"allow_insecure":true,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -207,13 +207,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:03 GMT + - Mon, 04 May 2020 01:26:28 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:03 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:28 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -222,9 +222,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 4HTfT92VNwJOKM3+9Fghpi7RnKwXOMM9XiE8bZkwhVPDb5jbW4knJKZPCpE1XUb8 + - nSRgqrrNNmPPT6VSGZq0R9QdtdJF1qxzho2//eboP+tsIQDRgfSx3bSVb1t6QyYb X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -234,7 +234,7 @@ interactions: X-Ratelimit-Remaining: - "997" X-Ratelimit-Reset: - - "57" + - "32" status: 200 OK code: 200 duration: "" @@ -248,14 +248,14 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/gxg-km2-cpe + url: https://api.datadoghq.com/api/v1/synthetics/tests/jup-fga-tdu method: GET response: - body: '{"status":"paused","public_id":"gxg-km2-cpe","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + body: '{"status":"paused","public_id":"jup-fga-tdu","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"name for synthetics test foo","monitor_id":18158434,"type":"api","created_at":"2020-05-01T00:09:03.000334+00:00","modified_at":"2020-05-01T00:09:03.000334+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"subtype":"http","config":{"variables":[],"request":{"body":"this - is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' + Karimov"},"name":"name for synthetics test foo","monitor_id":18206932,"type":"api","created_at":"2020-05-04T01:26:27.904063+00:00","modified_at":"2020-05-04T01:26:27.904063+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"http","overall_state_modified":"2020-05-04T01:26:28.380348+00:00","overall_state":2,"config":{"variables":[],"request":{"body":"this + is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"allow_insecure":true,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -266,13 +266,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:03 GMT + - Mon, 04 May 2020 01:26:28 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:03 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:28 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -281,9 +281,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - IkXBg4ZNMRmDsobzMjEa2v35+NuPiQI0gFmho/o6e7+hfyyJl3rjuklsE4uVJo7l + - nDs7oXQtOYsvIIpPzuNZX0qDgGBu3ENkec7da4phztYl7kD88B7t5enRlUQmZVgO X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -293,13 +293,13 @@ interactions: X-Ratelimit-Remaining: - "996" X-Ratelimit-Reset: - - "57" + - "32" status: 200 OK code: 200 duration: "" - request: body: | - {"public_ids":["gxg-km2-cpe"]} + {"public_ids":["jup-fga-tdu"]} form: {} headers: Accept: @@ -313,7 +313,7 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2020-05-01T00:09:03.648245+00:00","public_id":"gxg-km2-cpe"}]}' + body: '{"deleted_tests":[{"deleted_at":"2020-05-04T01:26:28.482983+00:00","public_id":"jup-fga-tdu"}]}' headers: Cache-Control: - no-cache @@ -324,13 +324,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:03 GMT + - Mon, 04 May 2020 01:26:28 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:03 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:28 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -339,9 +339,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - GAK1J4mJd/EBZfEK4rqUw9OeB9GOeKgSyrXGtzNUi5zrv5sHYU56xJgA4bcbtgUA + - x4pYHtiOW9rUeREgXmH2iIgBaXVGD7x1RIZUg56H0ghPppdtz0ZBEK6nMs8tuoqc X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -351,7 +351,7 @@ interactions: X-Ratelimit-Remaining: - "119" X-Ratelimit-Reset: - - "57" + - "32" status: 200 OK code: 200 duration: "" @@ -365,7 +365,7 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/gxg-km2-cpe + url: https://api.datadoghq.com/api/v1/synthetics/tests/jup-fga-tdu method: GET response: body: '{"errors": ["Synthetics test not found"]}' @@ -379,7 +379,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:03 GMT + - Mon, 04 May 2020 01:26:28 GMT Dd-Pool: - dogweb Pragma: @@ -391,7 +391,7 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -401,7 +401,7 @@ interactions: X-Ratelimit-Remaining: - "995" X-Ratelimit-Reset: - - "57" + - "32" status: 404 Not Found code: 404 duration: "" diff --git a/datadog/cassettes/TestAccDatadogSyntheticsAPITest_Updated.yaml b/datadog/cassettes/TestAccDatadogSyntheticsAPITest_Updated.yaml index 151f3a1a8..5cb9e0be8 100644 --- a/datadog/cassettes/TestAccDatadogSyntheticsAPITest_Updated.yaml +++ b/datadog/cassettes/TestAccDatadogSyntheticsAPITest_Updated.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"config":{"assertions":[{"operator":"contains","property":"content-type","target":"application/json","type":"header"},{"operator":"is","target":200,"type":"statusCode"},{"operator":"lessThan","target":2000,"type":"responseTime"},{"operator":"doesNotContain","target":"terraform","type":"body"}],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"method":"GET","timeout":30,"url":"https://www.datadoghq.com"},"variables":[]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"name for synthetics test foo","options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} + {"config":{"assertions":[{"operator":"contains","property":"content-type","target":"application/json","type":"header"},{"operator":"is","target":200,"type":"statusCode"},{"operator":"lessThan","target":2000,"type":"responseTime"},{"operator":"doesNotContain","target":"terraform","type":"body"}],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"method":"GET","timeout":30,"url":"https://www.datadoghq.com"},"variables":[]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"name for synthetics test foo","options":{"allow_insecure":true,"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} form: {} headers: Accept: @@ -17,9 +17,9 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests method: POST response: - body: '{"status":"paused","public_id":"6wi-248-wdd","tags":["foo:bar","baz"],"org_id":242643,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","deleted_at":null,"name":"name for synthetics test foo","monitor_id":18158437,"type":"api","created_at":"2020-05-01T00:09:04.037568+00:00","modified_at":"2020-05-01T00:09:04.037568+00:00","subtype":"http","config":{"variables":[],"request":{"body":"this - is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' + body: '{"status":"paused","public_id":"wm2-qpd-idg","tags":["foo:bar","baz"],"org_id":242643,"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","deleted_at":null,"name":"name for synthetics test foo","monitor_id":18206933,"type":"api","created_at":"2020-05-04T01:26:28.922985+00:00","modified_at":"2020-05-04T01:26:28.922985+00:00","subtype":"http","config":{"variables":[],"request":{"body":"this + is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"allow_insecure":true,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -30,13 +30,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:04 GMT + - Mon, 04 May 2020 01:26:28 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:03 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:28 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -45,9 +45,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - xNK8D8E4U1PyLMVOdDgzcc4izX6UzMbP9Ygv1jJl/dgpKsJQ0NHsqPPadJ+IsqEV + - nDs7oXQtOYsvIIpPzuNZX0qDgGBu3ENkec7da4phztYl7kD88B7t5enRlUQmZVgO X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -57,7 +57,7 @@ interactions: X-Ratelimit-Remaining: - "118" X-Ratelimit-Reset: - - "57" + - "32" status: 200 OK code: 200 duration: "" @@ -71,14 +71,14 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/6wi-248-wdd + url: https://api.datadoghq.com/api/v1/synthetics/tests/wm2-qpd-idg method: GET response: - body: '{"status":"paused","public_id":"6wi-248-wdd","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + body: '{"status":"paused","public_id":"wm2-qpd-idg","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"name for synthetics test foo","monitor_id":18158437,"type":"api","created_at":"2020-05-01T00:09:04.037568+00:00","modified_at":"2020-05-01T00:09:04.037568+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics test foo","monitor_id":18206933,"type":"api","created_at":"2020-05-04T01:26:28.922985+00:00","modified_at":"2020-05-04T01:26:28.922985+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod Karimov"},"subtype":"http","config":{"variables":[],"request":{"body":"this - is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' + is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"allow_insecure":true,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -89,13 +89,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:04 GMT + - Mon, 04 May 2020 01:26:29 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:04 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:29 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -104,9 +104,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - qQjtInIx1/QKXFlq6Yoz4D/caW/S2oJqgJl91CEEpXrlxRmYHcLgIFCRCvW61KAy + - nDs7oXQtOYsvIIpPzuNZX0qDgGBu3ENkec7da4phztYl7kD88B7t5enRlUQmZVgO X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -116,7 +116,7 @@ interactions: X-Ratelimit-Remaining: - "994" X-Ratelimit-Reset: - - "56" + - "31" status: 200 OK code: 200 duration: "" @@ -130,14 +130,14 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/6wi-248-wdd + url: https://api.datadoghq.com/api/v1/synthetics/tests/wm2-qpd-idg method: GET response: - body: '{"status":"paused","public_id":"6wi-248-wdd","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + body: '{"status":"paused","public_id":"wm2-qpd-idg","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"name for synthetics test foo","monitor_id":18158437,"type":"api","created_at":"2020-05-01T00:09:04.037568+00:00","modified_at":"2020-05-01T00:09:04.037568+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics test foo","monitor_id":18206933,"type":"api","created_at":"2020-05-04T01:26:28.922985+00:00","modified_at":"2020-05-04T01:26:28.922985+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod Karimov"},"subtype":"http","config":{"variables":[],"request":{"body":"this - is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' + is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"allow_insecure":true,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -148,13 +148,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:04 GMT + - Mon, 04 May 2020 01:26:29 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:04 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:29 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -163,9 +163,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - XsUcj00kgZUn78/yrMgBc2B4U9QizwFFNtN2OKmtTvmSRTdL165j4Ltg6xvjCzDU + - j0VNx9cZdAj+uuO7pabHlao4Ioc5q8ovvp4Ja/NYzbHA51zSBYXNvtO+8cOYbE0B X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -175,7 +175,7 @@ interactions: X-Ratelimit-Remaining: - "993" X-Ratelimit-Reset: - - "56" + - "31" status: 200 OK code: 200 duration: "" @@ -189,14 +189,14 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/6wi-248-wdd + url: https://api.datadoghq.com/api/v1/synthetics/tests/wm2-qpd-idg method: GET response: - body: '{"status":"paused","public_id":"6wi-248-wdd","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + body: '{"status":"paused","public_id":"wm2-qpd-idg","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"name for synthetics test foo","monitor_id":18158437,"type":"api","created_at":"2020-05-01T00:09:04.037568+00:00","modified_at":"2020-05-01T00:09:04.037568+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics test foo","monitor_id":18206933,"type":"api","created_at":"2020-05-04T01:26:28.922985+00:00","modified_at":"2020-05-04T01:26:28.922985+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod Karimov"},"subtype":"http","config":{"variables":[],"request":{"body":"this - is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' + is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"allow_insecure":true,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -207,13 +207,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:04 GMT + - Mon, 04 May 2020 01:26:29 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:04 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:29 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -222,9 +222,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - ADT0ms9dQnbDHbbduv4c09ChngZrYY7A/Pgms/qacMOruS4mPwZ1GJWq74I7G11W + - UmZMvwWLI5lgbGFBnw6J7jqO5hwyrvVF8Un8TwZ8TRQQ6jetE/6GVTSaoSUmQWRg X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -234,7 +234,7 @@ interactions: X-Ratelimit-Remaining: - "992" X-Ratelimit-Reset: - - "56" + - "31" status: 200 OK code: 200 duration: "" @@ -248,14 +248,14 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/6wi-248-wdd + url: https://api.datadoghq.com/api/v1/synthetics/tests/wm2-qpd-idg method: GET response: - body: '{"status":"paused","public_id":"6wi-248-wdd","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + body: '{"status":"paused","public_id":"wm2-qpd-idg","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"name for synthetics test foo","monitor_id":18158437,"type":"api","created_at":"2020-05-01T00:09:04.037568+00:00","modified_at":"2020-05-01T00:09:04.037568+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics test foo","monitor_id":18206933,"type":"api","created_at":"2020-05-04T01:26:28.922985+00:00","modified_at":"2020-05-04T01:26:28.922985+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod Karimov"},"subtype":"http","config":{"variables":[],"request":{"body":"this - is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' + is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"allow_insecure":true,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -266,13 +266,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:04 GMT + - Mon, 04 May 2020 01:26:29 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:04 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:29 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -281,9 +281,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - x4pYHtiOW9rUeREgXmH2iIgBaXVGD7x1RIZUg56H0ghPppdtz0ZBEK6nMs8tuoqc + - vG5kxpR47Wd0uZGIzWkStfMxs3cmVIjKYEHLQf0xQiHS0P2BwlwJHwTESUSKlcdO X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -293,13 +293,13 @@ interactions: X-Ratelimit-Remaining: - "991" X-Ratelimit-Reset: - - "56" + - "31" status: 200 OK code: 200 duration: "" - request: body: | - {"config":{"assertions":[{"operator":"isNot","target":500,"type":"statusCode"}],"request":{"method":"GET","timeout":60,"url":"https://docs.datadoghq.com"},"variables":[]},"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"updated name","options":{"follow_redirects":false,"min_failure_duration":10,"min_location_failed":1,"tick_every":900},"status":"live","subtype":"http","tags":["foo:bar","foo","env:test"],"type":"api"} + {"config":{"assertions":[{"operator":"isNot","target":500,"type":"statusCode"}],"request":{"method":"GET","timeout":60,"url":"https://docs.datadoghq.com"},"variables":[]},"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"updated name","options":{"allow_insecure":false,"follow_redirects":false,"min_failure_duration":10,"min_location_failed":1,"tick_every":900},"status":"live","subtype":"http","tags":["foo:bar","foo","env:test"],"type":"api"} form: {} headers: Accept: @@ -310,11 +310,11 @@ interactions: - UpdateTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/6wi-248-wdd + url: https://api.datadoghq.com/api/v1/synthetics/tests/wm2-qpd-idg method: PUT response: - body: '{"status":"live","public_id":"6wi-248-wdd","tags":["foo:bar","foo","env:test"],"org_id":242643,"locations":["aws:eu-central-1"],"message":"Notify - @pagerduty","deleted_at":null,"name":"updated name","monitor_id":18158437,"type":"api","created_at":"2020-05-01T00:09:04.037568+00:00","modified_at":"2020-05-01T00:09:04.741382+00:00","subtype":"http","config":{"variables":[],"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}]},"options":{"follow_redirects":false,"min_failure_duration":10,"min_location_failed":1,"tick_every":900}}' + body: '{"status":"live","public_id":"wm2-qpd-idg","tags":["foo:bar","foo","env:test"],"org_id":242643,"locations":["aws:eu-central-1"],"message":"Notify + @pagerduty","deleted_at":null,"name":"updated name","monitor_id":18206933,"type":"api","created_at":"2020-05-04T01:26:28.922985+00:00","modified_at":"2020-05-04T01:26:29.816720+00:00","subtype":"http","config":{"variables":[],"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}]},"options":{"follow_redirects":false,"min_failure_duration":10,"min_location_failed":1,"allow_insecure":false,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -325,13 +325,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:04 GMT + - Mon, 04 May 2020 01:26:30 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:04 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:29 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -340,9 +340,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - yL2jMz/muX5URjcdpTHzlehf0qi0hyVxH7uShvIhWEeYrIRwdt0CU/7wzCTakK6N + - rk3iIRyevtXsTLLTMsm8PoHrVjRY2UIgJwOnYxasATpPihgg0ps3VPSw7zz+6jrL X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -352,7 +352,7 @@ interactions: X-Ratelimit-Remaining: - "499" X-Ratelimit-Reset: - - "56" + - "31" status: 200 OK code: 200 duration: "" @@ -366,13 +366,13 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/6wi-248-wdd + url: https://api.datadoghq.com/api/v1/synthetics/tests/wm2-qpd-idg method: GET response: - body: '{"status":"live","public_id":"6wi-248-wdd","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify + body: '{"status":"live","public_id":"wm2-qpd-idg","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"updated name","monitor_id":18158437,"type":"api","created_at":"2020-05-01T00:09:04.037568+00:00","modified_at":"2020-05-01T00:09:04.741382+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"subtype":"http","config":{"variables":[],"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}]},"options":{"follow_redirects":false,"min_failure_duration":10,"min_location_failed":1,"tick_every":900}}' + Karimov"},"name":"updated name","monitor_id":18206933,"type":"api","created_at":"2020-05-04T01:26:28.922985+00:00","modified_at":"2020-05-04T01:26:29.816720+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"http","config":{"variables":[],"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}]},"options":{"follow_redirects":false,"min_failure_duration":10,"min_location_failed":1,"allow_insecure":false,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -383,13 +383,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:05 GMT + - Mon, 04 May 2020 01:26:30 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:04 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:30 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -398,9 +398,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - pxuY3ZnSwE+rCP/MLubWk3EuAMlxxciIsQ2EBSRxZafCu9H4+UEVULDCm144bb3W + - NclXS5F5t+kukUaODU4jY2oSI1KBdPHFdFhJZNfbXLWDOThxbCLlKKmYvikjdDSg X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -410,7 +410,7 @@ interactions: X-Ratelimit-Remaining: - "990" X-Ratelimit-Reset: - - "55" + - "30" status: 200 OK code: 200 duration: "" @@ -424,13 +424,13 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/6wi-248-wdd + url: https://api.datadoghq.com/api/v1/synthetics/tests/wm2-qpd-idg method: GET response: - body: '{"status":"live","public_id":"6wi-248-wdd","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify + body: '{"status":"live","public_id":"wm2-qpd-idg","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"updated name","monitor_id":18158437,"type":"api","created_at":"2020-05-01T00:09:04.037568+00:00","modified_at":"2020-05-01T00:09:04.741382+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"subtype":"http","config":{"variables":[],"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}]},"options":{"follow_redirects":false,"min_failure_duration":10,"min_location_failed":1,"tick_every":900}}' + Karimov"},"name":"updated name","monitor_id":18206933,"type":"api","created_at":"2020-05-04T01:26:28.922985+00:00","modified_at":"2020-05-04T01:26:29.816720+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"http","overall_state_modified":"2020-05-04T01:26:30.315263+00:00","overall_state":2,"config":{"variables":[],"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}]},"options":{"follow_redirects":false,"min_failure_duration":10,"min_location_failed":1,"allow_insecure":false,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -441,13 +441,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:05 GMT + - Mon, 04 May 2020 01:26:30 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:05 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:30 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -456,9 +456,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - vlc9b/rJPByGsV/acj3ScS7B1lo9nEAbSgYCfkl0GH3egry4iXeiGBP0WX8DpJ/T + - yEcEaKqmSUfeSlQ/kN/c5E6EpIXbM1JPI9KV27pdsvBWWv3FI4tsqqRarYTS+fS+ X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -468,7 +468,7 @@ interactions: X-Ratelimit-Remaining: - "989" X-Ratelimit-Reset: - - "55" + - "30" status: 200 OK code: 200 duration: "" @@ -482,13 +482,13 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/6wi-248-wdd + url: https://api.datadoghq.com/api/v1/synthetics/tests/wm2-qpd-idg method: GET response: - body: '{"status":"live","public_id":"6wi-248-wdd","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify + body: '{"status":"live","public_id":"wm2-qpd-idg","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"updated name","monitor_id":18158437,"type":"api","created_at":"2020-05-01T00:09:04.037568+00:00","modified_at":"2020-05-01T00:09:04.741382+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"subtype":"http","config":{"variables":[],"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}]},"options":{"follow_redirects":false,"min_failure_duration":10,"min_location_failed":1,"tick_every":900}}' + Karimov"},"name":"updated name","monitor_id":18206933,"type":"api","created_at":"2020-05-04T01:26:28.922985+00:00","modified_at":"2020-05-04T01:26:29.816720+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"http","overall_state_modified":"2020-05-04T01:26:30.414191+00:00","overall_state":2,"config":{"variables":[],"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}]},"options":{"follow_redirects":false,"min_failure_duration":10,"min_location_failed":1,"allow_insecure":false,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -499,13 +499,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:05 GMT + - Mon, 04 May 2020 01:26:30 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:05 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:30 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -514,9 +514,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - em3KoJu1XYdqq1w4EpLi4L54svjYBxZahEDJ8c5gcdIOxnNafHMdF5LLysPLuNcH + - YNGrI7M9aLfuf6Npp7n/51e6xDtYCO9Rm/LB+HGbX4I6A/e7rnC+cgQxIZnsU+fj X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -526,7 +526,7 @@ interactions: X-Ratelimit-Remaining: - "988" X-Ratelimit-Reset: - - "55" + - "30" status: 200 OK code: 200 duration: "" @@ -540,13 +540,13 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/6wi-248-wdd + url: https://api.datadoghq.com/api/v1/synthetics/tests/wm2-qpd-idg method: GET response: - body: '{"status":"live","public_id":"6wi-248-wdd","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify + body: '{"status":"live","public_id":"wm2-qpd-idg","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"updated name","monitor_id":18158437,"type":"api","created_at":"2020-05-01T00:09:04.037568+00:00","modified_at":"2020-05-01T00:09:04.741382+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"subtype":"http","config":{"variables":[],"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}]},"options":{"follow_redirects":false,"min_failure_duration":10,"min_location_failed":1,"tick_every":900}}' + Karimov"},"name":"updated name","monitor_id":18206933,"type":"api","created_at":"2020-05-04T01:26:28.922985+00:00","modified_at":"2020-05-04T01:26:29.816720+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"http","overall_state_modified":"2020-05-04T01:26:30.557829+00:00","overall_state":2,"config":{"variables":[],"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}]},"options":{"follow_redirects":false,"min_failure_duration":10,"min_location_failed":1,"allow_insecure":false,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -557,13 +557,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:05 GMT + - Mon, 04 May 2020 01:26:30 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:05 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:30 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -572,9 +572,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - o1rjyOSbDnvYaQgtO33vwWSNsIwHafzLqam2amG/PbTP69SVY965ZpWutdoYJB30 + - hABsPq9DIvV7yAEiU7rMxs7UCRuTbRH/kYpwue4a0q9qmwd4SUh9bBZ5SHPkBLc6 X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -584,13 +584,13 @@ interactions: X-Ratelimit-Remaining: - "987" X-Ratelimit-Reset: - - "55" + - "30" status: 200 OK code: 200 duration: "" - request: body: | - {"public_ids":["6wi-248-wdd"]} + {"public_ids":["wm2-qpd-idg"]} form: {} headers: Accept: @@ -604,7 +604,7 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2020-05-01T00:09:05.427709+00:00","public_id":"6wi-248-wdd"}]}' + body: '{"deleted_tests":[{"deleted_at":"2020-05-04T01:26:30.668598+00:00","public_id":"wm2-qpd-idg"}]}' headers: Cache-Control: - no-cache @@ -615,13 +615,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:05 GMT + - Mon, 04 May 2020 01:26:30 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:05 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:30 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -630,9 +630,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - QO3HutZQjgMDp/HqClcLon+qq5lEghb3LRV+gXMIQ2Jivd1m1eEGCh0RxplUQMIV + - 0pmBjL5vG2A5IkxC4OBtwgn929khTZGgUquRW20JC77zchR4jTrHgra/pB22jP66 X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -642,7 +642,7 @@ interactions: X-Ratelimit-Remaining: - "118" X-Ratelimit-Reset: - - "55" + - "30" status: 200 OK code: 200 duration: "" @@ -656,7 +656,7 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/6wi-248-wdd + url: https://api.datadoghq.com/api/v1/synthetics/tests/wm2-qpd-idg method: GET response: body: '{"errors": ["Synthetics test not found"]}' @@ -670,7 +670,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:05 GMT + - Mon, 04 May 2020 01:26:30 GMT Dd-Pool: - dogweb Pragma: @@ -682,7 +682,7 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -692,7 +692,7 @@ interactions: X-Ratelimit-Remaining: - "986" X-Ratelimit-Reset: - - "55" + - "30" status: 404 Not Found code: 404 duration: "" diff --git a/datadog/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.yaml b/datadog/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.yaml index c0453d104..2e3f62a4d 100644 --- a/datadog/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.yaml +++ b/datadog/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"config":{"assertions":[{"operator":"contains","property":"content-type","target":"application/json","type":"header"},{"operator":"is","target":200,"type":"statusCode"},{"operator":"lessThan","target":2000,"type":"responseTime"},{"operator":"doesNotContain","target":"terraform","type":"body"}],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"method":"GET","timeout":30,"url":"https://www.datadoghq.com"},"variables":[]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"name for synthetics test foo","options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} + {"config":{"assertions":[{"operator":"contains","property":"content-type","target":"application/json","type":"header"},{"operator":"is","target":200,"type":"statusCode"},{"operator":"lessThan","target":2000,"type":"responseTime"},{"operator":"doesNotContain","target":"terraform","type":"body"}],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"method":"GET","timeout":30,"url":"https://www.datadoghq.com"},"variables":[]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"name for synthetics test foo","options":{"allow_insecure":true,"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} form: {} headers: Accept: @@ -17,9 +17,9 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests method: POST response: - body: '{"status":"paused","public_id":"7t2-re6-ukz","tags":["foo:bar","baz"],"org_id":242643,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","deleted_at":null,"name":"name for synthetics test foo","monitor_id":18158460,"type":"api","created_at":"2020-05-01T00:09:11.965961+00:00","modified_at":"2020-05-01T00:09:11.965961+00:00","subtype":"http","config":{"variables":[],"request":{"body":"this - is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' + body: '{"status":"paused","public_id":"9y5-z69-iqe","tags":["foo:bar","baz"],"org_id":242643,"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","deleted_at":null,"name":"name for synthetics test foo","monitor_id":18206939,"type":"api","created_at":"2020-05-04T01:26:37.585869+00:00","modified_at":"2020-05-04T01:26:37.585869+00:00","subtype":"http","config":{"variables":[],"request":{"body":"this + is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"allow_insecure":true,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -30,13 +30,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:12 GMT + - Mon, 04 May 2020 01:26:37 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:11 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:37 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -45,9 +45,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 2AZOmbSnS2o4jaTO55IoEgDi10r3ewUAnpo5XLuAFAThAxt0uvbRy8dZoSIDmBYA + - xWBl6EQ7zJ83bRwMRX5o/d34f1JMs+KyihhH9fua7krbgQkOsGFusXhvqkH02q3L X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -55,9 +55,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "111" + - "112" X-Ratelimit-Reset: - - "49" + - "23" status: 200 OK code: 200 duration: "" @@ -71,14 +71,14 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/7t2-re6-ukz + url: https://api.datadoghq.com/api/v1/synthetics/tests/9y5-z69-iqe method: GET response: - body: '{"status":"paused","public_id":"7t2-re6-ukz","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + body: '{"status":"paused","public_id":"9y5-z69-iqe","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"name for synthetics test foo","monitor_id":18158460,"type":"api","created_at":"2020-05-01T00:09:11.965961+00:00","modified_at":"2020-05-01T00:09:11.965961+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics test foo","monitor_id":18206939,"type":"api","created_at":"2020-05-04T01:26:37.585869+00:00","modified_at":"2020-05-04T01:26:37.585869+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod Karimov"},"subtype":"http","config":{"variables":[],"request":{"body":"this - is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' + is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"allow_insecure":true,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -89,13 +89,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:12 GMT + - Mon, 04 May 2020 01:26:37 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:12 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:37 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -104,9 +104,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - QO3HutZQjgMDp/HqClcLon+qq5lEghb3LRV+gXMIQ2Jivd1m1eEGCh0RxplUQMIV + - BsieYxalcMaIS+cTbK9YL1FxnAIiDF/6CFe3/lefzTTUruWB5XaSb08KP3lTATlu X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -114,9 +114,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "956" + - "955" X-Ratelimit-Reset: - - "48" + - "23" status: 200 OK code: 200 duration: "" @@ -130,14 +130,14 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/7t2-re6-ukz + url: https://api.datadoghq.com/api/v1/synthetics/tests/9y5-z69-iqe method: GET response: - body: '{"status":"paused","public_id":"7t2-re6-ukz","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + body: '{"status":"paused","public_id":"9y5-z69-iqe","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"name for synthetics test foo","monitor_id":18158460,"type":"api","created_at":"2020-05-01T00:09:11.965961+00:00","modified_at":"2020-05-01T00:09:11.965961+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics test foo","monitor_id":18206939,"type":"api","created_at":"2020-05-04T01:26:37.585869+00:00","modified_at":"2020-05-04T01:26:37.585869+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod Karimov"},"subtype":"http","config":{"variables":[],"request":{"body":"this - is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' + is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"allow_insecure":true,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -148,13 +148,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:12 GMT + - Mon, 04 May 2020 01:26:37 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:12 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:37 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -163,9 +163,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - CFSDBBie5Okt4N1oWVJNTAqpt778eCo7VQZ0NhVFWw8MHYFUwuA7DURhpFRYY+Wy + - mGJe6qmS66N9ddKWdHwHEzQK9VHuaMNr7+EsVTKliCkGq+ayJZmadUyCSwID4him X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -175,7 +175,7 @@ interactions: X-Ratelimit-Remaining: - "953" X-Ratelimit-Reset: - - "48" + - "23" status: 200 OK code: 200 duration: "" @@ -189,14 +189,14 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/7t2-re6-ukz + url: https://api.datadoghq.com/api/v1/synthetics/tests/9y5-z69-iqe method: GET response: - body: '{"status":"paused","public_id":"7t2-re6-ukz","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + body: '{"status":"paused","public_id":"9y5-z69-iqe","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"name for synthetics test foo","monitor_id":18158460,"type":"api","created_at":"2020-05-01T00:09:11.965961+00:00","modified_at":"2020-05-01T00:09:11.965961+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics test foo","monitor_id":18206939,"type":"api","created_at":"2020-05-04T01:26:37.585869+00:00","modified_at":"2020-05-04T01:26:37.585869+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod Karimov"},"subtype":"http","config":{"variables":[],"request":{"body":"this - is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' + is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"allow_insecure":true,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -207,13 +207,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:12 GMT + - Mon, 04 May 2020 01:26:37 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:12 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:37 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -222,9 +222,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - em3KoJu1XYdqq1w4EpLi4L54svjYBxZahEDJ8c5gcdIOxnNafHMdF5LLysPLuNcH + - qA85Kiicwd/s93AfT3MSf+l6IYc5FQ6tEbp4Kft/ri41UOumJ967MPQKmz3gwejd X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -234,7 +234,7 @@ interactions: X-Ratelimit-Remaining: - "950" X-Ratelimit-Reset: - - "48" + - "23" status: 200 OK code: 200 duration: "" @@ -248,14 +248,14 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/7t2-re6-ukz + url: https://api.datadoghq.com/api/v1/synthetics/tests/9y5-z69-iqe method: GET response: - body: '{"status":"paused","public_id":"7t2-re6-ukz","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + body: '{"status":"paused","public_id":"9y5-z69-iqe","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"name for synthetics test foo","monitor_id":18158460,"type":"api","created_at":"2020-05-01T00:09:11.965961+00:00","modified_at":"2020-05-01T00:09:11.965961+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics test foo","monitor_id":18206939,"type":"api","created_at":"2020-05-04T01:26:37.585869+00:00","modified_at":"2020-05-04T01:26:37.585869+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod Karimov"},"subtype":"http","config":{"variables":[],"request":{"body":"this - is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' + is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"allow_insecure":true,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -266,13 +266,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:12 GMT + - Mon, 04 May 2020 01:26:38 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:12 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:38 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -281,9 +281,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - j9H0Mt41m875GBjR2i9r831ZILGOU6+Jata5+JJkOQgIsO+SrMkmgWN80SCun0Sk + - GG9N5JNk6zUo5YQ1gmfpF0kYcSj/kjDOsFItaODUS7qQCwsMrhI3QWJVQns7uvtI X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -291,15 +291,15 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "949" + - "948" X-Ratelimit-Reset: - - "48" + - "22" status: 200 OK code: 200 duration: "" - request: body: | - {"public_ids":["7t2-re6-ukz"]} + {"public_ids":["9y5-z69-iqe"]} form: {} headers: Accept: @@ -313,7 +313,7 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2020-05-01T00:09:12.551433+00:00","public_id":"7t2-re6-ukz"}]}' + body: '{"deleted_tests":[{"deleted_at":"2020-05-04T01:26:38.153260+00:00","public_id":"9y5-z69-iqe"}]}' headers: Cache-Control: - no-cache @@ -324,13 +324,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:12 GMT + - Mon, 04 May 2020 01:26:38 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:12 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:38 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -339,9 +339,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - UH1aMdrlnlnaxy/K+HUi5QUN2T0FBtGPSUC8sLrviqCK1XXfgHsSO5DneAd5J+6F + - nwn8Akm+cp12Jtby9xyfYjHWK2KZDWf5LxY+SMa+2NK6hVIBcKsVHXjynaTEG+o0 X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -349,9 +349,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "113" + - "112" X-Ratelimit-Reset: - - "48" + - "22" status: 200 OK code: 200 duration: "" @@ -365,7 +365,7 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/7t2-re6-ukz + url: https://api.datadoghq.com/api/v1/synthetics/tests/9y5-z69-iqe method: GET response: body: '{"errors": ["Synthetics test not found"]}' @@ -379,7 +379,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:12 GMT + - Mon, 04 May 2020 01:26:38 GMT Dd-Pool: - dogweb Pragma: @@ -391,7 +391,7 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -399,9 +399,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "945" + - "944" X-Ratelimit-Reset: - - "48" + - "22" status: 404 Not Found code: 404 duration: "" diff --git a/datadog/cassettes/TestAccDatadogSyntheticsBrowserTest_Basic.yaml b/datadog/cassettes/TestAccDatadogSyntheticsBrowserTest_Basic.yaml index 2600c6237..82b529d35 100644 --- a/datadog/cassettes/TestAccDatadogSyntheticsBrowserTest_Basic.yaml +++ b/datadog/cassettes/TestAccDatadogSyntheticsBrowserTest_Basic.yaml @@ -17,8 +17,8 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests method: POST response: - body: '{"status":"paused","public_id":"9fw-48z-8iz","tags":["foo:bar","baz"],"org_id":242643,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","deleted_at":null,"name":"name for synthetics browser test bar","monitor_id":18158451,"type":"browser","created_at":"2020-05-01T00:09:08.887967+00:00","modified_at":"2020-05-01T00:09:08.887967+00:00","config":{"variables":[],"request":{"body":"this + body: '{"status":"paused","public_id":"pak-dmb-qx7","tags":["foo:bar","baz"],"org_id":242643,"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","deleted_at":null,"name":"name for synthetics browser test bar","monitor_id":18206936,"type":"browser","created_at":"2020-05-04T01:26:34.544537+00:00","modified_at":"2020-05-04T01:26:34.544537+00:00","config":{"variables":[],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[]},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: @@ -30,13 +30,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:08 GMT + - Mon, 04 May 2020 01:26:34 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:08 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:34 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -45,9 +45,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - j0VNx9cZdAj+uuO7pabHlao4Ioc5q8ovvp4Ja/NYzbHA51zSBYXNvtO+8cOYbE0B + - yEcEaKqmSUfeSlQ/kN/c5E6EpIXbM1JPI9KV27pdsvBWWv3FI4tsqqRarYTS+fS+ X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -57,7 +57,7 @@ interactions: X-Ratelimit-Remaining: - "115" X-Ratelimit-Reset: - - "52" + - "26" status: 200 OK code: 200 duration: "" @@ -71,12 +71,12 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/9fw-48z-8iz + url: https://api.datadoghq.com/api/v1/synthetics/tests/pak-dmb-qx7 method: GET response: - body: '{"status":"paused","public_id":"9fw-48z-8iz","tags":["foo:bar","baz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify + body: '{"status":"paused","public_id":"pak-dmb-qx7","tags":["foo:bar","baz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"name for synthetics browser test bar","monitor_id":18158451,"type":"browser","created_at":"2020-05-01T00:09:08.887967+00:00","modified_at":"2020-05-01T00:09:08.887967+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics browser test bar","monitor_id":18206936,"type":"browser","created_at":"2020-05-04T01:26:34.544537+00:00","modified_at":"2020-05-04T01:26:34.544537+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod Karimov"},"config":{"variables":[],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[]},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: @@ -88,13 +88,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:09 GMT + - Mon, 04 May 2020 01:26:34 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:09 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:34 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -103,9 +103,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - rpB/2GMZHvzTHZxhwmnNa1XnSQuif7FV+gIndoDc8IvUeRNb65r4x+P7Djp1119C + - Jhz2Lh32XBCZ7PVSj7/lof8hXjgbtiexG4VIRWAEYHPFefqyYpXnVaeT62yBncrB X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -115,7 +115,7 @@ interactions: X-Ratelimit-Remaining: - "971" X-Ratelimit-Reset: - - "51" + - "26" status: 200 OK code: 200 duration: "" @@ -129,12 +129,12 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/9fw-48z-8iz + url: https://api.datadoghq.com/api/v1/synthetics/tests/pak-dmb-qx7 method: GET response: - body: '{"status":"paused","public_id":"9fw-48z-8iz","tags":["foo:bar","baz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify + body: '{"status":"paused","public_id":"pak-dmb-qx7","tags":["foo:bar","baz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"name for synthetics browser test bar","monitor_id":18158451,"type":"browser","created_at":"2020-05-01T00:09:08.887967+00:00","modified_at":"2020-05-01T00:09:08.887967+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics browser test bar","monitor_id":18206936,"type":"browser","created_at":"2020-05-04T01:26:34.544537+00:00","modified_at":"2020-05-04T01:26:34.544537+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod Karimov"},"config":{"variables":[],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[]},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: @@ -146,13 +146,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:09 GMT + - Mon, 04 May 2020 01:26:34 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:09 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:34 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -161,9 +161,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - ucJMu0SEwqvJ36fqkYRsP+glKObktTtdBf6X17lKXJ4+xOn7nFKnx11beu1ycofn + - L5yd3v29mZzDtdpTLB/OLdaP/nm856X8oKVK7IsHIbLmKRYkqq5Jv7+SBx/bs1VS X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -173,7 +173,7 @@ interactions: X-Ratelimit-Remaining: - "970" X-Ratelimit-Reset: - - "51" + - "26" status: 200 OK code: 200 duration: "" @@ -187,12 +187,12 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/9fw-48z-8iz + url: https://api.datadoghq.com/api/v1/synthetics/tests/pak-dmb-qx7 method: GET response: - body: '{"status":"paused","public_id":"9fw-48z-8iz","tags":["foo:bar","baz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify + body: '{"status":"paused","public_id":"pak-dmb-qx7","tags":["foo:bar","baz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"name for synthetics browser test bar","monitor_id":18158451,"type":"browser","created_at":"2020-05-01T00:09:08.887967+00:00","modified_at":"2020-05-01T00:09:08.887967+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics browser test bar","monitor_id":18206936,"type":"browser","created_at":"2020-05-04T01:26:34.544537+00:00","modified_at":"2020-05-04T01:26:34.544537+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod Karimov"},"config":{"variables":[],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[]},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: @@ -204,13 +204,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:09 GMT + - Mon, 04 May 2020 01:26:34 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:09 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:34 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -219,9 +219,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - WatxAL43AyqgfI4tyA152NzYM3DLdjL7IWr0SzhldiWriTsbw9vUaRZnaqhOCdUk + - HtltRxB6FWULKbr8JD/35HKWhI+dqAFQg/rNpMbjeMOPUq5j5iWk+nIs8OwDOqUR X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -231,7 +231,7 @@ interactions: X-Ratelimit-Remaining: - "969" X-Ratelimit-Reset: - - "51" + - "26" status: 200 OK code: 200 duration: "" @@ -245,12 +245,12 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/9fw-48z-8iz + url: https://api.datadoghq.com/api/v1/synthetics/tests/pak-dmb-qx7 method: GET response: - body: '{"status":"paused","public_id":"9fw-48z-8iz","tags":["foo:bar","baz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify + body: '{"status":"paused","public_id":"pak-dmb-qx7","tags":["foo:bar","baz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"name for synthetics browser test bar","monitor_id":18158451,"type":"browser","created_at":"2020-05-01T00:09:08.887967+00:00","modified_at":"2020-05-01T00:09:08.887967+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics browser test bar","monitor_id":18206936,"type":"browser","created_at":"2020-05-04T01:26:34.544537+00:00","modified_at":"2020-05-04T01:26:34.544537+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod Karimov"},"config":{"variables":[],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[]},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: @@ -262,13 +262,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:09 GMT + - Mon, 04 May 2020 01:26:34 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:09 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:34 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -277,9 +277,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 2VXDwI2pcuhRZeQ6xt/fJh1koMYSfGcgQg5wAzgLqeh10Zf5/W946U7T5w6SEIhy + - mIWJPPM06xs5rSGFgggpdD5UbOnt6ntntAO8/8YDsVuXnSmp/k0aZ5dEUtAKB7Td X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -289,13 +289,13 @@ interactions: X-Ratelimit-Remaining: - "968" X-Ratelimit-Reset: - - "51" + - "26" status: 200 OK code: 200 duration: "" - request: body: | - {"public_ids":["9fw-48z-8iz"]} + {"public_ids":["pak-dmb-qx7"]} form: {} headers: Accept: @@ -309,7 +309,7 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2020-05-01T00:09:09.568116+00:00","public_id":"9fw-48z-8iz"}]}' + body: '{"deleted_tests":[{"deleted_at":"2020-05-04T01:26:35.123559+00:00","public_id":"pak-dmb-qx7"}]}' headers: Cache-Control: - no-cache @@ -320,13 +320,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:09 GMT + - Mon, 04 May 2020 01:26:35 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:09 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:35 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -335,9 +335,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - sg8vzlrAXfi82gDuSEBUxkn5dG85uDtr4RhaVLNn521TM8s6JdimiKDHvX2NhFjo + - PcnVfOcEtqolY6fi98GEVSGXOZZkwQSBbl/twLr2TucYRfYyGCLXvKm6pTUNQt1l X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -347,7 +347,7 @@ interactions: X-Ratelimit-Remaining: - "115" X-Ratelimit-Reset: - - "51" + - "25" status: 200 OK code: 200 duration: "" @@ -361,7 +361,7 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/9fw-48z-8iz + url: https://api.datadoghq.com/api/v1/synthetics/tests/pak-dmb-qx7 method: GET response: body: '{"errors": ["Synthetics test not found"]}' @@ -375,7 +375,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:09 GMT + - Mon, 04 May 2020 01:26:35 GMT Dd-Pool: - dogweb Pragma: @@ -387,7 +387,7 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -397,7 +397,7 @@ interactions: X-Ratelimit-Remaining: - "967" X-Ratelimit-Reset: - - "51" + - "25" status: 404 Not Found code: 404 duration: "" diff --git a/datadog/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated.yaml b/datadog/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated.yaml index c7a931e50..1c1280a3b 100644 --- a/datadog/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated.yaml +++ b/datadog/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated.yaml @@ -17,8 +17,8 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests method: POST response: - body: '{"status":"paused","public_id":"cfp-fc8-hfc","tags":["foo:bar","baz"],"org_id":242643,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","deleted_at":null,"name":"name for synthetics browser test bar","monitor_id":18158454,"type":"browser","created_at":"2020-05-01T00:09:10.016307+00:00","modified_at":"2020-05-01T00:09:10.016307+00:00","config":{"variables":[],"request":{"body":"this + body: '{"status":"paused","public_id":"hcc-w69-acd","tags":["foo:bar","baz"],"org_id":242643,"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","deleted_at":null,"name":"name for synthetics browser test bar","monitor_id":18206937,"type":"browser","created_at":"2020-05-04T01:26:35.677986+00:00","modified_at":"2020-05-04T01:26:35.677986+00:00","config":{"variables":[],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[]},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: @@ -30,13 +30,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:10 GMT + - Mon, 04 May 2020 01:26:35 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:09 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:35 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -45,9 +45,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - rk3iIRyevtXsTLLTMsm8PoHrVjRY2UIgJwOnYxasATpPihgg0ps3VPSw7zz+6jrL + - OdMYjD4Lcx2EOYJ2NSqLNRIyMqxNYyUQxCcT6zY9ZmZ+zl9yipXz0nuLjH5hVxTY X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -57,7 +57,7 @@ interactions: X-Ratelimit-Remaining: - "114" X-Ratelimit-Reset: - - "51" + - "25" status: 200 OK code: 200 duration: "" @@ -71,12 +71,12 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/cfp-fc8-hfc + url: https://api.datadoghq.com/api/v1/synthetics/tests/hcc-w69-acd method: GET response: - body: '{"status":"paused","public_id":"cfp-fc8-hfc","tags":["foo:bar","baz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify + body: '{"status":"paused","public_id":"hcc-w69-acd","tags":["foo:bar","baz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"name for synthetics browser test bar","monitor_id":18158454,"type":"browser","created_at":"2020-05-01T00:09:10.016307+00:00","modified_at":"2020-05-01T00:09:10.016307+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics browser test bar","monitor_id":18206937,"type":"browser","created_at":"2020-05-04T01:26:35.677986+00:00","modified_at":"2020-05-04T01:26:35.677986+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod Karimov"},"config":{"variables":[],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[]},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: @@ -88,13 +88,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:10 GMT + - Mon, 04 May 2020 01:26:35 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:10 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:35 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -103,9 +103,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - og1WGdy+2nV+rkkclmd3Cf2I26XhV3/6yjBeQCP8aHbH2k2cKwC+X9WmhIghcJ94 + - QpzDmIoaO5Hufx014PqM5BuLw+G9k75nLqy12TEr4Iab1Fl7hIFT5DrERoBer8OF X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -115,7 +115,7 @@ interactions: X-Ratelimit-Remaining: - "966" X-Ratelimit-Reset: - - "50" + - "25" status: 200 OK code: 200 duration: "" @@ -129,12 +129,12 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/cfp-fc8-hfc + url: https://api.datadoghq.com/api/v1/synthetics/tests/hcc-w69-acd method: GET response: - body: '{"status":"paused","public_id":"cfp-fc8-hfc","tags":["foo:bar","baz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify + body: '{"status":"paused","public_id":"hcc-w69-acd","tags":["foo:bar","baz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"name for synthetics browser test bar","monitor_id":18158454,"type":"browser","created_at":"2020-05-01T00:09:10.016307+00:00","modified_at":"2020-05-01T00:09:10.016307+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics browser test bar","monitor_id":18206937,"type":"browser","created_at":"2020-05-04T01:26:35.677986+00:00","modified_at":"2020-05-04T01:26:35.677986+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod Karimov"},"config":{"variables":[],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[]},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: @@ -146,13 +146,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:10 GMT + - Mon, 04 May 2020 01:26:35 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:10 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:35 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -161,9 +161,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - YCJuwY9AAFMveejFq3DmCuXNgWrXpDBQxqXi3LxQxaHO16MK3yMSWa14TOuRlDjy + - +UwwYRc+A5vkEib2s1YY/+OMx26FxXkDPMnhrpaIz/kTVseyL62lC12FdLJrU3nv X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -173,7 +173,7 @@ interactions: X-Ratelimit-Remaining: - "965" X-Ratelimit-Reset: - - "50" + - "25" status: 200 OK code: 200 duration: "" @@ -187,12 +187,12 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/cfp-fc8-hfc + url: https://api.datadoghq.com/api/v1/synthetics/tests/hcc-w69-acd method: GET response: - body: '{"status":"paused","public_id":"cfp-fc8-hfc","tags":["foo:bar","baz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify + body: '{"status":"paused","public_id":"hcc-w69-acd","tags":["foo:bar","baz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"name for synthetics browser test bar","monitor_id":18158454,"type":"browser","created_at":"2020-05-01T00:09:10.016307+00:00","modified_at":"2020-05-01T00:09:10.016307+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics browser test bar","monitor_id":18206937,"type":"browser","created_at":"2020-05-04T01:26:35.677986+00:00","modified_at":"2020-05-04T01:26:35.677986+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod Karimov"},"config":{"variables":[],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[]},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: @@ -204,13 +204,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:10 GMT + - Mon, 04 May 2020 01:26:36 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:10 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:35 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -219,9 +219,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - JbIYRXbRMsAVaKGy+d2H1ud8Z295ghodOPi6eELPzhmBKrZI3+dlseyrUY1cqOAd + - 0pa1dtuadfHOUeVqLiK3mljtwHC7xKOrqXlG1EXfeExc1YyvZm51+jZLEiJ3YUs6 X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -231,7 +231,7 @@ interactions: X-Ratelimit-Remaining: - "964" X-Ratelimit-Reset: - - "50" + - "25" status: 200 OK code: 200 duration: "" @@ -245,12 +245,12 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/cfp-fc8-hfc + url: https://api.datadoghq.com/api/v1/synthetics/tests/hcc-w69-acd method: GET response: - body: '{"status":"paused","public_id":"cfp-fc8-hfc","tags":["foo:bar","baz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify + body: '{"status":"paused","public_id":"hcc-w69-acd","tags":["foo:bar","baz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"name for synthetics browser test bar","monitor_id":18158454,"type":"browser","created_at":"2020-05-01T00:09:10.016307+00:00","modified_at":"2020-05-01T00:09:10.016307+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics browser test bar","monitor_id":18206937,"type":"browser","created_at":"2020-05-04T01:26:35.677986+00:00","modified_at":"2020-05-04T01:26:35.677986+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod Karimov"},"config":{"variables":[],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[]},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: @@ -262,13 +262,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:10 GMT + - Mon, 04 May 2020 01:26:36 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:10 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:36 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -277,9 +277,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - svhoihUM58m7WJ4Z4lY5tmaXf/MnplHzAbMByuVznFW8yf3JIFAZgW/pCvMnq4iN + - UlUHD7I7ISIp2OTIKJ1HGCksOU1snpAx2HtkPJw2SYzWMPmqzICEuimWl9Uiyokg X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -289,7 +289,7 @@ interactions: X-Ratelimit-Remaining: - "963" X-Ratelimit-Reset: - - "50" + - "24" status: 200 OK code: 200 duration: "" @@ -306,12 +306,12 @@ interactions: - UpdateTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/cfp-fc8-hfc + url: https://api.datadoghq.com/api/v1/synthetics/tests/hcc-w69-acd method: PUT response: - body: '{"status":"live","public_id":"cfp-fc8-hfc","tags":["foo:bar","buz"],"org_id":242643,"locations":["aws:eu-central-1"],"message":"Notify + body: '{"status":"live","public_id":"hcc-w69-acd","tags":["foo:bar","buz"],"org_id":242643,"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","deleted_at":null,"name":"updated name for synthetics browser test - bar","monitor_id":18158454,"type":"browser","created_at":"2020-05-01T00:09:10.016307+00:00","modified_at":"2020-05-01T00:09:10.753415+00:00","config":{"variables":[],"request":{"body":"this + bar","monitor_id":18206937,"type":"browser","created_at":"2020-05-04T01:26:35.677986+00:00","modified_at":"2020-05-04T01:26:36.372366+00:00","config":{"variables":[],"request":{"body":"this is an updated body","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"url":"https://docs.datadoghq.com","timeout":60,"method":"PUT"},"assertions":[]},"options":{"min_failure_duration":10,"device_ids":["laptop_large","tablet"],"min_location_failed":1,"tick_every":1800}}' headers: Cache-Control: @@ -323,13 +323,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:10 GMT + - Mon, 04 May 2020 01:26:36 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:10 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:36 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -338,9 +338,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - IWbeot5NPPjwzkLRJwJSrhKxooUYWPiItYmeOu7MvfpEU9kI8879nM2EukYnEnom + - 1bzfAqb/6TIngEeU7r7YcGGp2+NaI+ne9J3bzgQrdB0qTrgVrMtd4iKXr1zCNOHr X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -350,7 +350,7 @@ interactions: X-Ratelimit-Remaining: - "497" X-Ratelimit-Reset: - - "50" + - "24" status: 200 OK code: 200 duration: "" @@ -364,13 +364,14 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/cfp-fc8-hfc + url: https://api.datadoghq.com/api/v1/synthetics/tests/hcc-w69-acd method: GET response: - body: '{"status":"live","public_id":"cfp-fc8-hfc","tags":["foo:bar","buz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify + body: '{"status":"live","public_id":"hcc-w69-acd","tags":["foo:bar","buz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"updated name for synthetics browser test bar","monitor_id":18158454,"type":"browser","created_at":"2020-05-01T00:09:10.016307+00:00","modified_at":"2020-05-01T00:09:10.753415+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"config":{"variables":[],"request":{"body":"this is an updated body","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"url":"https://docs.datadoghq.com","timeout":60,"method":"PUT"},"assertions":[]},"options":{"min_failure_duration":10,"device_ids":["laptop_large","tablet"],"min_location_failed":1,"tick_every":1800}}' + Karimov"},"name":"updated name for synthetics browser test bar","monitor_id":18206937,"type":"browser","created_at":"2020-05-04T01:26:35.677986+00:00","modified_at":"2020-05-04T01:26:36.372366+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"overall_state_modified":"2020-05-04T01:26:36.699634+00:00","overall_state":2,"config":{"variables":[],"request":{"body":"this + is an updated body","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"url":"https://docs.datadoghq.com","timeout":60,"method":"PUT"},"assertions":[]},"options":{"min_failure_duration":10,"device_ids":["laptop_large","tablet"],"min_location_failed":1,"tick_every":1800}}' headers: Cache-Control: - no-cache @@ -381,13 +382,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:10 GMT + - Mon, 04 May 2020 01:26:36 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:10 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:36 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -396,9 +397,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - MZCX71FNdAUQ6AMWRBKW1fkNpiPTypOoXE57zLYE3lG5gigqB2nroYJ/8uMn9muy + - i/tjaZJ1Vhpke5HNSziupF5eEnHtDP3NjcuF7Ija0/AGuxq0WEQiFfpqy+mDADxv X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -408,7 +409,7 @@ interactions: X-Ratelimit-Remaining: - "962" X-Ratelimit-Reset: - - "50" + - "24" status: 200 OK code: 200 duration: "" @@ -422,13 +423,14 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/cfp-fc8-hfc + url: https://api.datadoghq.com/api/v1/synthetics/tests/hcc-w69-acd method: GET response: - body: '{"status":"live","public_id":"cfp-fc8-hfc","tags":["foo:bar","buz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify + body: '{"status":"live","public_id":"hcc-w69-acd","tags":["foo:bar","buz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"updated name for synthetics browser test bar","monitor_id":18158454,"type":"browser","created_at":"2020-05-01T00:09:10.016307+00:00","modified_at":"2020-05-01T00:09:10.753415+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"config":{"variables":[],"request":{"body":"this is an updated body","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"url":"https://docs.datadoghq.com","timeout":60,"method":"PUT"},"assertions":[]},"options":{"min_failure_duration":10,"device_ids":["laptop_large","tablet"],"min_location_failed":1,"tick_every":1800}}' + Karimov"},"name":"updated name for synthetics browser test bar","monitor_id":18206937,"type":"browser","created_at":"2020-05-04T01:26:35.677986+00:00","modified_at":"2020-05-04T01:26:36.372366+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"overall_state_modified":"2020-05-04T01:26:36.774358+00:00","overall_state":2,"config":{"variables":[],"request":{"body":"this + is an updated body","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"url":"https://docs.datadoghq.com","timeout":60,"method":"PUT"},"assertions":[]},"options":{"min_failure_duration":10,"device_ids":["laptop_large","tablet"],"min_location_failed":1,"tick_every":1800}}' headers: Cache-Control: - no-cache @@ -439,13 +441,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:11 GMT + - Mon, 04 May 2020 01:26:36 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:11 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:36 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -454,9 +456,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - IWbeot5NPPjwzkLRJwJSrhKxooUYWPiItYmeOu7MvfpEU9kI8879nM2EukYnEnom + - YKF8+1vTI0wiWlB3VWhiMVnZ1RLtV3h2yAW6/TGe9qIMWdYXxsNpy3J4QxfrJoDD X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -466,7 +468,7 @@ interactions: X-Ratelimit-Remaining: - "961" X-Ratelimit-Reset: - - "49" + - "24" status: 200 OK code: 200 duration: "" @@ -480,13 +482,14 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/cfp-fc8-hfc + url: https://api.datadoghq.com/api/v1/synthetics/tests/hcc-w69-acd method: GET response: - body: '{"status":"live","public_id":"cfp-fc8-hfc","tags":["foo:bar","buz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify + body: '{"status":"live","public_id":"hcc-w69-acd","tags":["foo:bar","buz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"updated name for synthetics browser test bar","monitor_id":18158454,"type":"browser","created_at":"2020-05-01T00:09:10.016307+00:00","modified_at":"2020-05-01T00:09:10.753415+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"config":{"variables":[],"request":{"body":"this is an updated body","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"url":"https://docs.datadoghq.com","timeout":60,"method":"PUT"},"assertions":[]},"options":{"min_failure_duration":10,"device_ids":["laptop_large","tablet"],"min_location_failed":1,"tick_every":1800}}' + Karimov"},"name":"updated name for synthetics browser test bar","monitor_id":18206937,"type":"browser","created_at":"2020-05-04T01:26:35.677986+00:00","modified_at":"2020-05-04T01:26:36.372366+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"overall_state_modified":"2020-05-04T01:26:36.872858+00:00","overall_state":2,"config":{"variables":[],"request":{"body":"this + is an updated body","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"url":"https://docs.datadoghq.com","timeout":60,"method":"PUT"},"assertions":[]},"options":{"min_failure_duration":10,"device_ids":["laptop_large","tablet"],"min_location_failed":1,"tick_every":1800}}' headers: Cache-Control: - no-cache @@ -497,13 +500,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:11 GMT + - Mon, 04 May 2020 01:26:36 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:11 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:36 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -512,9 +515,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - JbIYRXbRMsAVaKGy+d2H1ud8Z295ghodOPi6eELPzhmBKrZI3+dlseyrUY1cqOAd + - 6qTaw+brNWWnKD6ULH8747/TVkPK0wedRsruOmMITJcYBkJ/Eac9bUO9jP1Btfl5 X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -524,7 +527,7 @@ interactions: X-Ratelimit-Remaining: - "960" X-Ratelimit-Reset: - - "49" + - "24" status: 200 OK code: 200 duration: "" @@ -538,13 +541,14 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/cfp-fc8-hfc + url: https://api.datadoghq.com/api/v1/synthetics/tests/hcc-w69-acd method: GET response: - body: '{"status":"live","public_id":"cfp-fc8-hfc","tags":["foo:bar","buz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify + body: '{"status":"live","public_id":"hcc-w69-acd","tags":["foo:bar","buz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"updated name for synthetics browser test bar","monitor_id":18158454,"type":"browser","created_at":"2020-05-01T00:09:10.016307+00:00","modified_at":"2020-05-01T00:09:10.753415+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"config":{"variables":[],"request":{"body":"this is an updated body","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"url":"https://docs.datadoghq.com","timeout":60,"method":"PUT"},"assertions":[]},"options":{"min_failure_duration":10,"device_ids":["laptop_large","tablet"],"min_location_failed":1,"tick_every":1800}}' + Karimov"},"name":"updated name for synthetics browser test bar","monitor_id":18206937,"type":"browser","created_at":"2020-05-04T01:26:35.677986+00:00","modified_at":"2020-05-04T01:26:36.372366+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"overall_state_modified":"2020-05-04T01:26:36.999641+00:00","overall_state":2,"config":{"variables":[],"request":{"body":"this + is an updated body","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"url":"https://docs.datadoghq.com","timeout":60,"method":"PUT"},"assertions":[]},"options":{"min_failure_duration":10,"device_ids":["laptop_large","tablet"],"min_location_failed":1,"tick_every":1800}}' headers: Cache-Control: - no-cache @@ -555,13 +559,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:11 GMT + - Mon, 04 May 2020 01:26:37 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:11 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:36 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -570,9 +574,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - PcnVfOcEtqolY6fi98GEVSGXOZZkwQSBbl/twLr2TucYRfYyGCLXvKm6pTUNQt1l + - gVnECQ7ifaEfJ6BNPsXSglLjlU41ay4U8jXHC6V3+oC4U6gHkBb20H5zrSJj1zee X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -582,13 +586,13 @@ interactions: X-Ratelimit-Remaining: - "959" X-Ratelimit-Reset: - - "49" + - "24" status: 200 OK code: 200 duration: "" - request: body: | - {"public_ids":["cfp-fc8-hfc"]} + {"public_ids":["hcc-w69-acd"]} form: {} headers: Accept: @@ -602,7 +606,7 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2020-05-01T00:09:11.417077+00:00","public_id":"cfp-fc8-hfc"}]}' + body: '{"deleted_tests":[{"deleted_at":"2020-05-04T01:26:37.088708+00:00","public_id":"hcc-w69-acd"}]}' headers: Cache-Control: - no-cache @@ -613,13 +617,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:11 GMT + - Mon, 04 May 2020 01:26:37 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:11 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:37 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -628,9 +632,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - xKFgbVhCHArG4Y0sXMtZ5P8r3tuxi63adTKFxNzM7f4aJAAu82zS1Bp7ak9HjM4Y + - YNGrI7M9aLfuf6Npp7n/51e6xDtYCO9Rm/LB+HGbX4I6A/e7rnC+cgQxIZnsU+fj X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -640,7 +644,7 @@ interactions: X-Ratelimit-Remaining: - "114" X-Ratelimit-Reset: - - "49" + - "23" status: 200 OK code: 200 duration: "" @@ -654,7 +658,7 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/cfp-fc8-hfc + url: https://api.datadoghq.com/api/v1/synthetics/tests/hcc-w69-acd method: GET response: body: '{"errors": ["Synthetics test not found"]}' @@ -668,7 +672,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:11 GMT + - Mon, 04 May 2020 01:26:37 GMT Dd-Pool: - dogweb Pragma: @@ -680,7 +684,7 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -690,7 +694,7 @@ interactions: X-Ratelimit-Remaining: - "958" X-Ratelimit-Reset: - - "49" + - "23" status: 404 Not Found code: 404 duration: "" diff --git a/datadog/cassettes/TestAccDatadogSyntheticsBrowserTest_importBasic.yaml b/datadog/cassettes/TestAccDatadogSyntheticsBrowserTest_importBasic.yaml index 014eb5f1b..aca7ae228 100644 --- a/datadog/cassettes/TestAccDatadogSyntheticsBrowserTest_importBasic.yaml +++ b/datadog/cassettes/TestAccDatadogSyntheticsBrowserTest_importBasic.yaml @@ -17,8 +17,8 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests method: POST response: - body: '{"status":"paused","public_id":"77j-rkq-c22","tags":["foo:bar","baz"],"org_id":242643,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","deleted_at":null,"name":"name for synthetics browser test bar","monitor_id":18158461,"type":"browser","created_at":"2020-05-01T00:09:12.007846+00:00","modified_at":"2020-05-01T00:09:12.007846+00:00","config":{"variables":[],"request":{"body":"this + body: '{"status":"paused","public_id":"b9h-5bg-sqt","tags":["foo:bar","baz"],"org_id":242643,"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","deleted_at":null,"name":"name for synthetics browser test bar","monitor_id":18206940,"type":"browser","created_at":"2020-05-04T01:26:37.654955+00:00","modified_at":"2020-05-04T01:26:37.654955+00:00","config":{"variables":[],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[]},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: @@ -30,13 +30,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:12 GMT + - Mon, 04 May 2020 01:26:37 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:11 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:37 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -45,9 +45,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - EbXB0e7cF4uDRViRvI+w6qPg1YzykoJqZiw5SbqL/81VRQW4a286h09eTGyIVvXJ + - 6TICFxDFBNq65Lw6aA0hO1z7nxUSiTzUAT0k7ln4UasEU6/emXomwtYWMJdIuxUV X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -55,9 +55,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "112" + - "111" X-Ratelimit-Reset: - - "49" + - "23" status: 200 OK code: 200 duration: "" @@ -71,12 +71,12 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/77j-rkq-c22 + url: https://api.datadoghq.com/api/v1/synthetics/tests/b9h-5bg-sqt method: GET response: - body: '{"status":"paused","public_id":"77j-rkq-c22","tags":["foo:bar","baz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify + body: '{"status":"paused","public_id":"b9h-5bg-sqt","tags":["foo:bar","baz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"name for synthetics browser test bar","monitor_id":18158461,"type":"browser","created_at":"2020-05-01T00:09:12.007846+00:00","modified_at":"2020-05-01T00:09:12.007846+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics browser test bar","monitor_id":18206940,"type":"browser","created_at":"2020-05-04T01:26:37.654955+00:00","modified_at":"2020-05-04T01:26:37.654955+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod Karimov"},"config":{"variables":[],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[]},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: @@ -88,13 +88,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:12 GMT + - Mon, 04 May 2020 01:26:37 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:12 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:37 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -103,9 +103,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - HtltRxB6FWULKbr8JD/35HKWhI+dqAFQg/rNpMbjeMOPUq5j5iWk+nIs8OwDOqUR + - /Ib6MMQTHlX0/jTb6tlEMzSZs2crLqjkGjYkoQ/zb0RHtMaXT744DZRFpy23W0oi X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -113,9 +113,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "954" + - "951" X-Ratelimit-Reset: - - "48" + - "23" status: 200 OK code: 200 duration: "" @@ -129,12 +129,12 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/77j-rkq-c22 + url: https://api.datadoghq.com/api/v1/synthetics/tests/b9h-5bg-sqt method: GET response: - body: '{"status":"paused","public_id":"77j-rkq-c22","tags":["foo:bar","baz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify + body: '{"status":"paused","public_id":"b9h-5bg-sqt","tags":["foo:bar","baz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"name for synthetics browser test bar","monitor_id":18158461,"type":"browser","created_at":"2020-05-01T00:09:12.007846+00:00","modified_at":"2020-05-01T00:09:12.007846+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics browser test bar","monitor_id":18206940,"type":"browser","created_at":"2020-05-04T01:26:37.654955+00:00","modified_at":"2020-05-04T01:26:37.654955+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod Karimov"},"config":{"variables":[],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[]},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: @@ -146,13 +146,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:12 GMT + - Mon, 04 May 2020 01:26:37 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:12 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:37 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -161,9 +161,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - zDaLXgTwOglSG/+LeCisOhDwAOr7D4UzTY02i97kQg3V5W3f2nMLfChR6yLoaPN1 + - yqCkAb2Y8/4OgTSGYvedTl/k5gsPukDI7OLTlGSm9adIbRDVlGb00Ve5DDv9ImFD X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -171,9 +171,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "951" + - "949" X-Ratelimit-Reset: - - "48" + - "23" status: 200 OK code: 200 duration: "" @@ -187,12 +187,12 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/77j-rkq-c22 + url: https://api.datadoghq.com/api/v1/synthetics/tests/b9h-5bg-sqt method: GET response: - body: '{"status":"paused","public_id":"77j-rkq-c22","tags":["foo:bar","baz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify + body: '{"status":"paused","public_id":"b9h-5bg-sqt","tags":["foo:bar","baz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"name for synthetics browser test bar","monitor_id":18158461,"type":"browser","created_at":"2020-05-01T00:09:12.007846+00:00","modified_at":"2020-05-01T00:09:12.007846+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics browser test bar","monitor_id":18206940,"type":"browser","created_at":"2020-05-04T01:26:37.654955+00:00","modified_at":"2020-05-04T01:26:37.654955+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod Karimov"},"config":{"variables":[],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[]},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: @@ -204,13 +204,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:12 GMT + - Mon, 04 May 2020 01:26:38 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:12 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:38 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -219,9 +219,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - J7vOWsxZd7Grxzg2TIaQpn2nGjrOScgI4Kwzur8V2oOTYInX6xbVT4leinNkGLPk + - 7TxqGOOndreg52igtXLKdvEB8M2Uby8upoxCr+mzZBPLwPuOVdJ4ujutF+9TQL1R X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -231,7 +231,7 @@ interactions: X-Ratelimit-Remaining: - "947" X-Ratelimit-Reset: - - "48" + - "22" status: 200 OK code: 200 duration: "" @@ -245,12 +245,12 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/77j-rkq-c22 + url: https://api.datadoghq.com/api/v1/synthetics/tests/b9h-5bg-sqt method: GET response: - body: '{"status":"paused","public_id":"77j-rkq-c22","tags":["foo:bar","baz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify + body: '{"status":"paused","public_id":"b9h-5bg-sqt","tags":["foo:bar","baz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"name for synthetics browser test bar","monitor_id":18158461,"type":"browser","created_at":"2020-05-01T00:09:12.007846+00:00","modified_at":"2020-05-01T00:09:12.007846+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics browser test bar","monitor_id":18206940,"type":"browser","created_at":"2020-05-04T01:26:37.654955+00:00","modified_at":"2020-05-04T01:26:37.654955+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod Karimov"},"config":{"variables":[],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[]},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: @@ -262,13 +262,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:12 GMT + - Mon, 04 May 2020 01:26:38 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:12 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:38 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -277,9 +277,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - EE74ncTR989SomsonUvABJWdGDkXBs7Emqj3HVDpp6NYddpvHp95kXsnHux1Es9E + - FAXIqEyJyWWDyUDKgR+Td75IkfWeu40aSEpg9NtrH84gUkIxi84nk9RHrJt3rVD3 X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -289,13 +289,13 @@ interactions: X-Ratelimit-Remaining: - "946" X-Ratelimit-Reset: - - "48" + - "22" status: 200 OK code: 200 duration: "" - request: body: | - {"public_ids":["77j-rkq-c22"]} + {"public_ids":["b9h-5bg-sqt"]} form: {} headers: Accept: @@ -309,7 +309,7 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2020-05-01T00:09:12.752464+00:00","public_id":"77j-rkq-c22"}]}' + body: '{"deleted_tests":[{"deleted_at":"2020-05-04T01:26:38.421875+00:00","public_id":"b9h-5bg-sqt"}]}' headers: Cache-Control: - no-cache @@ -320,13 +320,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:12 GMT + - Mon, 04 May 2020 01:26:38 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:12 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:38 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -335,9 +335,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - GAK1J4mJd/EBZfEK4rqUw9OeB9GOeKgSyrXGtzNUi5zrv5sHYU56xJgA4bcbtgUA + - LOVPYRkvxiVgJlSU7tTR5QW5I3IByFfoP5oRWZk6jukYFQiYGeCZXWoo6PiPBzrK X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -347,7 +347,7 @@ interactions: X-Ratelimit-Remaining: - "111" X-Ratelimit-Reset: - - "48" + - "22" status: 200 OK code: 200 duration: "" @@ -361,7 +361,7 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/77j-rkq-c22 + url: https://api.datadoghq.com/api/v1/synthetics/tests/b9h-5bg-sqt method: GET response: body: '{"errors": ["Synthetics test not found"]}' @@ -375,7 +375,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:12 GMT + - Mon, 04 May 2020 01:26:38 GMT Dd-Pool: - dogweb Pragma: @@ -387,7 +387,7 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -395,9 +395,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "944" + - "943" X-Ratelimit-Reset: - - "48" + - "22" status: 404 Not Found code: 404 duration: "" diff --git a/datadog/cassettes/TestAccDatadogSyntheticsSSLTest_Basic.yaml b/datadog/cassettes/TestAccDatadogSyntheticsSSLTest_Basic.yaml index 799531308..7b065808b 100644 --- a/datadog/cassettes/TestAccDatadogSyntheticsSSLTest_Basic.yaml +++ b/datadog/cassettes/TestAccDatadogSyntheticsSSLTest_Basic.yaml @@ -17,8 +17,8 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests method: POST response: - body: '{"status":"paused","public_id":"54g-9s4-uav","tags":["foo:bar","baz"],"org_id":242643,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","deleted_at":null,"name":"name for synthetics test ssl","monitor_id":18158441,"type":"api","created_at":"2020-05-01T00:09:05.797108+00:00","modified_at":"2020-05-01T00:09:05.797108+00:00","subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' + body: '{"status":"paused","public_id":"5bq-cui-e5t","tags":["foo:bar","baz"],"org_id":242643,"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","deleted_at":null,"name":"name for synthetics test ssl","monitor_id":18206934,"type":"api","created_at":"2020-05-04T01:26:31.103710+00:00","modified_at":"2020-05-04T01:26:31.103710+00:00","subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -29,13 +29,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:05 GMT + - Mon, 04 May 2020 01:26:31 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:05 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:30 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -44,9 +44,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - v8lEj/pYmsavh1I0Db6FT/BAvLdOdAv91ctM9ImcmfZ/KHrCACXEdhuskTCPihd+ + - ztq+F8HwxRthTKNo0l2MCEDK5uwvgQzF00nWu49lHsBM51hGZBm/pPILDqupy+Xd X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -56,7 +56,7 @@ interactions: X-Ratelimit-Remaining: - "117" X-Ratelimit-Reset: - - "55" + - "29" status: 200 OK code: 200 duration: "" @@ -70,12 +70,12 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/54g-9s4-uav + url: https://api.datadoghq.com/api/v1/synthetics/tests/5bq-cui-e5t method: GET response: - body: '{"status":"paused","public_id":"54g-9s4-uav","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + body: '{"status":"paused","public_id":"5bq-cui-e5t","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"name for synthetics test ssl","monitor_id":18158441,"type":"api","created_at":"2020-05-01T00:09:05.797108+00:00","modified_at":"2020-05-01T00:09:05.797108+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics test ssl","monitor_id":18206934,"type":"api","created_at":"2020-05-04T01:26:31.103710+00:00","modified_at":"2020-05-04T01:26:31.103710+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod Karimov"},"subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' headers: Cache-Control: @@ -87,13 +87,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:05 GMT + - Mon, 04 May 2020 01:26:31 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:05 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:31 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -102,9 +102,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - FGm8mbL/ixNS/zyX94m5xaWAxszhu9w68KL0QwTbLNqYgp2ZyX2W4rsoYLDoadr+ + - IWbeot5NPPjwzkLRJwJSrhKxooUYWPiItYmeOu7MvfpEU9kI8879nM2EukYnEnom X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -114,7 +114,7 @@ interactions: X-Ratelimit-Remaining: - "985" X-Ratelimit-Reset: - - "55" + - "29" status: 200 OK code: 200 duration: "" @@ -128,12 +128,12 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/54g-9s4-uav + url: https://api.datadoghq.com/api/v1/synthetics/tests/5bq-cui-e5t method: GET response: - body: '{"status":"paused","public_id":"54g-9s4-uav","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + body: '{"status":"paused","public_id":"5bq-cui-e5t","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"name for synthetics test ssl","monitor_id":18158441,"type":"api","created_at":"2020-05-01T00:09:05.797108+00:00","modified_at":"2020-05-01T00:09:05.797108+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics test ssl","monitor_id":18206934,"type":"api","created_at":"2020-05-04T01:26:31.103710+00:00","modified_at":"2020-05-04T01:26:31.103710+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod Karimov"},"subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' headers: Cache-Control: @@ -145,13 +145,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:06 GMT + - Mon, 04 May 2020 01:26:31 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:06 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:31 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -160,9 +160,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - TAg/qKywM5rz/AUGkmt8+wB4wzGMJfSiHOrBzxBctPLsV/erSD5TChi/uo5ZlVXK + - wFmrQbB6wLDPf1aNlKcgRoMicVhPlX6qIVwwvniX5cF7oyd+90s5trfE73Pzpvml X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -172,7 +172,7 @@ interactions: X-Ratelimit-Remaining: - "984" X-Ratelimit-Reset: - - "54" + - "29" status: 200 OK code: 200 duration: "" @@ -186,13 +186,13 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/54g-9s4-uav + url: https://api.datadoghq.com/api/v1/synthetics/tests/5bq-cui-e5t method: GET response: - body: '{"status":"paused","public_id":"54g-9s4-uav","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + body: '{"status":"paused","public_id":"5bq-cui-e5t","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"name for synthetics test ssl","monitor_id":18158441,"type":"api","created_at":"2020-05-01T00:09:05.797108+00:00","modified_at":"2020-05-01T00:09:05.797108+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"subtype":"ssl","overall_state_modified":"2020-05-01T00:09:06.248582+00:00","overall_state":2,"config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' + Karimov"},"name":"name for synthetics test ssl","monitor_id":18206934,"type":"api","created_at":"2020-05-04T01:26:31.103710+00:00","modified_at":"2020-05-04T01:26:31.103710+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -203,13 +203,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:06 GMT + - Mon, 04 May 2020 01:26:31 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:06 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:31 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -218,9 +218,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - vwiIwb5QepaQFIQrmPfIwwVWkQ/z0inFQwNEDjqDDy4v3CsF5qbv9dnyfb7UGzLf + - 6qTaw+brNWWnKD6ULH8747/TVkPK0wedRsruOmMITJcYBkJ/Eac9bUO9jP1Btfl5 X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -230,7 +230,7 @@ interactions: X-Ratelimit-Remaining: - "983" X-Ratelimit-Reset: - - "54" + - "29" status: 200 OK code: 200 duration: "" @@ -244,13 +244,13 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/54g-9s4-uav + url: https://api.datadoghq.com/api/v1/synthetics/tests/5bq-cui-e5t method: GET response: - body: '{"status":"paused","public_id":"54g-9s4-uav","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + body: '{"status":"paused","public_id":"5bq-cui-e5t","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"name for synthetics test ssl","monitor_id":18158441,"type":"api","created_at":"2020-05-01T00:09:05.797108+00:00","modified_at":"2020-05-01T00:09:05.797108+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"subtype":"ssl","overall_state_modified":"2020-05-01T00:09:06.380125+00:00","overall_state":2,"config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' + Karimov"},"name":"name for synthetics test ssl","monitor_id":18206934,"type":"api","created_at":"2020-05-04T01:26:31.103710+00:00","modified_at":"2020-05-04T01:26:31.103710+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -261,13 +261,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:06 GMT + - Mon, 04 May 2020 01:26:31 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:06 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:31 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -276,9 +276,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - aq7EAvMMXGdldXT5eVhOcqdveqp5VDY6MoO0A/xKTuSa7v4Cc6HWT9iWUnYD+m1F + - kqXz3OvR7iajEJOdRFWpzJtcDHRumYwGfjdF12Vd65Xt1uV9T6lEO/K0lkxmcRvl X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -288,13 +288,13 @@ interactions: X-Ratelimit-Remaining: - "982" X-Ratelimit-Reset: - - "54" + - "29" status: 200 OK code: 200 duration: "" - request: body: | - {"public_ids":["54g-9s4-uav"]} + {"public_ids":["5bq-cui-e5t"]} form: {} headers: Accept: @@ -308,7 +308,7 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2020-05-01T00:09:06.502171+00:00","public_id":"54g-9s4-uav"}]}' + body: '{"deleted_tests":[{"deleted_at":"2020-05-04T01:26:31.816248+00:00","public_id":"5bq-cui-e5t"}]}' headers: Cache-Control: - no-cache @@ -319,13 +319,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:06 GMT + - Mon, 04 May 2020 01:26:32 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:06 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:31 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -334,9 +334,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 0Ldh7zbvTvxG6fwW0tw8N7mZPnI2XNOUoKCE8H0O1+b4UJVtdo0G52qWoFveZXDz + - eORbNuNjI+uNwQ5fL4WiSFLQTO+rx/Fd8RRk0TnSyEY4gQIkjrXIuJ1XAoOa+8yj X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -346,7 +346,7 @@ interactions: X-Ratelimit-Remaining: - "117" X-Ratelimit-Reset: - - "54" + - "29" status: 200 OK code: 200 duration: "" @@ -360,7 +360,7 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/54g-9s4-uav + url: https://api.datadoghq.com/api/v1/synthetics/tests/5bq-cui-e5t method: GET response: body: '{"errors": ["Synthetics test not found"]}' @@ -374,7 +374,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:06 GMT + - Mon, 04 May 2020 01:26:32 GMT Dd-Pool: - dogweb Pragma: @@ -386,7 +386,7 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -396,7 +396,7 @@ interactions: X-Ratelimit-Remaining: - "981" X-Ratelimit-Reset: - - "54" + - "28" status: 404 Not Found code: 404 duration: "" diff --git a/datadog/cassettes/TestAccDatadogSyntheticsSSLTest_Updated.yaml b/datadog/cassettes/TestAccDatadogSyntheticsSSLTest_Updated.yaml index a99a828b1..debc03330 100644 --- a/datadog/cassettes/TestAccDatadogSyntheticsSSLTest_Updated.yaml +++ b/datadog/cassettes/TestAccDatadogSyntheticsSSLTest_Updated.yaml @@ -17,8 +17,8 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests method: POST response: - body: '{"status":"paused","public_id":"jed-xu7-iuu","tags":["foo:bar","baz"],"org_id":242643,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","deleted_at":null,"name":"name for synthetics test ssl","monitor_id":18158445,"type":"api","created_at":"2020-05-01T00:09:06.876186+00:00","modified_at":"2020-05-01T00:09:06.876186+00:00","subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' + body: '{"status":"paused","public_id":"tdz-5ha-7bq","tags":["foo:bar","baz"],"org_id":242643,"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","deleted_at":null,"name":"name for synthetics test ssl","monitor_id":18206935,"type":"api","created_at":"2020-05-04T01:26:32.329525+00:00","modified_at":"2020-05-04T01:26:32.329525+00:00","subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -29,13 +29,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:06 GMT + - Mon, 04 May 2020 01:26:32 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:06 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:32 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -44,9 +44,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - wB7h0Rt2IYxDUBLtoJ4y0ZOq10ZaMdDZiRuFZ3d/FUUtC7gfBEZWTs0Y6dZhoLZS + - WyM4veckZw3QTGGZ+Ro8psXMR12RERTyuAWc4KNrn9Mfk0tQy+xf5Ofi04GlB+uh X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -56,7 +56,7 @@ interactions: X-Ratelimit-Remaining: - "116" X-Ratelimit-Reset: - - "54" + - "28" status: 200 OK code: 200 duration: "" @@ -70,12 +70,12 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/jed-xu7-iuu + url: https://api.datadoghq.com/api/v1/synthetics/tests/tdz-5ha-7bq method: GET response: - body: '{"status":"paused","public_id":"jed-xu7-iuu","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + body: '{"status":"paused","public_id":"tdz-5ha-7bq","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"name for synthetics test ssl","monitor_id":18158445,"type":"api","created_at":"2020-05-01T00:09:06.876186+00:00","modified_at":"2020-05-01T00:09:06.876186+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics test ssl","monitor_id":18206935,"type":"api","created_at":"2020-05-04T01:26:32.329525+00:00","modified_at":"2020-05-04T01:26:32.329525+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod Karimov"},"subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' headers: Cache-Control: @@ -87,13 +87,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:07 GMT + - Mon, 04 May 2020 01:26:32 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:06 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:32 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -102,9 +102,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - LOVPYRkvxiVgJlSU7tTR5QW5I3IByFfoP5oRWZk6jukYFQiYGeCZXWoo6PiPBzrK + - FiLv+OaMPfXL1uddbn+9yDPMV5awac1EEhAgzXF2ZG6GNVh7KFUCM+HhGv6IDSg0 X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -114,7 +114,7 @@ interactions: X-Ratelimit-Remaining: - "980" X-Ratelimit-Reset: - - "53" + - "28" status: 200 OK code: 200 duration: "" @@ -128,12 +128,12 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/jed-xu7-iuu + url: https://api.datadoghq.com/api/v1/synthetics/tests/tdz-5ha-7bq method: GET response: - body: '{"status":"paused","public_id":"jed-xu7-iuu","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + body: '{"status":"paused","public_id":"tdz-5ha-7bq","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"name for synthetics test ssl","monitor_id":18158445,"type":"api","created_at":"2020-05-01T00:09:06.876186+00:00","modified_at":"2020-05-01T00:09:06.876186+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics test ssl","monitor_id":18206935,"type":"api","created_at":"2020-05-04T01:26:32.329525+00:00","modified_at":"2020-05-04T01:26:32.329525+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod Karimov"},"subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' headers: Cache-Control: @@ -145,13 +145,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:07 GMT + - Mon, 04 May 2020 01:26:32 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:07 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:32 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -160,9 +160,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 3OCRM/4FZbkllI4iloi1acHDABD1SJi2aj2fysEPLLsOVOk5Ki6mi6IOsVG7JIay + - Z91NUpPIZnIQ9h7lBFWBkEPGVUEsn4/i71imPPwrChu4RPI5uNM5HGuodISK1HBR X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -172,7 +172,7 @@ interactions: X-Ratelimit-Remaining: - "979" X-Ratelimit-Reset: - - "53" + - "28" status: 200 OK code: 200 duration: "" @@ -186,12 +186,12 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/jed-xu7-iuu + url: https://api.datadoghq.com/api/v1/synthetics/tests/tdz-5ha-7bq method: GET response: - body: '{"status":"paused","public_id":"jed-xu7-iuu","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + body: '{"status":"paused","public_id":"tdz-5ha-7bq","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"name for synthetics test ssl","monitor_id":18158445,"type":"api","created_at":"2020-05-01T00:09:06.876186+00:00","modified_at":"2020-05-01T00:09:06.876186+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics test ssl","monitor_id":18206935,"type":"api","created_at":"2020-05-04T01:26:32.329525+00:00","modified_at":"2020-05-04T01:26:32.329525+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod Karimov"},"subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' headers: Cache-Control: @@ -203,13 +203,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:07 GMT + - Mon, 04 May 2020 01:26:32 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:07 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:32 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -218,9 +218,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - IWbeot5NPPjwzkLRJwJSrhKxooUYWPiItYmeOu7MvfpEU9kI8879nM2EukYnEnom + - 5gIeAyE850e1lqVwTAgwvudewR8EzuQd3qGaXsS2D0CKQVhFOIjBoeQYiH0qPohy X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -230,7 +230,7 @@ interactions: X-Ratelimit-Remaining: - "978" X-Ratelimit-Reset: - - "53" + - "28" status: 200 OK code: 200 duration: "" @@ -244,12 +244,12 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/jed-xu7-iuu + url: https://api.datadoghq.com/api/v1/synthetics/tests/tdz-5ha-7bq method: GET response: - body: '{"status":"paused","public_id":"jed-xu7-iuu","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + body: '{"status":"paused","public_id":"tdz-5ha-7bq","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"name for synthetics test ssl","monitor_id":18158445,"type":"api","created_at":"2020-05-01T00:09:06.876186+00:00","modified_at":"2020-05-01T00:09:06.876186+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics test ssl","monitor_id":18206935,"type":"api","created_at":"2020-05-04T01:26:32.329525+00:00","modified_at":"2020-05-04T01:26:32.329525+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod Karimov"},"subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' headers: Cache-Control: @@ -261,13 +261,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:07 GMT + - Mon, 04 May 2020 01:26:32 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:07 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:32 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -276,9 +276,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - bZxgHnChon9vZm5xdRa4NrQAYSVWc7iQc54D228L4geTT/U2FwMh0nkSo8j+6vpL + - J7vOWsxZd7Grxzg2TIaQpn2nGjrOScgI4Kwzur8V2oOTYInX6xbVT4leinNkGLPk X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -288,7 +288,7 @@ interactions: X-Ratelimit-Remaining: - "977" X-Ratelimit-Reset: - - "53" + - "28" status: 200 OK code: 200 duration: "" @@ -305,11 +305,11 @@ interactions: - UpdateTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/jed-xu7-iuu + url: https://api.datadoghq.com/api/v1/synthetics/tests/tdz-5ha-7bq method: PUT response: - body: '{"status":"live","public_id":"jed-xu7-iuu","tags":["foo:bar","foo","env:test"],"org_id":242643,"locations":["aws:eu-central-1"],"message":"Notify - @pagerduty","deleted_at":null,"name":"updated name","monitor_id":18158445,"type":"api","created_at":"2020-05-01T00:09:06.876186+00:00","modified_at":"2020-05-01T00:09:07.568623+00:00","subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":60}]},"options":{"accept_self_signed":false,"tick_every":60}}' + body: '{"status":"live","public_id":"tdz-5ha-7bq","tags":["foo:bar","foo","env:test"],"org_id":242643,"locations":["aws:eu-central-1"],"message":"Notify + @pagerduty","deleted_at":null,"name":"updated name","monitor_id":18206935,"type":"api","created_at":"2020-05-04T01:26:32.329525+00:00","modified_at":"2020-05-04T01:26:33.003280+00:00","subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":60}]},"options":{"accept_self_signed":false,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -320,13 +320,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:07 GMT + - Mon, 04 May 2020 01:26:33 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:07 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:32 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -335,9 +335,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - xKFgbVhCHArG4Y0sXMtZ5P8r3tuxi63adTKFxNzM7f4aJAAu82zS1Bp7ak9HjM4Y + - 7vC9CD2UnUYbC7cu05B95RgDyGt2vcRq8GQJgBahx4BAPKzA8OvLqEF8NdaLccla X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -347,7 +347,7 @@ interactions: X-Ratelimit-Remaining: - "498" X-Ratelimit-Reset: - - "53" + - "28" status: 200 OK code: 200 duration: "" @@ -361,12 +361,12 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/jed-xu7-iuu + url: https://api.datadoghq.com/api/v1/synthetics/tests/tdz-5ha-7bq method: GET response: - body: '{"status":"live","public_id":"jed-xu7-iuu","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify + body: '{"status":"live","public_id":"tdz-5ha-7bq","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"updated name","monitor_id":18158445,"type":"api","created_at":"2020-05-01T00:09:06.876186+00:00","modified_at":"2020-05-01T00:09:07.568623+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"updated name","monitor_id":18206935,"type":"api","created_at":"2020-05-04T01:26:32.329525+00:00","modified_at":"2020-05-04T01:26:33.003280+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod Karimov"},"subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":60}]},"options":{"accept_self_signed":false,"tick_every":60}}' headers: Cache-Control: @@ -378,13 +378,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:07 GMT + - Mon, 04 May 2020 01:26:33 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:07 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:33 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -393,9 +393,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 7vC9CD2UnUYbC7cu05B95RgDyGt2vcRq8GQJgBahx4BAPKzA8OvLqEF8NdaLccla + - 5gIeAyE850e1lqVwTAgwvudewR8EzuQd3qGaXsS2D0CKQVhFOIjBoeQYiH0qPohy X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -405,7 +405,7 @@ interactions: X-Ratelimit-Remaining: - "976" X-Ratelimit-Reset: - - "53" + - "27" status: 200 OK code: 200 duration: "" @@ -419,12 +419,12 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/jed-xu7-iuu + url: https://api.datadoghq.com/api/v1/synthetics/tests/tdz-5ha-7bq method: GET response: - body: '{"status":"live","public_id":"jed-xu7-iuu","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify + body: '{"status":"live","public_id":"tdz-5ha-7bq","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"updated name","monitor_id":18158445,"type":"api","created_at":"2020-05-01T00:09:06.876186+00:00","modified_at":"2020-05-01T00:09:07.568623+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"updated name","monitor_id":18206935,"type":"api","created_at":"2020-05-04T01:26:32.329525+00:00","modified_at":"2020-05-04T01:26:33.003280+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod Karimov"},"subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":60}]},"options":{"accept_self_signed":false,"tick_every":60}}' headers: Cache-Control: @@ -436,13 +436,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:07 GMT + - Mon, 04 May 2020 01:26:33 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:07 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:33 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -451,9 +451,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - GAK1J4mJd/EBZfEK4rqUw9OeB9GOeKgSyrXGtzNUi5zrv5sHYU56xJgA4bcbtgUA + - bZImwKnIO3sUAXCuyRs9fWaEMDsBOTeSFh5dFNajdvBKpGDGzy05mj4PBPSf18hx X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -463,7 +463,7 @@ interactions: X-Ratelimit-Remaining: - "975" X-Ratelimit-Reset: - - "53" + - "27" status: 200 OK code: 200 duration: "" @@ -477,12 +477,12 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/jed-xu7-iuu + url: https://api.datadoghq.com/api/v1/synthetics/tests/tdz-5ha-7bq method: GET response: - body: '{"status":"live","public_id":"jed-xu7-iuu","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify + body: '{"status":"live","public_id":"tdz-5ha-7bq","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"updated name","monitor_id":18158445,"type":"api","created_at":"2020-05-01T00:09:06.876186+00:00","modified_at":"2020-05-01T00:09:07.568623+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"updated name","monitor_id":18206935,"type":"api","created_at":"2020-05-04T01:26:32.329525+00:00","modified_at":"2020-05-04T01:26:33.003280+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod Karimov"},"subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":60}]},"options":{"accept_self_signed":false,"tick_every":60}}' headers: Cache-Control: @@ -494,13 +494,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:07 GMT + - Mon, 04 May 2020 01:26:33 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:07 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:33 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -509,9 +509,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - yL2jMz/muX5URjcdpTHzlehf0qi0hyVxH7uShvIhWEeYrIRwdt0CU/7wzCTakK6N + - ztq+F8HwxRthTKNo0l2MCEDK5uwvgQzF00nWu49lHsBM51hGZBm/pPILDqupy+Xd X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -521,7 +521,7 @@ interactions: X-Ratelimit-Remaining: - "974" X-Ratelimit-Reset: - - "53" + - "27" status: 200 OK code: 200 duration: "" @@ -535,12 +535,12 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/jed-xu7-iuu + url: https://api.datadoghq.com/api/v1/synthetics/tests/tdz-5ha-7bq method: GET response: - body: '{"status":"live","public_id":"jed-xu7-iuu","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify + body: '{"status":"live","public_id":"tdz-5ha-7bq","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"updated name","monitor_id":18158445,"type":"api","created_at":"2020-05-01T00:09:06.876186+00:00","modified_at":"2020-05-01T00:09:07.568623+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"updated name","monitor_id":18206935,"type":"api","created_at":"2020-05-04T01:26:32.329525+00:00","modified_at":"2020-05-04T01:26:33.003280+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod Karimov"},"subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":60}]},"options":{"accept_self_signed":false,"tick_every":60}}' headers: Cache-Control: @@ -552,13 +552,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:08 GMT + - Mon, 04 May 2020 01:26:33 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:08 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:33 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -567,9 +567,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - sg8vzlrAXfi82gDuSEBUxkn5dG85uDtr4RhaVLNn521TM8s6JdimiKDHvX2NhFjo + - fLh2Ki8TBaqqP7azNnKugW2P+FqYhl36RGg8m8syr+2I6kNse5gXxG00+xylWppT X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -579,13 +579,13 @@ interactions: X-Ratelimit-Remaining: - "973" X-Ratelimit-Reset: - - "52" + - "27" status: 200 OK code: 200 duration: "" - request: body: | - {"public_ids":["jed-xu7-iuu"]} + {"public_ids":["tdz-5ha-7bq"]} form: {} headers: Accept: @@ -599,7 +599,7 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2020-05-01T00:09:08.251830+00:00","public_id":"jed-xu7-iuu"}]}' + body: '{"deleted_tests":[{"deleted_at":"2020-05-04T01:26:33.747641+00:00","public_id":"tdz-5ha-7bq"}]}' headers: Cache-Control: - no-cache @@ -610,13 +610,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:08 GMT + - Mon, 04 May 2020 01:26:34 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:08 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:33 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -625,9 +625,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - ty7T8eIeXOfZhM7KDN5nGo8JS7ZSIWAqBNFeZshTg3LLDJJa7mPU5wqGt0nOPCpy + - NueLa2zkdBcl9S7BHrRuWyjAeR9iWgPFe330KTY6Cp0/yUhjUktbxu5rG2fG6gBk X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -637,7 +637,7 @@ interactions: X-Ratelimit-Remaining: - "116" X-Ratelimit-Reset: - - "52" + - "27" status: 200 OK code: 200 duration: "" @@ -651,7 +651,7 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/jed-xu7-iuu + url: https://api.datadoghq.com/api/v1/synthetics/tests/tdz-5ha-7bq method: GET response: body: '{"errors": ["Synthetics test not found"]}' @@ -665,7 +665,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:08 GMT + - Mon, 04 May 2020 01:26:34 GMT Dd-Pool: - dogweb Pragma: @@ -677,7 +677,7 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -687,7 +687,7 @@ interactions: X-Ratelimit-Remaining: - "972" X-Ratelimit-Reset: - - "52" + - "26" status: 404 Not Found code: 404 duration: "" diff --git a/datadog/cassettes/TestAccDatadogSyntheticsSSLTest_importBasic.yaml b/datadog/cassettes/TestAccDatadogSyntheticsSSLTest_importBasic.yaml index c7e3c9a58..0e7390c40 100644 --- a/datadog/cassettes/TestAccDatadogSyntheticsSSLTest_importBasic.yaml +++ b/datadog/cassettes/TestAccDatadogSyntheticsSSLTest_importBasic.yaml @@ -17,8 +17,8 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests method: POST response: - body: '{"status":"paused","public_id":"svz-8vf-u33","tags":["foo:bar","baz"],"org_id":242643,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","deleted_at":null,"name":"name for synthetics test ssl","monitor_id":18158459,"type":"api","created_at":"2020-05-01T00:09:11.876529+00:00","modified_at":"2020-05-01T00:09:11.876529+00:00","subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' + body: '{"status":"paused","public_id":"eix-nk2-b6d","tags":["foo:bar","baz"],"org_id":242643,"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","deleted_at":null,"name":"name for synthetics test ssl","monitor_id":18206938,"type":"api","created_at":"2020-05-04T01:26:37.467715+00:00","modified_at":"2020-05-04T01:26:37.467715+00:00","subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -29,13 +29,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:11 GMT + - Mon, 04 May 2020 01:26:37 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:11 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:37 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -44,9 +44,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - UmZMvwWLI5lgbGFBnw6J7jqO5hwyrvVF8Un8TwZ8TRQQ6jetE/6GVTSaoSUmQWRg + - A5a5htKhTUF1FdBQZRUZl4RVawKwk2RUtaZz3EDBmdXc0X6i0O7TBEBWn4bIBQ01 X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -56,7 +56,7 @@ interactions: X-Ratelimit-Remaining: - "113" X-Ratelimit-Reset: - - "49" + - "23" status: 200 OK code: 200 duration: "" @@ -70,13 +70,13 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/svz-8vf-u33 + url: https://api.datadoghq.com/api/v1/synthetics/tests/eix-nk2-b6d method: GET response: - body: '{"status":"paused","public_id":"svz-8vf-u33","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + body: '{"status":"paused","public_id":"eix-nk2-b6d","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"name for synthetics test ssl","monitor_id":18158459,"type":"api","created_at":"2020-05-01T00:09:11.876529+00:00","modified_at":"2020-05-01T00:09:11.876529+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"subtype":"ssl","overall_state_modified":"2020-05-01T00:09:12.031618+00:00","overall_state":2,"config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' + Karimov"},"name":"name for synthetics test ssl","monitor_id":18206938,"type":"api","created_at":"2020-05-04T01:26:37.467715+00:00","modified_at":"2020-05-04T01:26:37.467715+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -87,13 +87,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:12 GMT + - Mon, 04 May 2020 01:26:37 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:11 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:37 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -102,9 +102,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 69kiClanS8NcBSsdd51HHifvhQSGoRbJJjhU9l40yqxQHVNrndFN9zVtFJW1OcSf + - dPTJBBDv5jeY1gnH1FisDpda5Hi0boOGbsHxIOi4qkMt+QLOH7F7P7MeSr40vXZ0 X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -114,7 +114,7 @@ interactions: X-Ratelimit-Remaining: - "957" X-Ratelimit-Reset: - - "48" + - "23" status: 200 OK code: 200 duration: "" @@ -128,13 +128,13 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/svz-8vf-u33 + url: https://api.datadoghq.com/api/v1/synthetics/tests/eix-nk2-b6d method: GET response: - body: '{"status":"paused","public_id":"svz-8vf-u33","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + body: '{"status":"paused","public_id":"eix-nk2-b6d","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"name for synthetics test ssl","monitor_id":18158459,"type":"api","created_at":"2020-05-01T00:09:11.876529+00:00","modified_at":"2020-05-01T00:09:11.876529+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"subtype":"ssl","overall_state_modified":"2020-05-01T00:09:12.175044+00:00","overall_state":2,"config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' + Karimov"},"name":"name for synthetics test ssl","monitor_id":18206938,"type":"api","created_at":"2020-05-04T01:26:37.467715+00:00","modified_at":"2020-05-04T01:26:37.467715+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -145,13 +145,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:12 GMT + - Mon, 04 May 2020 01:26:37 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:12 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:37 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -160,9 +160,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - pNNj5PhODCVJlRBPEhZP3s9KL9kvFYv//TnGsiPp+3AqL7R5kIW2JlCWtfMcXeFn + - GAK1J4mJd/EBZfEK4rqUw9OeB9GOeKgSyrXGtzNUi5zrv5sHYU56xJgA4bcbtgUA X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -170,9 +170,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "955" + - "956" X-Ratelimit-Reset: - - "48" + - "23" status: 200 OK code: 200 duration: "" @@ -186,13 +186,13 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/svz-8vf-u33 + url: https://api.datadoghq.com/api/v1/synthetics/tests/eix-nk2-b6d method: GET response: - body: '{"status":"paused","public_id":"svz-8vf-u33","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + body: '{"status":"paused","public_id":"eix-nk2-b6d","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"name for synthetics test ssl","monitor_id":18158459,"type":"api","created_at":"2020-05-01T00:09:11.876529+00:00","modified_at":"2020-05-01T00:09:11.876529+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"subtype":"ssl","overall_state_modified":"2020-05-01T00:09:12.327707+00:00","overall_state":2,"config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' + Karimov"},"name":"name for synthetics test ssl","monitor_id":18206938,"type":"api","created_at":"2020-05-04T01:26:37.467715+00:00","modified_at":"2020-05-04T01:26:37.467715+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -203,13 +203,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:12 GMT + - Mon, 04 May 2020 01:26:37 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:12 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:37 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -218,9 +218,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - xWBl6EQ7zJ83bRwMRX5o/d34f1JMs+KyihhH9fua7krbgQkOsGFusXhvqkH02q3L + - RngFxOd8mVeT14auLfzsH/6kz142QLoKkYXZjfmXpXDkZ/eN6uoCM3cTScXuFEa0 X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -228,9 +228,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "952" + - "954" X-Ratelimit-Reset: - - "48" + - "23" status: 200 OK code: 200 duration: "" @@ -244,13 +244,13 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/svz-8vf-u33 + url: https://api.datadoghq.com/api/v1/synthetics/tests/eix-nk2-b6d method: GET response: - body: '{"status":"paused","public_id":"svz-8vf-u33","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + body: '{"status":"paused","public_id":"eix-nk2-b6d","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"name for synthetics test ssl","monitor_id":18158459,"type":"api","created_at":"2020-05-01T00:09:11.876529+00:00","modified_at":"2020-05-01T00:09:11.876529+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"subtype":"ssl","overall_state_modified":"2020-05-01T00:09:12.506987+00:00","overall_state":2,"config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' + Karimov"},"name":"name for synthetics test ssl","monitor_id":18206938,"type":"api","created_at":"2020-05-04T01:26:37.467715+00:00","modified_at":"2020-05-04T01:26:37.467715+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -261,13 +261,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:12 GMT + - Mon, 04 May 2020 01:26:37 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:12 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:37 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -276,9 +276,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - +24qoGfe5Pp4qbS1m8KO9qioq2P4fxuj80XQhtr/9vInDLECmYZT0VSsbqISZgqC + - fqgAnnBv1js3TBerHAS1jOASlx3n1xB+hOOrFOLO2ZaBfZ3rktA3gzUaBetB5haL X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -286,15 +286,15 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "948" + - "952" X-Ratelimit-Reset: - - "48" + - "23" status: 200 OK code: 200 duration: "" - request: body: | - {"public_ids":["svz-8vf-u33"]} + {"public_ids":["eix-nk2-b6d"]} form: {} headers: Accept: @@ -308,7 +308,7 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2020-05-01T00:09:12.627987+00:00","public_id":"svz-8vf-u33"}]}' + body: '{"deleted_tests":[{"deleted_at":"2020-05-04T01:26:38.060223+00:00","public_id":"eix-nk2-b6d"}]}' headers: Cache-Control: - no-cache @@ -319,13 +319,13 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:17 GMT + - Mon, 04 May 2020 01:26:38 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Fri, 08-May-2020 00:09:12 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:37 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -334,9 +334,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - /Lq4EjXKMzRKp9qa/TaJTTVqSY3uTwQpdi8SFIU3firYrLG0qdPC+ksTJBROerQS + - bZImwKnIO3sUAXCuyRs9fWaEMDsBOTeSFh5dFNajdvBKpGDGzy05mj4PBPSf18hx X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -344,9 +344,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "112" + - "113" X-Ratelimit-Reset: - - "48" + - "22" status: 200 OK code: 200 duration: "" @@ -360,7 +360,7 @@ interactions: - GetTest User-Agent: - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/svz-8vf-u33 + url: https://api.datadoghq.com/api/v1/synthetics/tests/eix-nk2-b6d method: GET response: body: '{"errors": ["Synthetics test not found"]}' @@ -374,7 +374,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 01 May 2020 00:09:17 GMT + - Mon, 04 May 2020 01:26:38 GMT Dd-Pool: - dogweb Pragma: @@ -386,7 +386,7 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.2454383" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -394,9 +394,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "943" + - "945" X-Ratelimit-Reset: - - "43" + - "22" status: 404 Not Found code: 404 duration: "" diff --git a/datadog/resource_datadog_synthetics_test_.go b/datadog/resource_datadog_synthetics_test_.go index 60dde4170..7333f7e25 100644 --- a/datadog/resource_datadog_synthetics_test_.go +++ b/datadog/resource_datadog_synthetics_test_.go @@ -135,9 +135,9 @@ func syntheticsTestOptions() *schema.Schema { return &schema.Schema{ Type: schema.TypeMap, DiffSuppressFunc: func(key, old, new string, d *schema.ResourceData) bool { - if key == "options.follow_redirects" || key == "options.accept_self_signed" { + if key == "options.follow_redirects" || key == "options.accept_self_signed" || key == "options.allow_insecure" { // TF nested schemas is limited to string values only - // follow_redirects and accept_self_signed being booleans in Datadog json api + // follow_redirects, accept_self_signed and allow_insecure being booleans in Datadog json api // we need a sane way to convert from boolean to string // and from string to boolean oldValue, err1 := strconv.ParseBool(old) @@ -172,6 +172,16 @@ func syntheticsTestOptions() *schema.Schema { errs = append(errs, fmt.Errorf("%q.accept_self_signed must be either true or false, got: %s", key, acceptSelfSignedStr)) } } + allowInsecureRaw, ok := val.(map[string]interface{})["allow_insecure"] + if ok { + allowInsecureStr := convertToString(allowInsecureRaw) + switch allowInsecureStr { + case "true", "false": + break + default: + errs = append(errs, fmt.Errorf("%q.allow_insecure must be either true or false, got: %s", key, allowInsecureStr)) + } + } return }, Optional: true, @@ -197,6 +207,10 @@ func syntheticsTestOptions() *schema.Schema { Type: schema.TypeBool, Optional: true, }, + "allow_insecure": { + Type: schema.TypeBool, + Optional: true, + }, }, }, } @@ -374,6 +388,12 @@ func buildSyntheticsTestStruct(d *schema.ResourceData) *datadogV1.SyntheticsTest acceptSelfSigned, _ := strconv.ParseBool(attr.(string)) options.SetAcceptSelfSigned(acceptSelfSigned) } + if attr, ok := d.GetOk("options.allow_insecure"); ok { + // for some reason, attr is equal to "1" or "0" in TF 0.11 + // so ParseBool is required for retro-compatibility + allowInsecure, _ := strconv.ParseBool(attr.(string)) + options.SetAllowInsecure(allowInsecure) + } if attr, ok := d.GetOk("device_ids"); ok { var deviceIds []datadogV1.SyntheticsDeviceID for _, s := range attr.([]interface{}) { @@ -489,6 +509,9 @@ func updateSyntheticsTestLocalState(d *schema.ResourceData, syntheticsTest *data if actualOptions.HasAcceptSelfSigned() { localOptions["accept_self_signed"] = convertToString(actualOptions.GetAcceptSelfSigned()) } + if actualOptions.HasAllowInsecure() { + localOptions["allow_insecure"] = convertToString(actualOptions.GetAllowInsecure()) + } d.Set("options", localOptions) diff --git a/datadog/resource_datadog_synthetics_test_test.go b/datadog/resource_datadog_synthetics_test_test.go index d0de2aae2..0d2de122a 100644 --- a/datadog/resource_datadog_synthetics_test_test.go +++ b/datadog/resource_datadog_synthetics_test_test.go @@ -286,6 +286,7 @@ resource "datadog_synthetics_test" "foo" { follow_redirects = true min_failure_duration = 0 min_location_failed = 1 + allow_insecure = true } name = "name for synthetics test foo" @@ -377,6 +378,7 @@ resource "datadog_synthetics_test" "foo" { follow_redirects = false min_failure_duration = 10 min_location_failed = 1 + allow_insecure = false } name = "updated name" From f9d1ecb14f1a6854147d09a68bf2bfe7ae3ca973 Mon Sep 17 00:00:00 2001 From: skarimo Date: Sun, 3 May 2020 21:42:01 -0400 Subject: [PATCH 08/11] add allow_insecure option to the terraform html --- website/docs/r/synthetics.html.markdown | 1 + 1 file changed, 1 insertion(+) diff --git a/website/docs/r/synthetics.html.markdown b/website/docs/r/synthetics.html.markdown index be8f7f278..7d502e568 100644 --- a/website/docs/r/synthetics.html.markdown +++ b/website/docs/r/synthetics.html.markdown @@ -140,6 +140,7 @@ The following arguments are supported: - `min_failure_duration` - (Optional) How long the test should be in failure before alerting (integer, number of seconds, max 7200). Default is 0. - `min_location_failed` - (Optional) Threshold below which a synthetics test is allowed to fail before sending notifications - `accept_self_signed` - (Optional) For type=ssl, true or false + - `allow_insecure` - (Optional) For type=api, true or false. Allow your HTTP test go on with connection even if there is an error when validating the certificate. - `locations` - (Required) Please refer to [Datadog documentation](https://docs.datadoghq.com/synthetics/api_test/#request) for available locations (e.g. "aws:eu-central-1") - `device_ids` - (Optional) "laptop_large", "tablet" or "mobile_small" (only available if type=browser) - `status` - (Required) "live", "paused" From 27c1ee80d260700d792a5d18951e1464ee7d959c Mon Sep 17 00:00:00 2001 From: skarimo Date: Sun, 3 May 2020 21:59:27 -0400 Subject: [PATCH 09/11] update format --- datadog/resource_datadog_synthetics_test_.go | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/datadog/resource_datadog_synthetics_test_.go b/datadog/resource_datadog_synthetics_test_.go index 7333f7e25..127948218 100644 --- a/datadog/resource_datadog_synthetics_test_.go +++ b/datadog/resource_datadog_synthetics_test_.go @@ -276,7 +276,8 @@ func resourceDatadogSyntheticsTestDelete(d *schema.ResourceData, meta interface{ datadogClientV1 := providerConf.DatadogClientV1 authV1 := providerConf.AuthV1 - if _, _, err := datadogClientV1.SyntheticsApi.DeleteTests(authV1).Body(datadogV1.SyntheticsDeleteTestsPayload{PublicIds: &[]string{d.Id()}}).Execute(); err != nil { + syntheticsDeleteTestsPayload := datadogV1.SyntheticsDeleteTestsPayload{PublicIds: &[]string{d.Id()}} + if _, _, err := datadogClientV1.SyntheticsApi.DeleteTests(authV1).Body(syntheticsDeleteTestsPayload).Execute(); err != nil { // The resource is assumed to still exist, and all prior state is preserved. return translateClientError(err, "error deleting synthetics test") } @@ -450,14 +451,14 @@ func updateSyntheticsTestLocalState(d *schema.ResourceData, syntheticsTest *data if actualRequest.HasBody() { localRequest["body"] = actualRequest.GetBody() } - if _, ok := actualRequest.GetMethodOk(); ok { + if actualRequest.HasMethod() { localRequest["method"] = convertToString(actualRequest.GetMethod()) } if actualRequest.HasTimeout() { localRequest["timeout"] = convertToString(actualRequest.GetTimeout()) } - if v, ok := actualRequest.GetUrlOk(); ok { - localRequest["url"] = *v + if actualRequest.HasUrl() { + localRequest["url"] = actualRequest.GetUrl() } if actualRequest.HasHost() { localRequest["host"] = actualRequest.GetHost() @@ -472,8 +473,8 @@ func updateSyntheticsTestLocalState(d *schema.ResourceData, syntheticsTest *data var localAssertions []map[string]string for _, assertion := range actualAssertions { localAssertion := make(map[string]string) - if _, ok := assertion.GetOperatorOk(); ok { - localAssertion["operator"] = string(assertion.GetOperator()) + if v, ok := assertion.GetOperatorOk(); ok { + localAssertion["operator"] = string(*v) } if assertion.HasProperty() { localAssertion["property"] = assertion.GetProperty() @@ -481,8 +482,8 @@ func updateSyntheticsTestLocalState(d *schema.ResourceData, syntheticsTest *data if target := assertion.GetTarget(); target != nil { localAssertion["target"] = convertToString(target) } - if _, ok := assertion.GetTypeOk(); ok { - localAssertion["type"] = string(assertion.GetType()) + if v, ok := assertion.GetTypeOk(); ok { + localAssertion["type"] = string(*v) } localAssertions = append(localAssertions, localAssertion) } From 51fda4d45a293584fdf735e2dd2199ca569e8652 Mon Sep 17 00:00:00 2001 From: Gregory Date: Fri, 8 May 2020 17:13:32 +0200 Subject: [PATCH 10/11] init models with New methods --- datadog/resource_datadog_synthetics_test_.go | 28 +++++++++----------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/datadog/resource_datadog_synthetics_test_.go b/datadog/resource_datadog_synthetics_test_.go index 127948218..721b83c50 100644 --- a/datadog/resource_datadog_synthetics_test_.go +++ b/datadog/resource_datadog_synthetics_test_.go @@ -296,7 +296,7 @@ func isTargetOfTypeInt(assertionType datadogV1.SyntheticsAssertionType) bool { } func buildSyntheticsTestStruct(d *schema.ResourceData) *datadogV1.SyntheticsTestDetails { - request := datadogV1.SyntheticsTestRequest{} + request := datadogV1.NewSyntheticsTestRequest() if attr, ok := d.GetOk("request.method"); ok { request.SetMethod(datadogV1.HTTPMethod(attr.(string))) } @@ -327,11 +327,8 @@ func buildSyntheticsTestStruct(d *schema.ResourceData) *datadogV1.SyntheticsTest } } - config := datadogV1.SyntheticsTestConfig{ - Request: request, - Variables: &[]datadogV1.SyntheticsBrowserVariable{}, - Assertions: []datadogV1.SyntheticsAssertion{}, - } + config := datadogV1.NewSyntheticsTestConfig([]datadogV1.SyntheticsAssertion{}, *request) + config.SetVariables([]datadogV1.SyntheticsBrowserVariable{}) if attr, ok := d.GetOk("assertions"); ok && attr != nil { for _, attr := range attr.([]interface{}) { @@ -363,7 +360,7 @@ func buildSyntheticsTestStruct(d *schema.ResourceData) *datadogV1.SyntheticsTest } } - options := datadogV1.SyntheticsTestOptions{} + options := datadogV1.NewSyntheticsTestOptions() if attr, ok := d.GetOk("options.tick_every"); ok { tickEvery, _ := strconv.Atoi(attr.(string)) options.SetTickEvery(datadogV1.SyntheticsTickInterval(tickEvery)) @@ -403,14 +400,13 @@ func buildSyntheticsTestStruct(d *schema.ResourceData) *datadogV1.SyntheticsTest options.DeviceIds = &deviceIds } - syntheticsTest := datadogV1.SyntheticsTestDetails{ - Name: datadogV1.PtrString(d.Get("name").(string)), - Type: datadogV1.SyntheticsTestDetailsType(d.Get("type").(string)).Ptr(), - Config: &config, - Options: &options, - Message: datadogV1.PtrString(d.Get("message").(string)), - Status: datadogV1.SyntheticsTestPauseStatus(d.Get("status").(string)).Ptr(), - } + syntheticsTest := datadogV1.NewSyntheticsTestDetails() + syntheticsTest.SetName(d.Get("name").(string)) + syntheticsTest.SetType(datadogV1.SyntheticsTestDetailsType(d.Get("type").(string))) + syntheticsTest.SetConfig(*config) + syntheticsTest.SetOptions(*options) + syntheticsTest.SetMessage(d.Get("message").(string)) + syntheticsTest.SetStatus(datadogV1.SyntheticsTestPauseStatus(d.Get("status").(string))) if attr, ok := d.GetOk("locations"); ok { var locations []string @@ -437,7 +433,7 @@ func buildSyntheticsTestStruct(d *schema.ResourceData) *datadogV1.SyntheticsTest } } - return &syntheticsTest + return syntheticsTest } func updateSyntheticsTestLocalState(d *schema.ResourceData, syntheticsTest *datadogV1.SyntheticsTestDetails) { From 3cffafd88f9de82ba0b96633c9e06e714c90e3d2 Mon Sep 17 00:00:00 2001 From: Gregory Date: Mon, 11 May 2020 13:43:58 +0200 Subject: [PATCH 11/11] update cassettes and test --- ...TestAccDatadogSyntheticsAPITest_Basic.yaml | 142 +++++----- ...stAccDatadogSyntheticsAPITest_Updated.yaml | 250 +++++++++--------- ...cDatadogSyntheticsAPITest_importBasic.yaml | 156 +++++------ .../resource_datadog_synthetics_test_test.go | 2 - 4 files changed, 274 insertions(+), 276 deletions(-) diff --git a/datadog/cassettes/TestAccDatadogSyntheticsAPITest_Basic.yaml b/datadog/cassettes/TestAccDatadogSyntheticsAPITest_Basic.yaml index bd79ec200..ea65ce231 100644 --- a/datadog/cassettes/TestAccDatadogSyntheticsAPITest_Basic.yaml +++ b/datadog/cassettes/TestAccDatadogSyntheticsAPITest_Basic.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"config":{"assertions":[{"operator":"contains","property":"content-type","target":"application/json","type":"header"},{"operator":"is","target":200,"type":"statusCode"},{"operator":"lessThan","target":2000,"type":"responseTime"},{"operator":"doesNotContain","target":"terraform","type":"body"}],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"method":"GET","timeout":30,"url":"https://www.datadoghq.com"},"variables":[]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"name for synthetics test foo","options":{"allow_insecure":true,"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} + {"config":{"assertions":[{"operator":"contains","property":"content-type","target":"application/json","type":"header"},{"operator":"is","target":200,"type":"statusCode"},{"operator":"lessThan","target":2000,"type":"responseTime"},{"operator":"doesNotContain","target":"terraform","type":"body"}],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"method":"GET","timeout":30,"url":"https://www.datadoghq.com"},"variables":[]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"name for synthetics test foo","options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} form: {} headers: Accept: @@ -13,13 +13,13 @@ interactions: Dd-Operation-Id: - CreateTest User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + - datadog-api-client-go/1.0.0-beta.2 (go go1.13; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests method: POST response: - body: '{"status":"paused","public_id":"jup-fga-tdu","tags":["foo:bar","baz"],"org_id":242643,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","deleted_at":null,"name":"name for synthetics test foo","monitor_id":18206932,"type":"api","created_at":"2020-05-04T01:26:27.904063+00:00","modified_at":"2020-05-04T01:26:27.904063+00:00","subtype":"http","config":{"variables":[],"request":{"body":"this - is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"allow_insecure":true,"tick_every":60}}' + body: '{"status":"paused","public_id":"2fn-8gb-s2h","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","deleted_at":null,"name":"name for synthetics test foo","monitor_id":18378143,"type":"api","created_at":"2020-05-11T10:53:08.248682+00:00","modified_at":"2020-05-11T10:53:08.248682+00:00","subtype":"http","config":{"variables":[],"request":{"body":"this + is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -30,13 +30,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 04 May 2020 01:26:27 GMT + - Mon, 11 May 2020 10:53:08 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:27 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 18-May-2020 10:53:08 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -45,9 +45,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - mGJe6qmS66N9ddKWdHwHEzQK9VHuaMNr7+EsVTKliCkGq+ayJZmadUyCSwID4him + - xNK8D8E4U1PyLMVOdDgzcc4izX6UzMbP9Ygv1jJl/dgpKsJQ0NHsqPPadJ+IsqEV X-Dd-Version: - - "35.2457590" + - "35.2487444" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -57,7 +57,7 @@ interactions: X-Ratelimit-Remaining: - "119" X-Ratelimit-Reset: - - "33" + - "52" status: 200 OK code: 200 duration: "" @@ -70,15 +70,15 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/jup-fga-tdu + - datadog-api-client-go/1.0.0-beta.2 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/2fn-8gb-s2h method: GET response: - body: '{"status":"paused","public_id":"jup-fga-tdu","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"name for synthetics test foo","monitor_id":18206932,"type":"api","created_at":"2020-05-04T01:26:27.904063+00:00","modified_at":"2020-05-04T01:26:27.904063+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"subtype":"http","config":{"variables":[],"request":{"body":"this - is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"allow_insecure":true,"tick_every":60}}' + body: '{"status":"paused","public_id":"2fn-8gb-s2h","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"name":"name for synthetics test foo","monitor_id":18378143,"type":"api","created_at":"2020-05-11T10:53:08.248682+00:00","modified_at":"2020-05-11T10:53:08.248682+00:00","created_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"subtype":"http","config":{"variables":[],"request":{"body":"this is + a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -89,13 +89,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 04 May 2020 01:26:28 GMT + - Mon, 11 May 2020 10:53:08 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:27 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 18-May-2020 10:53:08 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -104,9 +104,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - eORbNuNjI+uNwQ5fL4WiSFLQTO+rx/Fd8RRk0TnSyEY4gQIkjrXIuJ1XAoOa+8yj + - ztq+F8HwxRthTKNo0l2MCEDK5uwvgQzF00nWu49lHsBM51hGZBm/pPILDqupy+Xd X-Dd-Version: - - "35.2457590" + - "35.2487444" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -116,7 +116,7 @@ interactions: X-Ratelimit-Remaining: - "999" X-Ratelimit-Reset: - - "32" + - "52" status: 200 OK code: 200 duration: "" @@ -129,15 +129,15 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/jup-fga-tdu + - datadog-api-client-go/1.0.0-beta.2 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/2fn-8gb-s2h method: GET response: - body: '{"status":"paused","public_id":"jup-fga-tdu","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"name for synthetics test foo","monitor_id":18206932,"type":"api","created_at":"2020-05-04T01:26:27.904063+00:00","modified_at":"2020-05-04T01:26:27.904063+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"subtype":"http","config":{"variables":[],"request":{"body":"this - is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"allow_insecure":true,"tick_every":60}}' + body: '{"status":"paused","public_id":"2fn-8gb-s2h","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"name":"name for synthetics test foo","monitor_id":18378143,"type":"api","created_at":"2020-05-11T10:53:08.248682+00:00","modified_at":"2020-05-11T10:53:08.248682+00:00","created_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"subtype":"http","config":{"variables":[],"request":{"body":"this is + a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -148,13 +148,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 04 May 2020 01:26:28 GMT + - Mon, 11 May 2020 10:53:08 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:28 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 18-May-2020 10:53:08 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -163,9 +163,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - Z91NUpPIZnIQ9h7lBFWBkEPGVUEsn4/i71imPPwrChu4RPI5uNM5HGuodISK1HBR + - GG9N5JNk6zUo5YQ1gmfpF0kYcSj/kjDOsFItaODUS7qQCwsMrhI3QWJVQns7uvtI X-Dd-Version: - - "35.2457590" + - "35.2487444" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -175,7 +175,7 @@ interactions: X-Ratelimit-Remaining: - "998" X-Ratelimit-Reset: - - "32" + - "52" status: 200 OK code: 200 duration: "" @@ -188,15 +188,15 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/jup-fga-tdu + - datadog-api-client-go/1.0.0-beta.2 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/2fn-8gb-s2h method: GET response: - body: '{"status":"paused","public_id":"jup-fga-tdu","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"name for synthetics test foo","monitor_id":18206932,"type":"api","created_at":"2020-05-04T01:26:27.904063+00:00","modified_at":"2020-05-04T01:26:27.904063+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"subtype":"http","config":{"variables":[],"request":{"body":"this - is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"allow_insecure":true,"tick_every":60}}' + body: '{"status":"paused","public_id":"2fn-8gb-s2h","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"name":"name for synthetics test foo","monitor_id":18378143,"type":"api","created_at":"2020-05-11T10:53:08.248682+00:00","modified_at":"2020-05-11T10:53:08.248682+00:00","created_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"subtype":"http","config":{"variables":[],"request":{"body":"this is + a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -207,13 +207,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 04 May 2020 01:26:28 GMT + - Mon, 11 May 2020 10:53:08 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:28 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 18-May-2020 10:53:08 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -222,9 +222,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - nSRgqrrNNmPPT6VSGZq0R9QdtdJF1qxzho2//eboP+tsIQDRgfSx3bSVb1t6QyYb + - hABsPq9DIvV7yAEiU7rMxs7UCRuTbRH/kYpwue4a0q9qmwd4SUh9bBZ5SHPkBLc6 X-Dd-Version: - - "35.2457590" + - "35.2487444" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -234,7 +234,7 @@ interactions: X-Ratelimit-Remaining: - "997" X-Ratelimit-Reset: - - "32" + - "52" status: 200 OK code: 200 duration: "" @@ -247,15 +247,15 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/jup-fga-tdu + - datadog-api-client-go/1.0.0-beta.2 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/2fn-8gb-s2h method: GET response: - body: '{"status":"paused","public_id":"jup-fga-tdu","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"name for synthetics test foo","monitor_id":18206932,"type":"api","created_at":"2020-05-04T01:26:27.904063+00:00","modified_at":"2020-05-04T01:26:27.904063+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"subtype":"http","overall_state_modified":"2020-05-04T01:26:28.380348+00:00","overall_state":2,"config":{"variables":[],"request":{"body":"this - is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"allow_insecure":true,"tick_every":60}}' + body: '{"status":"paused","public_id":"2fn-8gb-s2h","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"name":"name for synthetics test foo","monitor_id":18378143,"type":"api","created_at":"2020-05-11T10:53:08.248682+00:00","modified_at":"2020-05-11T10:53:08.248682+00:00","created_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"subtype":"http","config":{"variables":[],"request":{"body":"this is + a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -266,13 +266,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 04 May 2020 01:26:28 GMT + - Mon, 11 May 2020 10:53:09 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:28 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 18-May-2020 10:53:08 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -281,9 +281,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - nDs7oXQtOYsvIIpPzuNZX0qDgGBu3ENkec7da4phztYl7kD88B7t5enRlUQmZVgO + - ty7T8eIeXOfZhM7KDN5nGo8JS7ZSIWAqBNFeZshTg3LLDJJa7mPU5wqGt0nOPCpy X-Dd-Version: - - "35.2457590" + - "35.2487444" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -293,13 +293,13 @@ interactions: X-Ratelimit-Remaining: - "996" X-Ratelimit-Reset: - - "32" + - "52" status: 200 OK code: 200 duration: "" - request: body: | - {"public_ids":["jup-fga-tdu"]} + {"public_ids":["2fn-8gb-s2h"]} form: {} headers: Accept: @@ -309,11 +309,11 @@ interactions: Dd-Operation-Id: - DeleteTests User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + - datadog-api-client-go/1.0.0-beta.2 (go go1.13; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2020-05-04T01:26:28.482983+00:00","public_id":"jup-fga-tdu"}]}' + body: '{"deleted_tests":[{"deleted_at":"2020-05-11T10:53:09.229152+00:00","public_id":"2fn-8gb-s2h"}]}' headers: Cache-Control: - no-cache @@ -324,13 +324,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 04 May 2020 01:26:28 GMT + - Mon, 11 May 2020 10:53:09 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:28 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 18-May-2020 10:53:09 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -339,9 +339,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - x4pYHtiOW9rUeREgXmH2iIgBaXVGD7x1RIZUg56H0ghPppdtz0ZBEK6nMs8tuoqc + - rpB/2GMZHvzTHZxhwmnNa1XnSQuif7FV+gIndoDc8IvUeRNb65r4x+P7Djp1119C X-Dd-Version: - - "35.2457590" + - "35.2487444" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -351,7 +351,7 @@ interactions: X-Ratelimit-Remaining: - "119" X-Ratelimit-Reset: - - "32" + - "51" status: 200 OK code: 200 duration: "" @@ -364,8 +364,8 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/jup-fga-tdu + - datadog-api-client-go/1.0.0-beta.2 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/2fn-8gb-s2h method: GET response: body: '{"errors": ["Synthetics test not found"]}' @@ -379,7 +379,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 04 May 2020 01:26:28 GMT + - Mon, 11 May 2020 10:53:09 GMT Dd-Pool: - dogweb Pragma: @@ -391,7 +391,7 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.2457590" + - "35.2487444" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -401,7 +401,7 @@ interactions: X-Ratelimit-Remaining: - "995" X-Ratelimit-Reset: - - "32" + - "51" status: 404 Not Found code: 404 duration: "" diff --git a/datadog/cassettes/TestAccDatadogSyntheticsAPITest_Updated.yaml b/datadog/cassettes/TestAccDatadogSyntheticsAPITest_Updated.yaml index 5cb9e0be8..f6e9008f8 100644 --- a/datadog/cassettes/TestAccDatadogSyntheticsAPITest_Updated.yaml +++ b/datadog/cassettes/TestAccDatadogSyntheticsAPITest_Updated.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"config":{"assertions":[{"operator":"contains","property":"content-type","target":"application/json","type":"header"},{"operator":"is","target":200,"type":"statusCode"},{"operator":"lessThan","target":2000,"type":"responseTime"},{"operator":"doesNotContain","target":"terraform","type":"body"}],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"method":"GET","timeout":30,"url":"https://www.datadoghq.com"},"variables":[]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"name for synthetics test foo","options":{"allow_insecure":true,"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} + {"config":{"assertions":[{"operator":"contains","property":"content-type","target":"application/json","type":"header"},{"operator":"is","target":200,"type":"statusCode"},{"operator":"lessThan","target":2000,"type":"responseTime"},{"operator":"doesNotContain","target":"terraform","type":"body"}],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"method":"GET","timeout":30,"url":"https://www.datadoghq.com"},"variables":[]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"name for synthetics test foo","options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} form: {} headers: Accept: @@ -13,13 +13,13 @@ interactions: Dd-Operation-Id: - CreateTest User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + - datadog-api-client-go/1.0.0-beta.2 (go go1.13; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests method: POST response: - body: '{"status":"paused","public_id":"wm2-qpd-idg","tags":["foo:bar","baz"],"org_id":242643,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","deleted_at":null,"name":"name for synthetics test foo","monitor_id":18206933,"type":"api","created_at":"2020-05-04T01:26:28.922985+00:00","modified_at":"2020-05-04T01:26:28.922985+00:00","subtype":"http","config":{"variables":[],"request":{"body":"this - is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"allow_insecure":true,"tick_every":60}}' + body: '{"status":"paused","public_id":"xtp-fx6-nuh","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","deleted_at":null,"name":"name for synthetics test foo","monitor_id":18378144,"type":"api","created_at":"2020-05-11T10:53:09.798580+00:00","modified_at":"2020-05-11T10:53:09.798580+00:00","subtype":"http","config":{"variables":[],"request":{"body":"this + is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -30,13 +30,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 04 May 2020 01:26:28 GMT + - Mon, 11 May 2020 10:53:09 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:28 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 18-May-2020 10:53:09 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -45,9 +45,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - nDs7oXQtOYsvIIpPzuNZX0qDgGBu3ENkec7da4phztYl7kD88B7t5enRlUQmZVgO + - 11g4TM+MO8VJV6iUJTOff4hAGEXsIqbG4IMv2YuWygOleCGxCxx6NihCkVtjenZN X-Dd-Version: - - "35.2457590" + - "35.2487444" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -57,7 +57,7 @@ interactions: X-Ratelimit-Remaining: - "118" X-Ratelimit-Reset: - - "32" + - "51" status: 200 OK code: 200 duration: "" @@ -70,15 +70,15 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/wm2-qpd-idg + - datadog-api-client-go/1.0.0-beta.2 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/xtp-fx6-nuh method: GET response: - body: '{"status":"paused","public_id":"wm2-qpd-idg","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"name for synthetics test foo","monitor_id":18206933,"type":"api","created_at":"2020-05-04T01:26:28.922985+00:00","modified_at":"2020-05-04T01:26:28.922985+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"subtype":"http","config":{"variables":[],"request":{"body":"this - is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"allow_insecure":true,"tick_every":60}}' + body: '{"status":"paused","public_id":"xtp-fx6-nuh","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"name":"name for synthetics test foo","monitor_id":18378144,"type":"api","created_at":"2020-05-11T10:53:09.798580+00:00","modified_at":"2020-05-11T10:53:09.798580+00:00","created_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"subtype":"http","config":{"variables":[],"request":{"body":"this is + a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -89,13 +89,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 04 May 2020 01:26:29 GMT + - Mon, 11 May 2020 10:53:10 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:29 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 18-May-2020 10:53:10 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -104,9 +104,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - nDs7oXQtOYsvIIpPzuNZX0qDgGBu3ENkec7da4phztYl7kD88B7t5enRlUQmZVgO + - 562ySu37xnxKxbTr0NFd7oH3+L3JO3D7GcG/Lb1Dr0vgKuyocJBk1SrO7ogLRZuZ X-Dd-Version: - - "35.2457590" + - "35.2487444" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -116,7 +116,7 @@ interactions: X-Ratelimit-Remaining: - "994" X-Ratelimit-Reset: - - "31" + - "50" status: 200 OK code: 200 duration: "" @@ -129,15 +129,15 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/wm2-qpd-idg + - datadog-api-client-go/1.0.0-beta.2 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/xtp-fx6-nuh method: GET response: - body: '{"status":"paused","public_id":"wm2-qpd-idg","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"name for synthetics test foo","monitor_id":18206933,"type":"api","created_at":"2020-05-04T01:26:28.922985+00:00","modified_at":"2020-05-04T01:26:28.922985+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"subtype":"http","config":{"variables":[],"request":{"body":"this - is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"allow_insecure":true,"tick_every":60}}' + body: '{"status":"paused","public_id":"xtp-fx6-nuh","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"name":"name for synthetics test foo","monitor_id":18378144,"type":"api","created_at":"2020-05-11T10:53:09.798580+00:00","modified_at":"2020-05-11T10:53:09.798580+00:00","created_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"subtype":"http","overall_state_modified":"2020-05-11T10:53:10.696876+00:00","overall_state":2,"config":{"variables":[],"request":{"body":"this + is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -148,13 +148,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 04 May 2020 01:26:29 GMT + - Mon, 11 May 2020 10:53:10 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:29 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 18-May-2020 10:53:10 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -163,9 +163,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - j0VNx9cZdAj+uuO7pabHlao4Ioc5q8ovvp4Ja/NYzbHA51zSBYXNvtO+8cOYbE0B + - oiF9oLqSEnBWpAh9z89c+Ruy9xKAqrdZzQPjGsNOxlGQNWaw3sCTSoKaMkMdPunL X-Dd-Version: - - "35.2457590" + - "35.2487444" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -175,7 +175,7 @@ interactions: X-Ratelimit-Remaining: - "993" X-Ratelimit-Reset: - - "31" + - "50" status: 200 OK code: 200 duration: "" @@ -188,15 +188,15 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/wm2-qpd-idg + - datadog-api-client-go/1.0.0-beta.2 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/xtp-fx6-nuh method: GET response: - body: '{"status":"paused","public_id":"wm2-qpd-idg","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"name for synthetics test foo","monitor_id":18206933,"type":"api","created_at":"2020-05-04T01:26:28.922985+00:00","modified_at":"2020-05-04T01:26:28.922985+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"subtype":"http","config":{"variables":[],"request":{"body":"this - is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"allow_insecure":true,"tick_every":60}}' + body: '{"status":"paused","public_id":"xtp-fx6-nuh","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"name":"name for synthetics test foo","monitor_id":18378144,"type":"api","created_at":"2020-05-11T10:53:09.798580+00:00","modified_at":"2020-05-11T10:53:09.798580+00:00","created_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"subtype":"http","overall_state_modified":"2020-05-11T10:53:10.856964+00:00","overall_state":2,"config":{"variables":[],"request":{"body":"this + is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -207,13 +207,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 04 May 2020 01:26:29 GMT + - Mon, 11 May 2020 10:53:10 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:29 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 18-May-2020 10:53:10 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -222,9 +222,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - UmZMvwWLI5lgbGFBnw6J7jqO5hwyrvVF8Un8TwZ8TRQQ6jetE/6GVTSaoSUmQWRg + - 3GTZ6ImnvkiMOuKTP2ILv/2CbQJLb5wTjyX1KOTCD/aaxDS+HyYye1EH1uVK9Ajh X-Dd-Version: - - "35.2457590" + - "35.2487444" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -234,7 +234,7 @@ interactions: X-Ratelimit-Remaining: - "992" X-Ratelimit-Reset: - - "31" + - "50" status: 200 OK code: 200 duration: "" @@ -247,15 +247,15 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/wm2-qpd-idg + - datadog-api-client-go/1.0.0-beta.2 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/xtp-fx6-nuh method: GET response: - body: '{"status":"paused","public_id":"wm2-qpd-idg","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"name for synthetics test foo","monitor_id":18206933,"type":"api","created_at":"2020-05-04T01:26:28.922985+00:00","modified_at":"2020-05-04T01:26:28.922985+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"subtype":"http","config":{"variables":[],"request":{"body":"this - is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"allow_insecure":true,"tick_every":60}}' + body: '{"status":"paused","public_id":"xtp-fx6-nuh","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"name":"name for synthetics test foo","monitor_id":18378144,"type":"api","created_at":"2020-05-11T10:53:09.798580+00:00","modified_at":"2020-05-11T10:53:09.798580+00:00","created_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"subtype":"http","overall_state_modified":"2020-05-11T10:53:11.084079+00:00","overall_state":2,"config":{"variables":[],"request":{"body":"this + is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -266,13 +266,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 04 May 2020 01:26:29 GMT + - Mon, 11 May 2020 10:53:11 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:29 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 18-May-2020 10:53:11 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -281,9 +281,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - vG5kxpR47Wd0uZGIzWkStfMxs3cmVIjKYEHLQf0xQiHS0P2BwlwJHwTESUSKlcdO + - xuqj9hdWDkSD9EtpcqPe+eGtJAYYHPEMbUsHJUlu4ckBMffeXAIJAOyY354PYCG0 X-Dd-Version: - - "35.2457590" + - "35.2487444" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -293,13 +293,13 @@ interactions: X-Ratelimit-Remaining: - "991" X-Ratelimit-Reset: - - "31" + - "49" status: 200 OK code: 200 duration: "" - request: body: | - {"config":{"assertions":[{"operator":"isNot","target":500,"type":"statusCode"}],"request":{"method":"GET","timeout":60,"url":"https://docs.datadoghq.com"},"variables":[]},"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"updated name","options":{"allow_insecure":false,"follow_redirects":false,"min_failure_duration":10,"min_location_failed":1,"tick_every":900},"status":"live","subtype":"http","tags":["foo:bar","foo","env:test"],"type":"api"} + {"config":{"assertions":[{"operator":"isNot","target":500,"type":"statusCode"}],"request":{"method":"GET","timeout":60,"url":"https://docs.datadoghq.com"},"variables":[]},"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"updated name","options":{"follow_redirects":false,"min_failure_duration":10,"min_location_failed":1,"tick_every":900},"status":"live","subtype":"http","tags":["foo:bar","foo","env:test"],"type":"api"} form: {} headers: Accept: @@ -309,12 +309,12 @@ interactions: Dd-Operation-Id: - UpdateTest User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/wm2-qpd-idg + - datadog-api-client-go/1.0.0-beta.2 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/xtp-fx6-nuh method: PUT response: - body: '{"status":"live","public_id":"wm2-qpd-idg","tags":["foo:bar","foo","env:test"],"org_id":242643,"locations":["aws:eu-central-1"],"message":"Notify - @pagerduty","deleted_at":null,"name":"updated name","monitor_id":18206933,"type":"api","created_at":"2020-05-04T01:26:28.922985+00:00","modified_at":"2020-05-04T01:26:29.816720+00:00","subtype":"http","config":{"variables":[],"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}]},"options":{"follow_redirects":false,"min_failure_duration":10,"min_location_failed":1,"allow_insecure":false,"tick_every":900}}' + body: '{"status":"live","public_id":"xtp-fx6-nuh","tags":["foo:bar","foo","env:test"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify + @pagerduty","deleted_at":null,"name":"updated name","monitor_id":18378144,"type":"api","created_at":"2020-05-11T10:53:09.798580+00:00","modified_at":"2020-05-11T10:53:11.312709+00:00","subtype":"http","config":{"variables":[],"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}]},"options":{"follow_redirects":false,"min_failure_duration":10,"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -325,13 +325,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 04 May 2020 01:26:30 GMT + - Mon, 11 May 2020 10:53:11 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:29 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 18-May-2020 10:53:11 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -340,9 +340,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - rk3iIRyevtXsTLLTMsm8PoHrVjRY2UIgJwOnYxasATpPihgg0ps3VPSw7zz+6jrL + - aq7EAvMMXGdldXT5eVhOcqdveqp5VDY6MoO0A/xKTuSa7v4Cc6HWT9iWUnYD+m1F X-Dd-Version: - - "35.2457590" + - "35.2487444" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -352,7 +352,7 @@ interactions: X-Ratelimit-Remaining: - "499" X-Ratelimit-Reset: - - "31" + - "49" status: 200 OK code: 200 duration: "" @@ -365,14 +365,14 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/wm2-qpd-idg + - datadog-api-client-go/1.0.0-beta.2 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/xtp-fx6-nuh method: GET response: - body: '{"status":"live","public_id":"wm2-qpd-idg","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify - @pagerduty","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"updated name","monitor_id":18206933,"type":"api","created_at":"2020-05-04T01:26:28.922985+00:00","modified_at":"2020-05-04T01:26:29.816720+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"subtype":"http","config":{"variables":[],"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}]},"options":{"follow_redirects":false,"min_failure_duration":10,"min_location_failed":1,"allow_insecure":false,"tick_every":900}}' + body: '{"status":"live","public_id":"xtp-fx6-nuh","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify + @pagerduty","modified_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"name":"updated name","monitor_id":18378144,"type":"api","created_at":"2020-05-11T10:53:09.798580+00:00","modified_at":"2020-05-11T10:53:11.312709+00:00","created_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"subtype":"http","overall_state_modified":"2020-05-11T10:53:11.553002+00:00","overall_state":2,"config":{"variables":[],"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}]},"options":{"follow_redirects":false,"min_failure_duration":10,"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -383,13 +383,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 04 May 2020 01:26:30 GMT + - Mon, 11 May 2020 10:53:11 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:30 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 18-May-2020 10:53:11 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -398,9 +398,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - NclXS5F5t+kukUaODU4jY2oSI1KBdPHFdFhJZNfbXLWDOThxbCLlKKmYvikjdDSg + - skwclWwYkKW38qisoeAm0+G71HHbXaQZSRP+zaGh2pZ7dRVTlLXlAp6DZVg5jg4x X-Dd-Version: - - "35.2457590" + - "35.2487444" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -410,7 +410,7 @@ interactions: X-Ratelimit-Remaining: - "990" X-Ratelimit-Reset: - - "30" + - "49" status: 200 OK code: 200 duration: "" @@ -423,14 +423,14 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/wm2-qpd-idg + - datadog-api-client-go/1.0.0-beta.2 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/xtp-fx6-nuh method: GET response: - body: '{"status":"live","public_id":"wm2-qpd-idg","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify - @pagerduty","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"updated name","monitor_id":18206933,"type":"api","created_at":"2020-05-04T01:26:28.922985+00:00","modified_at":"2020-05-04T01:26:29.816720+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"subtype":"http","overall_state_modified":"2020-05-04T01:26:30.315263+00:00","overall_state":2,"config":{"variables":[],"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}]},"options":{"follow_redirects":false,"min_failure_duration":10,"min_location_failed":1,"allow_insecure":false,"tick_every":900}}' + body: '{"status":"live","public_id":"xtp-fx6-nuh","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify + @pagerduty","modified_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"name":"updated name","monitor_id":18378144,"type":"api","created_at":"2020-05-11T10:53:09.798580+00:00","modified_at":"2020-05-11T10:53:11.312709+00:00","created_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"subtype":"http","overall_state_modified":"2020-05-11T10:53:11.718318+00:00","overall_state":2,"config":{"variables":[],"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}]},"options":{"follow_redirects":false,"min_failure_duration":10,"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -441,13 +441,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 04 May 2020 01:26:30 GMT + - Mon, 11 May 2020 10:53:11 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:30 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 18-May-2020 10:53:11 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -456,9 +456,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - yEcEaKqmSUfeSlQ/kN/c5E6EpIXbM1JPI9KV27pdsvBWWv3FI4tsqqRarYTS+fS+ + - 3OCRM/4FZbkllI4iloi1acHDABD1SJi2aj2fysEPLLsOVOk5Ki6mi6IOsVG7JIay X-Dd-Version: - - "35.2457590" + - "35.2487444" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -468,7 +468,7 @@ interactions: X-Ratelimit-Remaining: - "989" X-Ratelimit-Reset: - - "30" + - "49" status: 200 OK code: 200 duration: "" @@ -481,14 +481,14 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/wm2-qpd-idg + - datadog-api-client-go/1.0.0-beta.2 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/xtp-fx6-nuh method: GET response: - body: '{"status":"live","public_id":"wm2-qpd-idg","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify - @pagerduty","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"updated name","monitor_id":18206933,"type":"api","created_at":"2020-05-04T01:26:28.922985+00:00","modified_at":"2020-05-04T01:26:29.816720+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"subtype":"http","overall_state_modified":"2020-05-04T01:26:30.414191+00:00","overall_state":2,"config":{"variables":[],"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}]},"options":{"follow_redirects":false,"min_failure_duration":10,"min_location_failed":1,"allow_insecure":false,"tick_every":900}}' + body: '{"status":"live","public_id":"xtp-fx6-nuh","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify + @pagerduty","modified_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"name":"updated name","monitor_id":18378144,"type":"api","created_at":"2020-05-11T10:53:09.798580+00:00","modified_at":"2020-05-11T10:53:11.312709+00:00","created_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"subtype":"http","overall_state_modified":"2020-05-11T10:53:11.898912+00:00","overall_state":2,"config":{"variables":[],"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}]},"options":{"follow_redirects":false,"min_failure_duration":10,"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -499,13 +499,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 04 May 2020 01:26:30 GMT + - Mon, 11 May 2020 10:53:11 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:30 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 18-May-2020 10:53:11 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -514,9 +514,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - YNGrI7M9aLfuf6Npp7n/51e6xDtYCO9Rm/LB+HGbX4I6A/e7rnC+cgQxIZnsU+fj + - vYQu3ls2HKdZ2pXErBiwg/FlJyuK31hjiI+oJSqoEPPw/7mzimb2FzvWEsshbznY X-Dd-Version: - - "35.2457590" + - "35.2487444" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -526,7 +526,7 @@ interactions: X-Ratelimit-Remaining: - "988" X-Ratelimit-Reset: - - "30" + - "49" status: 200 OK code: 200 duration: "" @@ -539,14 +539,14 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/wm2-qpd-idg + - datadog-api-client-go/1.0.0-beta.2 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/xtp-fx6-nuh method: GET response: - body: '{"status":"live","public_id":"wm2-qpd-idg","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify - @pagerduty","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"updated name","monitor_id":18206933,"type":"api","created_at":"2020-05-04T01:26:28.922985+00:00","modified_at":"2020-05-04T01:26:29.816720+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"subtype":"http","overall_state_modified":"2020-05-04T01:26:30.557829+00:00","overall_state":2,"config":{"variables":[],"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}]},"options":{"follow_redirects":false,"min_failure_duration":10,"min_location_failed":1,"allow_insecure":false,"tick_every":900}}' + body: '{"status":"live","public_id":"xtp-fx6-nuh","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify + @pagerduty","modified_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"name":"updated name","monitor_id":18378144,"type":"api","created_at":"2020-05-11T10:53:09.798580+00:00","modified_at":"2020-05-11T10:53:11.312709+00:00","created_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"subtype":"http","overall_state_modified":"2020-05-11T10:53:12.086461+00:00","overall_state":2,"config":{"variables":[],"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}]},"options":{"follow_redirects":false,"min_failure_duration":10,"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -557,13 +557,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 04 May 2020 01:26:30 GMT + - Mon, 11 May 2020 10:53:12 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:30 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 18-May-2020 10:53:12 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -572,9 +572,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - hABsPq9DIvV7yAEiU7rMxs7UCRuTbRH/kYpwue4a0q9qmwd4SUh9bBZ5SHPkBLc6 + - EE74ncTR989SomsonUvABJWdGDkXBs7Emqj3HVDpp6NYddpvHp95kXsnHux1Es9E X-Dd-Version: - - "35.2457590" + - "35.2487444" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -584,13 +584,13 @@ interactions: X-Ratelimit-Remaining: - "987" X-Ratelimit-Reset: - - "30" + - "48" status: 200 OK code: 200 duration: "" - request: body: | - {"public_ids":["wm2-qpd-idg"]} + {"public_ids":["xtp-fx6-nuh"]} form: {} headers: Accept: @@ -600,11 +600,11 @@ interactions: Dd-Operation-Id: - DeleteTests User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + - datadog-api-client-go/1.0.0-beta.2 (go go1.13; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2020-05-04T01:26:30.668598+00:00","public_id":"wm2-qpd-idg"}]}' + body: '{"deleted_tests":[{"deleted_at":"2020-05-11T10:53:12.264290+00:00","public_id":"xtp-fx6-nuh"}]}' headers: Cache-Control: - no-cache @@ -615,13 +615,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 04 May 2020 01:26:30 GMT + - Mon, 11 May 2020 10:53:12 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:30 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 18-May-2020 10:53:12 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -630,9 +630,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 0pmBjL5vG2A5IkxC4OBtwgn929khTZGgUquRW20JC77zchR4jTrHgra/pB22jP66 + - vwiIwb5QepaQFIQrmPfIwwVWkQ/z0inFQwNEDjqDDy4v3CsF5qbv9dnyfb7UGzLf X-Dd-Version: - - "35.2457590" + - "35.2487444" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -642,7 +642,7 @@ interactions: X-Ratelimit-Remaining: - "118" X-Ratelimit-Reset: - - "30" + - "48" status: 200 OK code: 200 duration: "" @@ -655,8 +655,8 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/wm2-qpd-idg + - datadog-api-client-go/1.0.0-beta.2 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/xtp-fx6-nuh method: GET response: body: '{"errors": ["Synthetics test not found"]}' @@ -670,7 +670,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 04 May 2020 01:26:30 GMT + - Mon, 11 May 2020 10:53:12 GMT Dd-Pool: - dogweb Pragma: @@ -682,7 +682,7 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.2457590" + - "35.2487444" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -692,7 +692,7 @@ interactions: X-Ratelimit-Remaining: - "986" X-Ratelimit-Reset: - - "30" + - "48" status: 404 Not Found code: 404 duration: "" diff --git a/datadog/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.yaml b/datadog/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.yaml index 2e3f62a4d..59cd622c9 100644 --- a/datadog/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.yaml +++ b/datadog/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"config":{"assertions":[{"operator":"contains","property":"content-type","target":"application/json","type":"header"},{"operator":"is","target":200,"type":"statusCode"},{"operator":"lessThan","target":2000,"type":"responseTime"},{"operator":"doesNotContain","target":"terraform","type":"body"}],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"method":"GET","timeout":30,"url":"https://www.datadoghq.com"},"variables":[]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"name for synthetics test foo","options":{"allow_insecure":true,"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} + {"config":{"assertions":[{"operator":"contains","property":"content-type","target":"application/json","type":"header"},{"operator":"is","target":200,"type":"statusCode"},{"operator":"lessThan","target":2000,"type":"responseTime"},{"operator":"doesNotContain","target":"terraform","type":"body"}],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"method":"GET","timeout":30,"url":"https://www.datadoghq.com"},"variables":[]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"name for synthetics test foo","options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} form: {} headers: Accept: @@ -13,13 +13,13 @@ interactions: Dd-Operation-Id: - CreateTest User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + - datadog-api-client-go/1.0.0-beta.2 (go go1.13; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests method: POST response: - body: '{"status":"paused","public_id":"9y5-z69-iqe","tags":["foo:bar","baz"],"org_id":242643,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","deleted_at":null,"name":"name for synthetics test foo","monitor_id":18206939,"type":"api","created_at":"2020-05-04T01:26:37.585869+00:00","modified_at":"2020-05-04T01:26:37.585869+00:00","subtype":"http","config":{"variables":[],"request":{"body":"this - is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"allow_insecure":true,"tick_every":60}}' + body: '{"status":"paused","public_id":"ena-zps-3j3","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","deleted_at":null,"name":"name for synthetics test foo","monitor_id":18378146,"type":"api","created_at":"2020-05-11T10:53:14.959162+00:00","modified_at":"2020-05-11T10:53:14.959162+00:00","subtype":"http","config":{"variables":[],"request":{"body":"this + is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -30,13 +30,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 04 May 2020 01:26:37 GMT + - Mon, 11 May 2020 10:53:15 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:37 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 18-May-2020 10:53:14 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -45,9 +45,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - xWBl6EQ7zJ83bRwMRX5o/d34f1JMs+KyihhH9fua7krbgQkOsGFusXhvqkH02q3L + - ADT0ms9dQnbDHbbduv4c09ChngZrYY7A/Pgms/qacMOruS4mPwZ1GJWq74I7G11W X-Dd-Version: - - "35.2457590" + - "35.2487444" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -55,9 +55,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "112" + - "117" X-Ratelimit-Reset: - - "23" + - "46" status: 200 OK code: 200 duration: "" @@ -70,15 +70,15 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/9y5-z69-iqe + - datadog-api-client-go/1.0.0-beta.2 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/ena-zps-3j3 method: GET response: - body: '{"status":"paused","public_id":"9y5-z69-iqe","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"name for synthetics test foo","monitor_id":18206939,"type":"api","created_at":"2020-05-04T01:26:37.585869+00:00","modified_at":"2020-05-04T01:26:37.585869+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"subtype":"http","config":{"variables":[],"request":{"body":"this - is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"allow_insecure":true,"tick_every":60}}' + body: '{"status":"paused","public_id":"ena-zps-3j3","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"name":"name for synthetics test foo","monitor_id":18378146,"type":"api","created_at":"2020-05-11T10:53:14.959162+00:00","modified_at":"2020-05-11T10:53:14.959162+00:00","created_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"subtype":"http","config":{"variables":[],"request":{"body":"this is + a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -89,13 +89,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 04 May 2020 01:26:37 GMT + - Mon, 11 May 2020 10:53:15 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:37 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 18-May-2020 10:53:15 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -104,9 +104,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - BsieYxalcMaIS+cTbK9YL1FxnAIiDF/6CFe3/lefzTTUruWB5XaSb08KP3lTATlu + - Jhz2Lh32XBCZ7PVSj7/lof8hXjgbtiexG4VIRWAEYHPFefqyYpXnVaeT62yBncrB X-Dd-Version: - - "35.2457590" + - "35.2487444" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -114,9 +114,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "955" + - "985" X-Ratelimit-Reset: - - "23" + - "45" status: 200 OK code: 200 duration: "" @@ -129,15 +129,15 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/9y5-z69-iqe + - datadog-api-client-go/1.0.0-beta.2 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/ena-zps-3j3 method: GET response: - body: '{"status":"paused","public_id":"9y5-z69-iqe","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"name for synthetics test foo","monitor_id":18206939,"type":"api","created_at":"2020-05-04T01:26:37.585869+00:00","modified_at":"2020-05-04T01:26:37.585869+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"subtype":"http","config":{"variables":[],"request":{"body":"this - is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"allow_insecure":true,"tick_every":60}}' + body: '{"status":"paused","public_id":"ena-zps-3j3","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"name":"name for synthetics test foo","monitor_id":18378146,"type":"api","created_at":"2020-05-11T10:53:14.959162+00:00","modified_at":"2020-05-11T10:53:14.959162+00:00","created_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"subtype":"http","config":{"variables":[],"request":{"body":"this is + a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -148,13 +148,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 04 May 2020 01:26:37 GMT + - Mon, 11 May 2020 10:53:15 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:37 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 18-May-2020 10:53:15 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -163,9 +163,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - mGJe6qmS66N9ddKWdHwHEzQK9VHuaMNr7+EsVTKliCkGq+ayJZmadUyCSwID4him + - bZImwKnIO3sUAXCuyRs9fWaEMDsBOTeSFh5dFNajdvBKpGDGzy05mj4PBPSf18hx X-Dd-Version: - - "35.2457590" + - "35.2487444" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -173,9 +173,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "953" + - "984" X-Ratelimit-Reset: - - "23" + - "45" status: 200 OK code: 200 duration: "" @@ -188,15 +188,15 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/9y5-z69-iqe + - datadog-api-client-go/1.0.0-beta.2 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/ena-zps-3j3 method: GET response: - body: '{"status":"paused","public_id":"9y5-z69-iqe","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"name for synthetics test foo","monitor_id":18206939,"type":"api","created_at":"2020-05-04T01:26:37.585869+00:00","modified_at":"2020-05-04T01:26:37.585869+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"subtype":"http","config":{"variables":[],"request":{"body":"this - is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"allow_insecure":true,"tick_every":60}}' + body: '{"status":"paused","public_id":"ena-zps-3j3","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"name":"name for synthetics test foo","monitor_id":18378146,"type":"api","created_at":"2020-05-11T10:53:14.959162+00:00","modified_at":"2020-05-11T10:53:14.959162+00:00","created_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"subtype":"http","config":{"variables":[],"request":{"body":"this is + a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -207,13 +207,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 04 May 2020 01:26:37 GMT + - Mon, 11 May 2020 10:53:15 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:37 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 18-May-2020 10:53:15 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -222,9 +222,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - qA85Kiicwd/s93AfT3MSf+l6IYc5FQ6tEbp4Kft/ri41UOumJ967MPQKmz3gwejd + - DAk/CQntZmry+u4cYsuVOELuKFo1I3NzKRNwPlY9WvlbH+rffk5VylB8tKDaSRWP X-Dd-Version: - - "35.2457590" + - "35.2487444" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -232,9 +232,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "950" + - "983" X-Ratelimit-Reset: - - "23" + - "45" status: 200 OK code: 200 duration: "" @@ -247,15 +247,15 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/9y5-z69-iqe + - datadog-api-client-go/1.0.0-beta.2 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/ena-zps-3j3 method: GET response: - body: '{"status":"paused","public_id":"9y5-z69-iqe","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"name":"name for synthetics test foo","monitor_id":18206939,"type":"api","created_at":"2020-05-04T01:26:37.585869+00:00","modified_at":"2020-05-04T01:26:37.585869+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod - Karimov"},"subtype":"http","config":{"variables":[],"request":{"body":"this - is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"allow_insecure":true,"tick_every":60}}' + body: '{"status":"paused","public_id":"ena-zps-3j3","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"name":"name for synthetics test foo","monitor_id":18378146,"type":"api","created_at":"2020-05-11T10:53:14.959162+00:00","modified_at":"2020-05-11T10:53:14.959162+00:00","created_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"subtype":"http","config":{"variables":[],"request":{"body":"this is + a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -266,13 +266,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 04 May 2020 01:26:38 GMT + - Mon, 11 May 2020 10:53:15 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:38 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 18-May-2020 10:53:15 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -281,9 +281,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - GG9N5JNk6zUo5YQ1gmfpF0kYcSj/kjDOsFItaODUS7qQCwsMrhI3QWJVQns7uvtI + - 3OCRM/4FZbkllI4iloi1acHDABD1SJi2aj2fysEPLLsOVOk5Ki6mi6IOsVG7JIay X-Dd-Version: - - "35.2457590" + - "35.2487444" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -291,15 +291,15 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "948" + - "982" X-Ratelimit-Reset: - - "22" + - "45" status: 200 OK code: 200 duration: "" - request: body: | - {"public_ids":["9y5-z69-iqe"]} + {"public_ids":["ena-zps-3j3"]} form: {} headers: Accept: @@ -309,11 +309,11 @@ interactions: Dd-Operation-Id: - DeleteTests User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + - datadog-api-client-go/1.0.0-beta.2 (go go1.13; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2020-05-04T01:26:38.153260+00:00","public_id":"9y5-z69-iqe"}]}' + body: '{"deleted_tests":[{"deleted_at":"2020-05-11T10:53:15.930963+00:00","public_id":"ena-zps-3j3"}]}' headers: Cache-Control: - no-cache @@ -324,13 +324,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 04 May 2020 01:26:38 GMT + - Mon, 11 May 2020 10:53:16 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:38 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 18-May-2020 10:53:15 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -339,9 +339,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - nwn8Akm+cp12Jtby9xyfYjHWK2KZDWf5LxY+SMa+2NK6hVIBcKsVHXjynaTEG+o0 + - og1WGdy+2nV+rkkclmd3Cf2I26XhV3/6yjBeQCP8aHbH2k2cKwC+X9WmhIghcJ94 X-Dd-Version: - - "35.2457590" + - "35.2487444" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -349,9 +349,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "112" + - "117" X-Ratelimit-Reset: - - "22" + - "45" status: 200 OK code: 200 duration: "" @@ -364,8 +364,8 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/9y5-z69-iqe + - datadog-api-client-go/1.0.0-beta.2 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/ena-zps-3j3 method: GET response: body: '{"errors": ["Synthetics test not found"]}' @@ -379,7 +379,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 04 May 2020 01:26:38 GMT + - Mon, 11 May 2020 10:53:16 GMT Dd-Pool: - dogweb Pragma: @@ -391,7 +391,7 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.2457590" + - "35.2487444" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -399,9 +399,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "944" + - "981" X-Ratelimit-Reset: - - "22" + - "44" status: 404 Not Found code: 404 duration: "" diff --git a/datadog/resource_datadog_synthetics_test_test.go b/datadog/resource_datadog_synthetics_test_test.go index 0d2de122a..d0de2aae2 100644 --- a/datadog/resource_datadog_synthetics_test_test.go +++ b/datadog/resource_datadog_synthetics_test_test.go @@ -286,7 +286,6 @@ resource "datadog_synthetics_test" "foo" { follow_redirects = true min_failure_duration = 0 min_location_failed = 1 - allow_insecure = true } name = "name for synthetics test foo" @@ -378,7 +377,6 @@ resource "datadog_synthetics_test" "foo" { follow_redirects = false min_failure_duration = 10 min_location_failed = 1 - allow_insecure = false } name = "updated name"