From a74730f31be2347ba2b38ef56a487e487eddf402 Mon Sep 17 00:00:00 2001 From: Rajat Bajaj Date: Wed, 27 Nov 2024 19:34:00 +0530 Subject: [PATCH] Add isPriority parameter to Log Streams (#467) --- management/log_stream.go | 3 ++ management/log_stream_test.go | 35 +++++++++++------- management/management.gen.go | 8 ++++ management/management.gen_test.go | 10 +++++ ..._create_a_AmazonEventBridge_LogStream.yaml | 16 ++++---- ...ccessfully_create_a_DataDog_LogStream.yaml | 16 ++++---- ..._successfully_create_a_HTTP_LogStream.yaml | 16 ++++---- ...cessfully_create_a_Mixpanel_LogStream.yaml | 16 ++++---- ...ccessfully_create_a_Segment_LogStream.yaml | 16 ++++---- ...uccessfully_create_a_Splunk_LogStream.yaml | 16 ++++---- ..._successfully_create_a_Sumo_LogStream.yaml | 16 ++++---- ..._delete_a_AmazonEventBridge_LogStream.yaml | 33 ++++++++--------- ...ccessfully_delete_a_DataDog_LogStream.yaml | 33 ++++++++--------- ..._successfully_delete_a_HTTP_LogStream.yaml | 33 ++++++++--------- ...cessfully_delete_a_Mixpanel_LogStream.yaml | 33 ++++++++--------- ...ccessfully_delete_a_Segment_LogStream.yaml | 33 ++++++++--------- ...uccessfully_delete_a_Splunk_LogStream.yaml | 33 ++++++++--------- ..._successfully_delete_a_Sumo_LogStream.yaml | 33 ++++++++--------- .../recordings/TestLogStreamManager_List.yaml | 15 ++++---- ...ly_read_a_AmazonEventBridge_LogStream.yaml | 29 +++++++-------- ...successfully_read_a_DataDog_LogStream.yaml | 29 +++++++-------- ...an_successfully_read_a_HTTP_LogStream.yaml | 29 +++++++-------- ...uccessfully_read_a_Mixpanel_LogStream.yaml | 29 +++++++-------- ...successfully_read_a_Segment_LogStream.yaml | 29 +++++++-------- ..._successfully_read_a_Splunk_LogStream.yaml | 29 +++++++-------- ...an_successfully_read_a_Sumo_LogStream.yaml | 29 +++++++-------- ..._update_a_AmazonEventBridge_LogStream.yaml | 37 +++++++++---------- ...ccessfully_update_a_DataDog_LogStream.yaml | 37 +++++++++---------- ..._successfully_update_a_HTTP_LogStream.yaml | 37 +++++++++---------- ...cessfully_update_a_Mixpanel_LogStream.yaml | 37 +++++++++---------- ...ccessfully_update_a_Segment_LogStream.yaml | 37 +++++++++---------- ...uccessfully_update_a_Splunk_LogStream.yaml | 37 +++++++++---------- ..._successfully_update_a_Sumo_LogStream.yaml | 37 +++++++++---------- 33 files changed, 441 insertions(+), 435 deletions(-) diff --git a/management/log_stream.go b/management/log_stream.go index 48490fb0..55b4f2dc 100644 --- a/management/log_stream.go +++ b/management/log_stream.go @@ -40,6 +40,9 @@ type LogStream struct { // "eventgrid", "datadog", "splunk", "sumo", "mixpanel", "segment. Type *string `json:"type,omitempty"` + // True for priority log streams, false for non-priority + IsPriority *bool `json:"isPriority,omitempty"` + // The status of the log-stream. Can be one of "active", "paused", or "suspended". Status *string `json:"status,omitempty"` diff --git a/management/log_stream_test.go b/management/log_stream_test.go index c7497c46..8e7908f0 100644 --- a/management/log_stream_test.go +++ b/management/log_stream_test.go @@ -16,8 +16,9 @@ var logStreamTestCases = []logStreamTestCase{ { name: "AmazonEventBridge LogStream", logStream: LogStream{ - Name: auth0.Stringf("Test-LogStream-%d", time.Now().Unix()), - Type: auth0.String(LogStreamTypeAmazonEventBridge), + Name: auth0.Stringf("Test-LogStream-%d", time.Now().Unix()), + Type: auth0.String(LogStreamTypeAmazonEventBridge), + IsPriority: auth0.Bool(true), Sink: &LogStreamSinkAmazonEventBridge{ AccountID: auth0.String("999999999999"), Region: auth0.String("us-west-2"), @@ -39,8 +40,9 @@ var logStreamTestCases = []logStreamTestCase{ { name: "HTTP LogStream", logStream: LogStream{ - Name: auth0.Stringf("Test-LogStream-%d", time.Now().Unix()), - Type: auth0.String(LogStreamTypeHTTP), + Name: auth0.Stringf("Test-LogStream-%d", time.Now().Unix()), + Type: auth0.String(LogStreamTypeHTTP), + IsPriority: auth0.Bool(false), Sink: &LogStreamSinkHTTP{ Endpoint: auth0.String("https://example.com/logs"), Authorization: auth0.String("Bearer f2368bbe77074527a37be2fdd5b92bad"), @@ -52,8 +54,9 @@ var logStreamTestCases = []logStreamTestCase{ { name: "DataDog LogStream", logStream: LogStream{ - Name: auth0.Stringf("Test-LogStream-%d", time.Now().Unix()), - Type: auth0.String(LogStreamTypeDatadog), + Name: auth0.Stringf("Test-LogStream-%d", time.Now().Unix()), + Type: auth0.String(LogStreamTypeDatadog), + IsPriority: auth0.Bool(true), Sink: &LogStreamSinkDatadog{ APIKey: auth0.String("121233123455"), Region: auth0.String("us"), @@ -63,8 +66,9 @@ var logStreamTestCases = []logStreamTestCase{ { name: "Segment LogStream", logStream: LogStream{ - Name: auth0.Stringf("Test-LogStream-%d", time.Now().Unix()), - Type: auth0.String(LogStreamTypeSegment), + Name: auth0.Stringf("Test-LogStream-%d", time.Now().Unix()), + Type: auth0.String(LogStreamTypeSegment), + IsPriority: auth0.Bool(true), Sink: &LogStreamSinkSegment{ WriteKey: auth0.String("121233123455"), }, @@ -73,8 +77,9 @@ var logStreamTestCases = []logStreamTestCase{ { name: "Splunk LogStream", logStream: LogStream{ - Name: auth0.Stringf("Test-LogStream-%d", time.Now().Unix()), - Type: auth0.String(LogStreamTypeSplunk), + Name: auth0.Stringf("Test-LogStream-%d", time.Now().Unix()), + Type: auth0.String(LogStreamTypeSplunk), + IsPriority: auth0.Bool(true), Sink: &LogStreamSinkSplunk{ Domain: auth0.String("demo.splunk.com"), Port: auth0.String("8080"), @@ -86,8 +91,9 @@ var logStreamTestCases = []logStreamTestCase{ { name: "Sumo LogStream", logStream: LogStream{ - Name: auth0.Stringf("Test-LogStream-%d", time.Now().Unix()), - Type: auth0.String(LogStreamTypeSumo), + Name: auth0.Stringf("Test-LogStream-%d", time.Now().Unix()), + Type: auth0.String(LogStreamTypeSumo), + IsPriority: auth0.Bool(true), Sink: &LogStreamSinkSumo{ SourceAddress: auth0.String("https://example.com"), }, @@ -96,8 +102,9 @@ var logStreamTestCases = []logStreamTestCase{ { name: "Mixpanel LogStream", logStream: LogStream{ - Name: auth0.Stringf("Test-LogStream-%d", time.Now().Unix()), - Type: auth0.String(LogStreamTypeMixpanel), + Name: auth0.Stringf("Test-LogStream-%d", time.Now().Unix()), + Type: auth0.String(LogStreamTypeMixpanel), + IsPriority: auth0.Bool(false), Sink: &LogStreamSinkMixpanel{ Region: auth0.String("us"), ProjectID: auth0.String("123456789"), diff --git a/management/management.gen.go b/management/management.gen.go index ba3231ec..965e1274 100644 --- a/management/management.gen.go +++ b/management/management.gen.go @@ -7857,6 +7857,14 @@ func (l *LogStream) GetID() string { return *l.ID } +// GetIsPriority returns the IsPriority field if it's non-nil, zero value otherwise. +func (l *LogStream) GetIsPriority() bool { + if l == nil || l.IsPriority == nil { + return false + } + return *l.IsPriority +} + // GetName returns the Name field if it's non-nil, zero value otherwise. func (l *LogStream) GetName() string { if l == nil || l.Name == nil { diff --git a/management/management.gen_test.go b/management/management.gen_test.go index 94d79d2e..af599f53 100644 --- a/management/management.gen_test.go +++ b/management/management.gen_test.go @@ -9795,6 +9795,16 @@ func TestLogStream_GetID(tt *testing.T) { l.GetID() } +func TestLogStream_GetIsPriority(tt *testing.T) { + var zeroValue bool + l := &LogStream{IsPriority: &zeroValue} + l.GetIsPriority() + l = &LogStream{} + l.GetIsPriority() + l = nil + l.GetIsPriority() +} + func TestLogStream_GetName(tt *testing.T) { var zeroValue string l := &LogStream{Name: &zeroValue} diff --git a/test/data/recordings/TestLogStreamManager_Create/It_can_successfully_create_a_AmazonEventBridge_LogStream.yaml b/test/data/recordings/TestLogStreamManager_Create/It_can_successfully_create_a_AmazonEventBridge_LogStream.yaml index 54b594f2..ecca1062 100644 --- a/test/data/recordings/TestLogStreamManager_Create/It_can_successfully_create_a_AmazonEventBridge_LogStream.yaml +++ b/test/data/recordings/TestLogStreamManager_Create/It_can_successfully_create_a_AmazonEventBridge_LogStream.yaml @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 121 + content_length: 139 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Test-LogStream-1674668511","type":"eventbridge","sink":{"awsAccountId":"999999999999","awsRegion":"us-west-2"}} + {"name":"Test-LogStream-1732609495","type":"eventbridge","isPriority":true,"sink":{"awsAccountId":"999999999999","awsRegion":"us-west-2"}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.11.2 url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000011620","name":"Test-LogStream-1674668511","type":"eventbridge","status":"active","sink":{"awsAccountId":"999999999999","awsRegion":"us-west-2","awsPartnerEventSource":"aws.partner/auth0.com/go-auth0-dev.eu.auth0.com-ad17dd8c-ece0-4f9e-983f-798b38768005/auth0.logs"}}' + body: '{"id":"lst_0000000000002059","name":"Test-LogStream-1732609495","type":"eventbridge","status":"active","sink":{"awsAccountId":"999999999999","awsRegion":"us-west-2","awsPartnerEventSource":"aws.partner/auth0.com/go-auth0-dev.eu.auth0.com-879cfb72-351f-4e66-82a7-2b570ce6e963/auth0.logs"},"filters":[{"type":"category","name":"security"}],"isPriority":true}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 846.665417ms + duration: 1.388066916s - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011620 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002059 method: DELETE response: proto: HTTP/2.0 @@ -71,4 +71,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 762.066916ms + duration: 446.801125ms diff --git a/test/data/recordings/TestLogStreamManager_Create/It_can_successfully_create_a_DataDog_LogStream.yaml b/test/data/recordings/TestLogStreamManager_Create/It_can_successfully_create_a_DataDog_LogStream.yaml index 9bfdb2af..77fba6c5 100644 --- a/test/data/recordings/TestLogStreamManager_Create/It_can_successfully_create_a_DataDog_LogStream.yaml +++ b/test/data/recordings/TestLogStreamManager_Create/It_can_successfully_create_a_DataDog_LogStream.yaml @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 115 + content_length: 133 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Test-LogStream-1674668511","type":"datadog","sink":{"datadogRegion":"us","datadogApiKey":"121233123455"}} + {"name":"Test-LogStream-1732609495","type":"datadog","isPriority":true,"sink":{"datadogRegion":"us","datadogApiKey":"121233123455"}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.11.2 url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000011622","name":"Test-LogStream-1674668511","type":"datadog","status":"active","sink":{"datadogApiKey":"121233123455","datadogRegion":"us"}}' + body: '{"id":"lst_0000000000002061","name":"Test-LogStream-1732609495","type":"datadog","status":"active","sink":{"datadogApiKey":"121233123455","datadogRegion":"us"},"filters":[{"type":"category","name":"security"}],"isPriority":true}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 132.212416ms + duration: 417.121583ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011622 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002061 method: DELETE response: proto: HTTP/2.0 @@ -71,4 +71,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 100.031167ms + duration: 384.841708ms diff --git a/test/data/recordings/TestLogStreamManager_Create/It_can_successfully_create_a_HTTP_LogStream.yaml b/test/data/recordings/TestLogStreamManager_Create/It_can_successfully_create_a_HTTP_LogStream.yaml index 853ea59a..5b4d7706 100644 --- a/test/data/recordings/TestLogStreamManager_Create/It_can_successfully_create_a_HTTP_LogStream.yaml +++ b/test/data/recordings/TestLogStreamManager_Create/It_can_successfully_create_a_HTTP_LogStream.yaml @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 233 + content_length: 252 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Test-LogStream-1674668511","type":"http","sink":{"httpContentFormat":"JSONLINES","httpContentType":"application/json","httpEndpoint":"https://example.com/logs","httpAuthorization":"Bearer f2368bbe77074527a37be2fdd5b92bad"}} + {"name":"Test-LogStream-1732609495","type":"http","isPriority":false,"sink":{"httpContentFormat":"JSONLINES","httpContentType":"application/json","httpEndpoint":"https://example.com/logs","httpAuthorization":"Bearer f2368bbe77074527a37be2fdd5b92bad"}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.11.2 url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000011621","name":"Test-LogStream-1674668511","type":"http","status":"active","sink":{"httpAuthorization":"Bearer f2368bbe77074527a37be2fdd5b92bad","httpContentFormat":"JSONLINES","httpContentType":"application/json","httpEndpoint":"https://example.com/logs"}}' + body: '{"id":"lst_0000000000002060","name":"Test-LogStream-1732609495","type":"http","status":"active","sink":{"httpAuthorization":"Bearer f2368bbe77074527a37be2fdd5b92bad","httpContentFormat":"JSONLINES","httpContentType":"application/json","httpEndpoint":"https://example.com/logs"},"isPriority":false}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 200.115291ms + duration: 440.237875ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011621 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002060 method: DELETE response: proto: HTTP/2.0 @@ -71,4 +71,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 139.570416ms + duration: 360.544ms diff --git a/test/data/recordings/TestLogStreamManager_Create/It_can_successfully_create_a_Mixpanel_LogStream.yaml b/test/data/recordings/TestLogStreamManager_Create/It_can_successfully_create_a_Mixpanel_LogStream.yaml index 04c46ed8..5e18b9e0 100644 --- a/test/data/recordings/TestLogStreamManager_Create/It_can_successfully_create_a_Mixpanel_LogStream.yaml +++ b/test/data/recordings/TestLogStreamManager_Create/It_can_successfully_create_a_Mixpanel_LogStream.yaml @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 260 + content_length: 279 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Test-LogStream-1674668511","type":"mixpanel","sink":{"mixpanelRegion":"us","mixpanelProjectId":"123456789","mixpanelServiceAccountUsername":"fake-account.123abc.mp-service-account","mixpanelServiceAccountPassword":"8iwyKSzwV2brfakepassGGKhsZ3INozo"}} + {"name":"Test-LogStream-1732609495","type":"mixpanel","isPriority":false,"sink":{"mixpanelRegion":"us","mixpanelProjectId":"123456789","mixpanelServiceAccountUsername":"fake-account.123abc.mp-service-account","mixpanelServiceAccountPassword":"8iwyKSzwV2brfakepassGGKhsZ3INozo"}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.11.2 url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000011626","name":"Test-LogStream-1674668511","type":"mixpanel","status":"active","sink":{"mixpanelRegion":"us","mixpanelProjectId":"123456789","mixpanelServiceAccountUsername":"fake-account.123abc.mp-service-account","mixpanelServiceAccountPassword":"********"}}' + body: '{"id":"lst_0000000000002065","name":"Test-LogStream-1732609495","type":"mixpanel","status":"active","sink":{"mixpanelRegion":"us","mixpanelProjectId":"123456789","mixpanelServiceAccountUsername":"fake-account.123abc.mp-service-account","mixpanelServiceAccountPassword":"********"},"isPriority":false}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 130.8185ms + duration: 378.886167ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011626 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002065 method: DELETE response: proto: HTTP/2.0 @@ -71,4 +71,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 116.658791ms + duration: 328.02275ms diff --git a/test/data/recordings/TestLogStreamManager_Create/It_can_successfully_create_a_Segment_LogStream.yaml b/test/data/recordings/TestLogStreamManager_Create/It_can_successfully_create_a_Segment_LogStream.yaml index 9fe1089a..92939504 100644 --- a/test/data/recordings/TestLogStreamManager_Create/It_can_successfully_create_a_Segment_LogStream.yaml +++ b/test/data/recordings/TestLogStreamManager_Create/It_can_successfully_create_a_Segment_LogStream.yaml @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 96 + content_length: 114 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Test-LogStream-1674668511","type":"segment","sink":{"segmentWriteKey":"121233123455"}} + {"name":"Test-LogStream-1732609495","type":"segment","isPriority":true,"sink":{"segmentWriteKey":"121233123455"}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.11.2 url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000011623","name":"Test-LogStream-1674668511","type":"segment","status":"active","sink":{"segmentWriteKey":"121233123455"}}' + body: '{"id":"lst_0000000000002062","name":"Test-LogStream-1732609495","type":"segment","status":"active","sink":{"segmentWriteKey":"121233123455"},"filters":[{"type":"category","name":"security"}],"isPriority":true}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 196.847458ms + duration: 387.390583ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011623 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002062 method: DELETE response: proto: HTTP/2.0 @@ -71,4 +71,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 104.878167ms + duration: 461.028542ms diff --git a/test/data/recordings/TestLogStreamManager_Create/It_can_successfully_create_a_Splunk_LogStream.yaml b/test/data/recordings/TestLogStreamManager_Create/It_can_successfully_create_a_Splunk_LogStream.yaml index 47d7df4e..d4233854 100644 --- a/test/data/recordings/TestLogStreamManager_Create/It_can_successfully_create_a_Splunk_LogStream.yaml +++ b/test/data/recordings/TestLogStreamManager_Create/It_can_successfully_create_a_Splunk_LogStream.yaml @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 188 + content_length: 206 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Test-LogStream-1674668511","type":"splunk","sink":{"splunkDomain":"demo.splunk.com","splunkToken":"12a34ab5-c6d7-8901-23ef-456b7c89d0c1","splunkPort":"8080","splunkSecure":true}} + {"name":"Test-LogStream-1732609495","type":"splunk","isPriority":true,"sink":{"splunkDomain":"demo.splunk.com","splunkToken":"12a34ab5-c6d7-8901-23ef-456b7c89d0c1","splunkPort":"8080","splunkSecure":true}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.11.2 url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000011624","name":"Test-LogStream-1674668511","type":"splunk","status":"active","sink":{"splunkDomain":"demo.splunk.com","splunkPort":"8080","splunkToken":"12a34ab5-c6d7-8901-23ef-456b7c89d0c1","splunkSecure":true}}' + body: '{"id":"lst_0000000000002063","name":"Test-LogStream-1732609495","type":"splunk","status":"active","sink":{"splunkDomain":"demo.splunk.com","splunkPort":"8080","splunkToken":"12a34ab5-c6d7-8901-23ef-456b7c89d0c1","splunkSecure":true},"filters":[{"type":"category","name":"security"}],"isPriority":true}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 118.519792ms + duration: 371.139291ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011624 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002063 method: DELETE response: proto: HTTP/2.0 @@ -71,4 +71,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 104.308209ms + duration: 391.289791ms diff --git a/test/data/recordings/TestLogStreamManager_Create/It_can_successfully_create_a_Sumo_LogStream.yaml b/test/data/recordings/TestLogStreamManager_Create/It_can_successfully_create_a_Sumo_LogStream.yaml index 2c030a0d..48c5aeb8 100644 --- a/test/data/recordings/TestLogStreamManager_Create/It_can_successfully_create_a_Sumo_LogStream.yaml +++ b/test/data/recordings/TestLogStreamManager_Create/It_can_successfully_create_a_Sumo_LogStream.yaml @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 102 + content_length: 120 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Test-LogStream-1674668511","type":"sumo","sink":{"sumoSourceAddress":"https://example.com"}} + {"name":"Test-LogStream-1732609495","type":"sumo","isPriority":true,"sink":{"sumoSourceAddress":"https://example.com"}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.11.2 url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000011625","name":"Test-LogStream-1674668511","type":"sumo","status":"active","sink":{"sumoSourceAddress":"https://example.com"}}' + body: '{"id":"lst_0000000000002064","name":"Test-LogStream-1732609495","type":"sumo","status":"active","sink":{"sumoSourceAddress":"https://example.com"},"filters":[{"type":"category","name":"security"}],"isPriority":true}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 122.568084ms + duration: 361.469416ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011625 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002064 method: DELETE response: proto: HTTP/2.0 @@ -71,4 +71,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 6.225075333s + duration: 344.974042ms diff --git a/test/data/recordings/TestLogStreamManager_Delete/It_can_successfully_delete_a_AmazonEventBridge_LogStream.yaml b/test/data/recordings/TestLogStreamManager_Delete/It_can_successfully_delete_a_AmazonEventBridge_LogStream.yaml index 66015ddc..b4141a48 100644 --- a/test/data/recordings/TestLogStreamManager_Delete/It_can_successfully_delete_a_AmazonEventBridge_LogStream.yaml +++ b/test/data/recordings/TestLogStreamManager_Delete/It_can_successfully_delete_a_AmazonEventBridge_LogStream.yaml @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 121 + content_length: 139 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Test-LogStream-1674668511","type":"eventbridge","sink":{"awsAccountId":"999999999999","awsRegion":"us-west-2"}} + {"name":"Test-LogStream-1732609495","type":"eventbridge","isPriority":true,"sink":{"awsAccountId":"999999999999","awsRegion":"us-west-2"}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.11.2 url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000011641","name":"Test-LogStream-1674668511","type":"eventbridge","status":"active","sink":{"awsAccountId":"999999999999","awsRegion":"us-west-2","awsPartnerEventSource":"aws.partner/auth0.com/go-auth0-dev.eu.auth0.com-85c6f053-e6de-4061-9194-51f3a068c731/auth0.logs"}}' + body: '{"id":"lst_0000000000002080","name":"Test-LogStream-1732609495","type":"eventbridge","status":"active","sink":{"awsAccountId":"999999999999","awsRegion":"us-west-2","awsPartnerEventSource":"aws.partner/auth0.com/go-auth0-dev.eu.auth0.com-eefdf333-8cea-49d2-bf59-054e2adc3915/auth0.logs"},"filters":[{"type":"category","name":"security"}],"isPriority":true}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 901.897333ms + duration: 452.520917ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011641 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002080 method: DELETE response: proto: HTTP/2.0 @@ -71,27 +71,26 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 764.533959ms + duration: 445.218625ms - id: 2 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011641 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002080 method: GET response: proto: HTTP/2.0 @@ -107,7 +106,7 @@ interactions: - application/json; charset=utf-8 status: 404 Not Found code: 404 - duration: 114.05ms + duration: 918.698416ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011641 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002080 method: DELETE response: proto: HTTP/2.0 @@ -142,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 95.630625ms + duration: 327.548ms diff --git a/test/data/recordings/TestLogStreamManager_Delete/It_can_successfully_delete_a_DataDog_LogStream.yaml b/test/data/recordings/TestLogStreamManager_Delete/It_can_successfully_delete_a_DataDog_LogStream.yaml index 5a135385..869b0819 100644 --- a/test/data/recordings/TestLogStreamManager_Delete/It_can_successfully_delete_a_DataDog_LogStream.yaml +++ b/test/data/recordings/TestLogStreamManager_Delete/It_can_successfully_delete_a_DataDog_LogStream.yaml @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 115 + content_length: 133 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Test-LogStream-1674668511","type":"datadog","sink":{"datadogRegion":"us","datadogApiKey":"121233123455"}} + {"name":"Test-LogStream-1732609495","type":"datadog","isPriority":true,"sink":{"datadogRegion":"us","datadogApiKey":"121233123455"}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.11.2 url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000011643","name":"Test-LogStream-1674668511","type":"datadog","status":"active","sink":{"datadogApiKey":"121233123455","datadogRegion":"us"}}' + body: '{"id":"lst_0000000000002082","name":"Test-LogStream-1732609495","type":"datadog","status":"active","sink":{"datadogApiKey":"121233123455","datadogRegion":"us"},"filters":[{"type":"category","name":"security"}],"isPriority":true}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 114.06275ms + duration: 477.875292ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011643 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002082 method: DELETE response: proto: HTTP/2.0 @@ -71,27 +71,26 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 6.279705458s + duration: 410.047042ms - id: 2 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011643 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002082 method: GET response: proto: HTTP/2.0 @@ -107,7 +106,7 @@ interactions: - application/json; charset=utf-8 status: 404 Not Found code: 404 - duration: 104.694583ms + duration: 319.197125ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011643 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002082 method: DELETE response: proto: HTTP/2.0 @@ -142,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 109.490917ms + duration: 395.307ms diff --git a/test/data/recordings/TestLogStreamManager_Delete/It_can_successfully_delete_a_HTTP_LogStream.yaml b/test/data/recordings/TestLogStreamManager_Delete/It_can_successfully_delete_a_HTTP_LogStream.yaml index f6fd2f0f..4cc5f18a 100644 --- a/test/data/recordings/TestLogStreamManager_Delete/It_can_successfully_delete_a_HTTP_LogStream.yaml +++ b/test/data/recordings/TestLogStreamManager_Delete/It_can_successfully_delete_a_HTTP_LogStream.yaml @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 233 + content_length: 252 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Test-LogStream-1674668511","type":"http","sink":{"httpContentFormat":"JSONLINES","httpContentType":"application/json","httpEndpoint":"https://example.com/logs","httpAuthorization":"Bearer f2368bbe77074527a37be2fdd5b92bad"}} + {"name":"Test-LogStream-1732609495","type":"http","isPriority":false,"sink":{"httpContentFormat":"JSONLINES","httpContentType":"application/json","httpEndpoint":"https://example.com/logs","httpAuthorization":"Bearer f2368bbe77074527a37be2fdd5b92bad"}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.11.2 url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000011642","name":"Test-LogStream-1674668511","type":"http","status":"active","sink":{"httpAuthorization":"Bearer f2368bbe77074527a37be2fdd5b92bad","httpContentFormat":"JSONLINES","httpContentType":"application/json","httpEndpoint":"https://example.com/logs"}}' + body: '{"id":"lst_0000000000002081","name":"Test-LogStream-1732609495","type":"http","status":"active","sink":{"httpAuthorization":"Bearer f2368bbe77074527a37be2fdd5b92bad","httpContentFormat":"JSONLINES","httpContentType":"application/json","httpEndpoint":"https://example.com/logs"},"isPriority":false}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 147.332625ms + duration: 383.806583ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011642 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002081 method: DELETE response: proto: HTTP/2.0 @@ -71,27 +71,26 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 107.538042ms + duration: 354.5835ms - id: 2 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011642 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002081 method: GET response: proto: HTTP/2.0 @@ -107,7 +106,7 @@ interactions: - application/json; charset=utf-8 status: 404 Not Found code: 404 - duration: 171.971833ms + duration: 335.853166ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011642 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002081 method: DELETE response: proto: HTTP/2.0 @@ -142,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 163.103ms + duration: 368.563875ms diff --git a/test/data/recordings/TestLogStreamManager_Delete/It_can_successfully_delete_a_Mixpanel_LogStream.yaml b/test/data/recordings/TestLogStreamManager_Delete/It_can_successfully_delete_a_Mixpanel_LogStream.yaml index 925bbc09..f77c884b 100644 --- a/test/data/recordings/TestLogStreamManager_Delete/It_can_successfully_delete_a_Mixpanel_LogStream.yaml +++ b/test/data/recordings/TestLogStreamManager_Delete/It_can_successfully_delete_a_Mixpanel_LogStream.yaml @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 260 + content_length: 279 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Test-LogStream-1674668511","type":"mixpanel","sink":{"mixpanelRegion":"us","mixpanelProjectId":"123456789","mixpanelServiceAccountUsername":"fake-account.123abc.mp-service-account","mixpanelServiceAccountPassword":"8iwyKSzwV2brfakepassGGKhsZ3INozo"}} + {"name":"Test-LogStream-1732609495","type":"mixpanel","isPriority":false,"sink":{"mixpanelRegion":"us","mixpanelProjectId":"123456789","mixpanelServiceAccountUsername":"fake-account.123abc.mp-service-account","mixpanelServiceAccountPassword":"8iwyKSzwV2brfakepassGGKhsZ3INozo"}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.11.2 url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000011647","name":"Test-LogStream-1674668511","type":"mixpanel","status":"active","sink":{"mixpanelRegion":"us","mixpanelProjectId":"123456789","mixpanelServiceAccountUsername":"fake-account.123abc.mp-service-account","mixpanelServiceAccountPassword":"********"}}' + body: '{"id":"lst_0000000000002086","name":"Test-LogStream-1732609495","type":"mixpanel","status":"active","sink":{"mixpanelRegion":"us","mixpanelProjectId":"123456789","mixpanelServiceAccountUsername":"fake-account.123abc.mp-service-account","mixpanelServiceAccountPassword":"********"},"isPriority":false}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 124.287833ms + duration: 407.578625ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011647 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002086 method: DELETE response: proto: HTTP/2.0 @@ -71,27 +71,26 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 104.014875ms + duration: 407.664125ms - id: 2 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011647 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002086 method: GET response: proto: HTTP/2.0 @@ -107,7 +106,7 @@ interactions: - application/json; charset=utf-8 status: 404 Not Found code: 404 - duration: 124.648917ms + duration: 419.244708ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011647 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002086 method: DELETE response: proto: HTTP/2.0 @@ -142,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 114.476ms + duration: 400.46025ms diff --git a/test/data/recordings/TestLogStreamManager_Delete/It_can_successfully_delete_a_Segment_LogStream.yaml b/test/data/recordings/TestLogStreamManager_Delete/It_can_successfully_delete_a_Segment_LogStream.yaml index 1f36a65a..28f5fd73 100644 --- a/test/data/recordings/TestLogStreamManager_Delete/It_can_successfully_delete_a_Segment_LogStream.yaml +++ b/test/data/recordings/TestLogStreamManager_Delete/It_can_successfully_delete_a_Segment_LogStream.yaml @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 96 + content_length: 114 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Test-LogStream-1674668511","type":"segment","sink":{"segmentWriteKey":"121233123455"}} + {"name":"Test-LogStream-1732609495","type":"segment","isPriority":true,"sink":{"segmentWriteKey":"121233123455"}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.11.2 url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000011644","name":"Test-LogStream-1674668511","type":"segment","status":"active","sink":{"segmentWriteKey":"121233123455"}}' + body: '{"id":"lst_0000000000002083","name":"Test-LogStream-1732609495","type":"segment","status":"active","sink":{"segmentWriteKey":"121233123455"},"filters":[{"type":"category","name":"security"}],"isPriority":true}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 119.612375ms + duration: 919.987416ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011644 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002083 method: DELETE response: proto: HTTP/2.0 @@ -71,27 +71,26 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 106.107417ms + duration: 366.154458ms - id: 2 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011644 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002083 method: GET response: proto: HTTP/2.0 @@ -107,7 +106,7 @@ interactions: - application/json; charset=utf-8 status: 404 Not Found code: 404 - duration: 97.070667ms + duration: 333.113667ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011644 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002083 method: DELETE response: proto: HTTP/2.0 @@ -142,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 103.949708ms + duration: 415.458584ms diff --git a/test/data/recordings/TestLogStreamManager_Delete/It_can_successfully_delete_a_Splunk_LogStream.yaml b/test/data/recordings/TestLogStreamManager_Delete/It_can_successfully_delete_a_Splunk_LogStream.yaml index c4498255..248feaa6 100644 --- a/test/data/recordings/TestLogStreamManager_Delete/It_can_successfully_delete_a_Splunk_LogStream.yaml +++ b/test/data/recordings/TestLogStreamManager_Delete/It_can_successfully_delete_a_Splunk_LogStream.yaml @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 188 + content_length: 206 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Test-LogStream-1674668511","type":"splunk","sink":{"splunkDomain":"demo.splunk.com","splunkToken":"12a34ab5-c6d7-8901-23ef-456b7c89d0c1","splunkPort":"8080","splunkSecure":true}} + {"name":"Test-LogStream-1732609495","type":"splunk","isPriority":true,"sink":{"splunkDomain":"demo.splunk.com","splunkToken":"12a34ab5-c6d7-8901-23ef-456b7c89d0c1","splunkPort":"8080","splunkSecure":true}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.11.2 url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000011645","name":"Test-LogStream-1674668511","type":"splunk","status":"active","sink":{"splunkDomain":"demo.splunk.com","splunkPort":"8080","splunkToken":"12a34ab5-c6d7-8901-23ef-456b7c89d0c1","splunkSecure":true}}' + body: '{"id":"lst_0000000000002084","name":"Test-LogStream-1732609495","type":"splunk","status":"active","sink":{"splunkDomain":"demo.splunk.com","splunkPort":"8080","splunkToken":"12a34ab5-c6d7-8901-23ef-456b7c89d0c1","splunkSecure":true},"filters":[{"type":"category","name":"security"}],"isPriority":true}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 119.185584ms + duration: 360.852916ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011645 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002084 method: DELETE response: proto: HTTP/2.0 @@ -71,27 +71,26 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 120.628042ms + duration: 360.073667ms - id: 2 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011645 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002084 method: GET response: proto: HTTP/2.0 @@ -107,7 +106,7 @@ interactions: - application/json; charset=utf-8 status: 404 Not Found code: 404 - duration: 95.980666ms + duration: 356.942708ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011645 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002084 method: DELETE response: proto: HTTP/2.0 @@ -142,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 108.548375ms + duration: 328.353625ms diff --git a/test/data/recordings/TestLogStreamManager_Delete/It_can_successfully_delete_a_Sumo_LogStream.yaml b/test/data/recordings/TestLogStreamManager_Delete/It_can_successfully_delete_a_Sumo_LogStream.yaml index 29853bbc..67ef152d 100644 --- a/test/data/recordings/TestLogStreamManager_Delete/It_can_successfully_delete_a_Sumo_LogStream.yaml +++ b/test/data/recordings/TestLogStreamManager_Delete/It_can_successfully_delete_a_Sumo_LogStream.yaml @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 102 + content_length: 120 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Test-LogStream-1674668511","type":"sumo","sink":{"sumoSourceAddress":"https://example.com"}} + {"name":"Test-LogStream-1732609495","type":"sumo","isPriority":true,"sink":{"sumoSourceAddress":"https://example.com"}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.11.2 url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000011646","name":"Test-LogStream-1674668511","type":"sumo","status":"active","sink":{"sumoSourceAddress":"https://example.com"}}' + body: '{"id":"lst_0000000000002085","name":"Test-LogStream-1732609495","type":"sumo","status":"active","sink":{"sumoSourceAddress":"https://example.com"},"filters":[{"type":"category","name":"security"}],"isPriority":true}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 122.009167ms + duration: 351.744833ms - id: 1 request: proto: HTTP/1.1 @@ -54,8 +54,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011646 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002085 method: DELETE response: proto: HTTP/2.0 @@ -71,27 +71,26 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 6.232322416s + duration: 394.19775ms - id: 2 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011646 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002085 method: GET response: proto: HTTP/2.0 @@ -107,7 +106,7 @@ interactions: - application/json; charset=utf-8 status: 404 Not Found code: 404 - duration: 140.654667ms + duration: 334.377292ms - id: 3 request: proto: HTTP/1.1 @@ -125,8 +124,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011646 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002085 method: DELETE response: proto: HTTP/2.0 @@ -142,4 +141,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 117.404625ms + duration: 379.745458ms diff --git a/test/data/recordings/TestLogStreamManager_List.yaml b/test/data/recordings/TestLogStreamManager_List.yaml index 66452dd4..71b4df0f 100644 --- a/test/data/recordings/TestLogStreamManager_List.yaml +++ b/test/data/recordings/TestLogStreamManager_List.yaml @@ -6,20 +6,19 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.11.2 url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams method: GET response: @@ -28,12 +27,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 2 - uncompressed: false - body: '[]' + content_length: -1 + uncompressed: true + body: '[{"id":"lst_0000000000001960","name":"stream1","type":"sumo","status":"suspended","sink":{"sumoSourceAddress":"sumoaourceaddresshere"},"isPriority":false}]' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 105.6655ms + duration: 876.122875ms diff --git a/test/data/recordings/TestLogStreamManager_Read/It_can_successfully_read_a_AmazonEventBridge_LogStream.yaml b/test/data/recordings/TestLogStreamManager_Read/It_can_successfully_read_a_AmazonEventBridge_LogStream.yaml index 23887caf..014e1c9e 100644 --- a/test/data/recordings/TestLogStreamManager_Read/It_can_successfully_read_a_AmazonEventBridge_LogStream.yaml +++ b/test/data/recordings/TestLogStreamManager_Read/It_can_successfully_read_a_AmazonEventBridge_LogStream.yaml @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 121 + content_length: 139 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Test-LogStream-1674668511","type":"eventbridge","sink":{"awsAccountId":"999999999999","awsRegion":"us-west-2"}} + {"name":"Test-LogStream-1732609495","type":"eventbridge","isPriority":true,"sink":{"awsAccountId":"999999999999","awsRegion":"us-west-2"}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.11.2 url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams method: POST response: @@ -30,33 +30,32 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000011627","name":"Test-LogStream-1674668511","type":"eventbridge","status":"active","sink":{"awsAccountId":"999999999999","awsRegion":"us-west-2","awsPartnerEventSource":"aws.partner/auth0.com/go-auth0-dev.eu.auth0.com-bcb34250-023f-4e80-bc8f-0d084b31d094/auth0.logs"}}' + body: '{"id":"lst_0000000000002066","name":"Test-LogStream-1732609495","type":"eventbridge","status":"active","sink":{"awsAccountId":"999999999999","awsRegion":"us-west-2","awsPartnerEventSource":"aws.partner/auth0.com/go-auth0-dev.eu.auth0.com-e15f958a-fc65-492a-ad8c-e094ff013b07/auth0.logs"},"filters":[{"type":"category","name":"security"}],"isPriority":true}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 769.070584ms + duration: 486.307458ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011627 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002066 method: GET response: proto: HTTP/2.0 @@ -66,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000011627","name":"Test-LogStream-1674668511","type":"eventbridge","status":"active","sink":{"awsAccountId":"999999999999","awsRegion":"us-west-2","awsPartnerEventSource":"aws.partner/auth0.com/go-auth0-dev.eu.auth0.com-bcb34250-023f-4e80-bc8f-0d084b31d094/auth0.logs"}}' + body: '{"id":"lst_0000000000002066","name":"Test-LogStream-1732609495","type":"eventbridge","status":"active","sink":{"awsAccountId":"999999999999","awsRegion":"us-west-2","awsPartnerEventSource":"aws.partner/auth0.com/go-auth0-dev.eu.auth0.com-e15f958a-fc65-492a-ad8c-e094ff013b07/auth0.logs"},"filters":[{"type":"category","name":"security"}],"isPriority":true}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 97.543125ms + duration: 377.186041ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011627 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002066 method: DELETE response: proto: HTTP/2.0 @@ -107,4 +106,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 773.098125ms + duration: 426.736875ms diff --git a/test/data/recordings/TestLogStreamManager_Read/It_can_successfully_read_a_DataDog_LogStream.yaml b/test/data/recordings/TestLogStreamManager_Read/It_can_successfully_read_a_DataDog_LogStream.yaml index 8e4cb24c..b5521df2 100644 --- a/test/data/recordings/TestLogStreamManager_Read/It_can_successfully_read_a_DataDog_LogStream.yaml +++ b/test/data/recordings/TestLogStreamManager_Read/It_can_successfully_read_a_DataDog_LogStream.yaml @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 115 + content_length: 133 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Test-LogStream-1674668511","type":"datadog","sink":{"datadogRegion":"us","datadogApiKey":"121233123455"}} + {"name":"Test-LogStream-1732609495","type":"datadog","isPriority":true,"sink":{"datadogRegion":"us","datadogApiKey":"121233123455"}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.11.2 url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams method: POST response: @@ -30,33 +30,32 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000011629","name":"Test-LogStream-1674668511","type":"datadog","status":"active","sink":{"datadogApiKey":"121233123455","datadogRegion":"us"}}' + body: '{"id":"lst_0000000000002068","name":"Test-LogStream-1732609495","type":"datadog","status":"active","sink":{"datadogApiKey":"121233123455","datadogRegion":"us"},"filters":[{"type":"category","name":"security"}],"isPriority":true}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 122.326958ms + duration: 370.935792ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011629 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002068 method: GET response: proto: HTTP/2.0 @@ -66,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000011629","name":"Test-LogStream-1674668511","type":"datadog","status":"active","sink":{"datadogApiKey":"121233123455","datadogRegion":"us"}}' + body: '{"id":"lst_0000000000002068","name":"Test-LogStream-1732609495","type":"datadog","status":"active","sink":{"datadogApiKey":"121233123455","datadogRegion":"us"},"filters":[{"type":"category","name":"security"}],"isPriority":true}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 99.513625ms + duration: 370.296792ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011629 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002068 method: DELETE response: proto: HTTP/2.0 @@ -107,4 +106,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 108.435083ms + duration: 469.629208ms diff --git a/test/data/recordings/TestLogStreamManager_Read/It_can_successfully_read_a_HTTP_LogStream.yaml b/test/data/recordings/TestLogStreamManager_Read/It_can_successfully_read_a_HTTP_LogStream.yaml index 937729b1..92fdb6db 100644 --- a/test/data/recordings/TestLogStreamManager_Read/It_can_successfully_read_a_HTTP_LogStream.yaml +++ b/test/data/recordings/TestLogStreamManager_Read/It_can_successfully_read_a_HTTP_LogStream.yaml @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 233 + content_length: 252 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Test-LogStream-1674668511","type":"http","sink":{"httpContentFormat":"JSONLINES","httpContentType":"application/json","httpEndpoint":"https://example.com/logs","httpAuthorization":"Bearer f2368bbe77074527a37be2fdd5b92bad"}} + {"name":"Test-LogStream-1732609495","type":"http","isPriority":false,"sink":{"httpContentFormat":"JSONLINES","httpContentType":"application/json","httpEndpoint":"https://example.com/logs","httpAuthorization":"Bearer f2368bbe77074527a37be2fdd5b92bad"}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.11.2 url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams method: POST response: @@ -30,33 +30,32 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000011628","name":"Test-LogStream-1674668511","type":"http","status":"active","sink":{"httpAuthorization":"Bearer f2368bbe77074527a37be2fdd5b92bad","httpContentFormat":"JSONLINES","httpContentType":"application/json","httpEndpoint":"https://example.com/logs"}}' + body: '{"id":"lst_0000000000002067","name":"Test-LogStream-1732609495","type":"http","status":"active","sink":{"httpAuthorization":"Bearer f2368bbe77074527a37be2fdd5b92bad","httpContentFormat":"JSONLINES","httpContentType":"application/json","httpEndpoint":"https://example.com/logs"},"isPriority":false}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 118.265208ms + duration: 363.537333ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011628 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002067 method: GET response: proto: HTTP/2.0 @@ -66,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000011628","name":"Test-LogStream-1674668511","type":"http","status":"active","sink":{"httpAuthorization":"Bearer f2368bbe77074527a37be2fdd5b92bad","httpContentFormat":"JSONLINES","httpContentType":"application/json","httpEndpoint":"https://example.com/logs"}}' + body: '{"id":"lst_0000000000002067","name":"Test-LogStream-1732609495","type":"http","status":"active","sink":{"httpAuthorization":"Bearer f2368bbe77074527a37be2fdd5b92bad","httpContentFormat":"JSONLINES","httpContentType":"application/json","httpEndpoint":"https://example.com/logs"},"isPriority":false}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 105.045708ms + duration: 327.282166ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011628 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002067 method: DELETE response: proto: HTTP/2.0 @@ -107,4 +106,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 107.987958ms + duration: 339.626542ms diff --git a/test/data/recordings/TestLogStreamManager_Read/It_can_successfully_read_a_Mixpanel_LogStream.yaml b/test/data/recordings/TestLogStreamManager_Read/It_can_successfully_read_a_Mixpanel_LogStream.yaml index 8bd981a5..01935d36 100644 --- a/test/data/recordings/TestLogStreamManager_Read/It_can_successfully_read_a_Mixpanel_LogStream.yaml +++ b/test/data/recordings/TestLogStreamManager_Read/It_can_successfully_read_a_Mixpanel_LogStream.yaml @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 260 + content_length: 279 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Test-LogStream-1674668511","type":"mixpanel","sink":{"mixpanelRegion":"us","mixpanelProjectId":"123456789","mixpanelServiceAccountUsername":"fake-account.123abc.mp-service-account","mixpanelServiceAccountPassword":"8iwyKSzwV2brfakepassGGKhsZ3INozo"}} + {"name":"Test-LogStream-1732609495","type":"mixpanel","isPriority":false,"sink":{"mixpanelRegion":"us","mixpanelProjectId":"123456789","mixpanelServiceAccountUsername":"fake-account.123abc.mp-service-account","mixpanelServiceAccountPassword":"8iwyKSzwV2brfakepassGGKhsZ3INozo"}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.11.2 url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams method: POST response: @@ -30,33 +30,32 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000011633","name":"Test-LogStream-1674668511","type":"mixpanel","status":"active","sink":{"mixpanelRegion":"us","mixpanelProjectId":"123456789","mixpanelServiceAccountUsername":"fake-account.123abc.mp-service-account","mixpanelServiceAccountPassword":"********"}}' + body: '{"id":"lst_0000000000002072","name":"Test-LogStream-1732609495","type":"mixpanel","status":"active","sink":{"mixpanelRegion":"us","mixpanelProjectId":"123456789","mixpanelServiceAccountUsername":"fake-account.123abc.mp-service-account","mixpanelServiceAccountPassword":"********"},"isPriority":false}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 117.462667ms + duration: 510.789ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011633 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002072 method: GET response: proto: HTTP/2.0 @@ -66,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000011633","name":"Test-LogStream-1674668511","type":"mixpanel","status":"active","sink":{"mixpanelRegion":"us","mixpanelProjectId":"123456789","mixpanelServiceAccountUsername":"fake-account.123abc.mp-service-account","mixpanelServiceAccountPassword":"********"}}' + body: '{"id":"lst_0000000000002072","name":"Test-LogStream-1732609495","type":"mixpanel","status":"active","sink":{"mixpanelRegion":"us","mixpanelProjectId":"123456789","mixpanelServiceAccountUsername":"fake-account.123abc.mp-service-account","mixpanelServiceAccountPassword":"********"},"isPriority":false}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 90.541875ms + duration: 348.080209ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011633 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002072 method: DELETE response: proto: HTTP/2.0 @@ -107,4 +106,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 149.90175ms + duration: 362.489958ms diff --git a/test/data/recordings/TestLogStreamManager_Read/It_can_successfully_read_a_Segment_LogStream.yaml b/test/data/recordings/TestLogStreamManager_Read/It_can_successfully_read_a_Segment_LogStream.yaml index fb1218ef..7d782d38 100644 --- a/test/data/recordings/TestLogStreamManager_Read/It_can_successfully_read_a_Segment_LogStream.yaml +++ b/test/data/recordings/TestLogStreamManager_Read/It_can_successfully_read_a_Segment_LogStream.yaml @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 96 + content_length: 114 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Test-LogStream-1674668511","type":"segment","sink":{"segmentWriteKey":"121233123455"}} + {"name":"Test-LogStream-1732609495","type":"segment","isPriority":true,"sink":{"segmentWriteKey":"121233123455"}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.11.2 url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams method: POST response: @@ -30,33 +30,32 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000011630","name":"Test-LogStream-1674668511","type":"segment","status":"active","sink":{"segmentWriteKey":"121233123455"}}' + body: '{"id":"lst_0000000000002069","name":"Test-LogStream-1732609495","type":"segment","status":"active","sink":{"segmentWriteKey":"121233123455"},"filters":[{"type":"category","name":"security"}],"isPriority":true}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 130.502084ms + duration: 484.707083ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011630 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002069 method: GET response: proto: HTTP/2.0 @@ -66,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000011630","name":"Test-LogStream-1674668511","type":"segment","status":"active","sink":{"segmentWriteKey":"121233123455"}}' + body: '{"id":"lst_0000000000002069","name":"Test-LogStream-1732609495","type":"segment","status":"active","sink":{"segmentWriteKey":"121233123455"},"filters":[{"type":"category","name":"security"}],"isPriority":true}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 107.305834ms + duration: 334.433459ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011630 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002069 method: DELETE response: proto: HTTP/2.0 @@ -107,4 +106,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 116.59025ms + duration: 346.89675ms diff --git a/test/data/recordings/TestLogStreamManager_Read/It_can_successfully_read_a_Splunk_LogStream.yaml b/test/data/recordings/TestLogStreamManager_Read/It_can_successfully_read_a_Splunk_LogStream.yaml index 6285c106..a86b1beb 100644 --- a/test/data/recordings/TestLogStreamManager_Read/It_can_successfully_read_a_Splunk_LogStream.yaml +++ b/test/data/recordings/TestLogStreamManager_Read/It_can_successfully_read_a_Splunk_LogStream.yaml @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 188 + content_length: 206 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Test-LogStream-1674668511","type":"splunk","sink":{"splunkDomain":"demo.splunk.com","splunkToken":"12a34ab5-c6d7-8901-23ef-456b7c89d0c1","splunkPort":"8080","splunkSecure":true}} + {"name":"Test-LogStream-1732609495","type":"splunk","isPriority":true,"sink":{"splunkDomain":"demo.splunk.com","splunkToken":"12a34ab5-c6d7-8901-23ef-456b7c89d0c1","splunkPort":"8080","splunkSecure":true}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.11.2 url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams method: POST response: @@ -30,33 +30,32 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000011631","name":"Test-LogStream-1674668511","type":"splunk","status":"active","sink":{"splunkDomain":"demo.splunk.com","splunkPort":"8080","splunkToken":"12a34ab5-c6d7-8901-23ef-456b7c89d0c1","splunkSecure":true}}' + body: '{"id":"lst_0000000000002070","name":"Test-LogStream-1732609495","type":"splunk","status":"active","sink":{"splunkDomain":"demo.splunk.com","splunkPort":"8080","splunkToken":"12a34ab5-c6d7-8901-23ef-456b7c89d0c1","splunkSecure":true},"filters":[{"type":"category","name":"security"}],"isPriority":true}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 142.8195ms + duration: 386.556042ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011631 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002070 method: GET response: proto: HTTP/2.0 @@ -66,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000011631","name":"Test-LogStream-1674668511","type":"splunk","status":"active","sink":{"splunkDomain":"demo.splunk.com","splunkPort":"8080","splunkToken":"12a34ab5-c6d7-8901-23ef-456b7c89d0c1","splunkSecure":true}}' + body: '{"id":"lst_0000000000002070","name":"Test-LogStream-1732609495","type":"splunk","status":"active","sink":{"splunkDomain":"demo.splunk.com","splunkPort":"8080","splunkToken":"12a34ab5-c6d7-8901-23ef-456b7c89d0c1","splunkSecure":true},"filters":[{"type":"category","name":"security"}],"isPriority":true}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 6.30183025s + duration: 346.698667ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011631 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002070 method: DELETE response: proto: HTTP/2.0 @@ -107,4 +106,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 118.265708ms + duration: 357.352625ms diff --git a/test/data/recordings/TestLogStreamManager_Read/It_can_successfully_read_a_Sumo_LogStream.yaml b/test/data/recordings/TestLogStreamManager_Read/It_can_successfully_read_a_Sumo_LogStream.yaml index cf31a609..40e42999 100644 --- a/test/data/recordings/TestLogStreamManager_Read/It_can_successfully_read_a_Sumo_LogStream.yaml +++ b/test/data/recordings/TestLogStreamManager_Read/It_can_successfully_read_a_Sumo_LogStream.yaml @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 102 + content_length: 120 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Test-LogStream-1674668511","type":"sumo","sink":{"sumoSourceAddress":"https://example.com"}} + {"name":"Test-LogStream-1732609495","type":"sumo","isPriority":true,"sink":{"sumoSourceAddress":"https://example.com"}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.11.2 url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams method: POST response: @@ -30,33 +30,32 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000011632","name":"Test-LogStream-1674668511","type":"sumo","status":"active","sink":{"sumoSourceAddress":"https://example.com"}}' + body: '{"id":"lst_0000000000002071","name":"Test-LogStream-1732609495","type":"sumo","status":"active","sink":{"sumoSourceAddress":"https://example.com"},"filters":[{"type":"category","name":"security"}],"isPriority":true}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 110.298708ms + duration: 409.453292ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011632 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002071 method: GET response: proto: HTTP/2.0 @@ -66,13 +65,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000011632","name":"Test-LogStream-1674668511","type":"sumo","status":"active","sink":{"sumoSourceAddress":"https://example.com"}}' + body: '{"id":"lst_0000000000002071","name":"Test-LogStream-1732609495","type":"sumo","status":"active","sink":{"sumoSourceAddress":"https://example.com"},"filters":[{"type":"category","name":"security"}],"isPriority":true}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 119.085333ms + duration: 408.735791ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +89,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011632 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002071 method: DELETE response: proto: HTTP/2.0 @@ -107,4 +106,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 108.50475ms + duration: 408.674292ms diff --git a/test/data/recordings/TestLogStreamManager_Update/It_can_successfully_update_a_AmazonEventBridge_LogStream.yaml b/test/data/recordings/TestLogStreamManager_Update/It_can_successfully_update_a_AmazonEventBridge_LogStream.yaml index 52aae68e..cb0a18ca 100644 --- a/test/data/recordings/TestLogStreamManager_Update/It_can_successfully_update_a_AmazonEventBridge_LogStream.yaml +++ b/test/data/recordings/TestLogStreamManager_Update/It_can_successfully_update_a_AmazonEventBridge_LogStream.yaml @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 121 + content_length: 139 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Test-LogStream-1674668511","type":"eventbridge","sink":{"awsAccountId":"999999999999","awsRegion":"us-west-2"}} + {"name":"Test-LogStream-1732609495","type":"eventbridge","isPriority":true,"sink":{"awsAccountId":"999999999999","awsRegion":"us-west-2"}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.11.2 url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000011634","name":"Test-LogStream-1674668511","type":"eventbridge","status":"active","sink":{"awsAccountId":"999999999999","awsRegion":"us-west-2","awsPartnerEventSource":"aws.partner/auth0.com/go-auth0-dev.eu.auth0.com-387bb0d8-81ce-44d1-bd4f-531586933bab/auth0.logs"}}' + body: '{"id":"lst_0000000000002073","name":"Test-LogStream-1732609495","type":"eventbridge","status":"active","sink":{"awsAccountId":"999999999999","awsRegion":"us-west-2","awsPartnerEventSource":"aws.partner/auth0.com/go-auth0-dev.eu.auth0.com-9a52b706-9cf7-4c9c-ac8b-fb90387e1fc1/auth0.logs"},"filters":[{"type":"category","name":"security"}],"isPriority":true}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 838.468584ms + duration: 494.158875ms - id: 1 request: proto: HTTP/1.1 @@ -55,8 +55,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011634 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002073 method: PATCH response: proto: HTTP/2.0 @@ -66,33 +66,32 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000011634","name":"Test-LogStream-1674668511","type":"eventbridge","status":"active","sink":{"awsAccountId":"999999999999","awsRegion":"us-west-2","awsPartnerEventSource":"aws.partner/auth0.com/go-auth0-dev.eu.auth0.com-387bb0d8-81ce-44d1-bd4f-531586933bab/auth0.logs"},"filters":[{"name":"auth.login.fail","type":"category"}]}' + body: '{"id":"lst_0000000000002073","name":"Test-LogStream-1732609495","type":"eventbridge","status":"active","sink":{"awsAccountId":"999999999999","awsRegion":"us-west-2","awsPartnerEventSource":"aws.partner/auth0.com/go-auth0-dev.eu.auth0.com-9a52b706-9cf7-4c9c-ac8b-fb90387e1fc1/auth0.logs"},"filters":[{"type":"category","name":"security"}],"isPriority":true}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 109.920333ms + duration: 373.344875ms - id: 2 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011634 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002073 method: GET response: proto: HTTP/2.0 @@ -102,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000011634","name":"Test-LogStream-1674668511","type":"eventbridge","status":"active","sink":{"awsAccountId":"999999999999","awsRegion":"us-west-2","awsPartnerEventSource":"aws.partner/auth0.com/go-auth0-dev.eu.auth0.com-387bb0d8-81ce-44d1-bd4f-531586933bab/auth0.logs"},"filters":[{"name":"auth.login.fail","type":"category"}]}' + body: '{"id":"lst_0000000000002073","name":"Test-LogStream-1732609495","type":"eventbridge","status":"active","sink":{"awsAccountId":"999999999999","awsRegion":"us-west-2","awsPartnerEventSource":"aws.partner/auth0.com/go-auth0-dev.eu.auth0.com-9a52b706-9cf7-4c9c-ac8b-fb90387e1fc1/auth0.logs"},"filters":[{"type":"category","name":"security"}],"isPriority":true}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 111.770416ms + duration: 365.214708ms - id: 3 request: proto: HTTP/1.1 @@ -126,8 +125,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011634 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002073 method: DELETE response: proto: HTTP/2.0 @@ -143,4 +142,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 788.865792ms + duration: 362.702375ms diff --git a/test/data/recordings/TestLogStreamManager_Update/It_can_successfully_update_a_DataDog_LogStream.yaml b/test/data/recordings/TestLogStreamManager_Update/It_can_successfully_update_a_DataDog_LogStream.yaml index 79321f5e..4da8d918 100644 --- a/test/data/recordings/TestLogStreamManager_Update/It_can_successfully_update_a_DataDog_LogStream.yaml +++ b/test/data/recordings/TestLogStreamManager_Update/It_can_successfully_update_a_DataDog_LogStream.yaml @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 115 + content_length: 133 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Test-LogStream-1674668511","type":"datadog","sink":{"datadogRegion":"us","datadogApiKey":"121233123455"}} + {"name":"Test-LogStream-1732609495","type":"datadog","isPriority":true,"sink":{"datadogRegion":"us","datadogApiKey":"121233123455"}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.11.2 url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000011636","name":"Test-LogStream-1674668511","type":"datadog","status":"active","sink":{"datadogApiKey":"121233123455","datadogRegion":"us"}}' + body: '{"id":"lst_0000000000002075","name":"Test-LogStream-1732609495","type":"datadog","status":"active","sink":{"datadogApiKey":"121233123455","datadogRegion":"us"},"filters":[{"type":"category","name":"security"}],"isPriority":true}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 7.243529666s + duration: 376.277292ms - id: 1 request: proto: HTTP/1.1 @@ -55,8 +55,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011636 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002075 method: PATCH response: proto: HTTP/2.0 @@ -66,33 +66,32 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000011636","name":"Test-LogStream-1674668511","type":"datadog","status":"active","sink":{"datadogApiKey":"121233123455","datadogRegion":"us"},"filters":[{"name":"auth.login.fail","type":"category"}]}' + body: '{"id":"lst_0000000000002075","name":"Test-LogStream-1732609495","type":"datadog","status":"active","sink":{"datadogApiKey":"121233123455","datadogRegion":"us"},"filters":[{"type":"category","name":"security"}],"isPriority":true}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 179.15075ms + duration: 411.343708ms - id: 2 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011636 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002075 method: GET response: proto: HTTP/2.0 @@ -102,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000011636","name":"Test-LogStream-1674668511","type":"datadog","status":"active","sink":{"datadogApiKey":"121233123455","datadogRegion":"us"},"filters":[{"name":"auth.login.fail","type":"category"}]}' + body: '{"id":"lst_0000000000002075","name":"Test-LogStream-1732609495","type":"datadog","status":"active","sink":{"datadogApiKey":"121233123455","datadogRegion":"us"},"filters":[{"type":"category","name":"security"}],"isPriority":true}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 92.629791ms + duration: 408.340084ms - id: 3 request: proto: HTTP/1.1 @@ -126,8 +125,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011636 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002075 method: DELETE response: proto: HTTP/2.0 @@ -143,4 +142,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 157.999917ms + duration: 409.014625ms diff --git a/test/data/recordings/TestLogStreamManager_Update/It_can_successfully_update_a_HTTP_LogStream.yaml b/test/data/recordings/TestLogStreamManager_Update/It_can_successfully_update_a_HTTP_LogStream.yaml index d38707c6..dd10d547 100644 --- a/test/data/recordings/TestLogStreamManager_Update/It_can_successfully_update_a_HTTP_LogStream.yaml +++ b/test/data/recordings/TestLogStreamManager_Update/It_can_successfully_update_a_HTTP_LogStream.yaml @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 233 + content_length: 252 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Test-LogStream-1674668511","type":"http","sink":{"httpContentFormat":"JSONLINES","httpContentType":"application/json","httpEndpoint":"https://example.com/logs","httpAuthorization":"Bearer f2368bbe77074527a37be2fdd5b92bad"}} + {"name":"Test-LogStream-1732609495","type":"http","isPriority":false,"sink":{"httpContentFormat":"JSONLINES","httpContentType":"application/json","httpEndpoint":"https://example.com/logs","httpAuthorization":"Bearer f2368bbe77074527a37be2fdd5b92bad"}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.11.2 url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000011635","name":"Test-LogStream-1674668511","type":"http","status":"active","sink":{"httpAuthorization":"Bearer f2368bbe77074527a37be2fdd5b92bad","httpContentFormat":"JSONLINES","httpContentType":"application/json","httpEndpoint":"https://example.com/logs"}}' + body: '{"id":"lst_0000000000002074","name":"Test-LogStream-1732609495","type":"http","status":"active","sink":{"httpAuthorization":"Bearer f2368bbe77074527a37be2fdd5b92bad","httpContentFormat":"JSONLINES","httpContentType":"application/json","httpEndpoint":"https://example.com/logs"},"isPriority":false}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 122.912042ms + duration: 351.00525ms - id: 1 request: proto: HTTP/1.1 @@ -55,8 +55,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011635 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002074 method: PATCH response: proto: HTTP/2.0 @@ -66,33 +66,32 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000011635","name":"Test-LogStream-1674668511","type":"http","status":"active","sink":{"httpAuthorization":"Bearer f2368bbe77074527a37be2fdd5b92bad","httpContentFormat":"JSONLINES","httpContentType":"application/json","httpEndpoint":"https://example.com/logs"},"filters":[{"name":"auth.login.fail","type":"category"}]}' + body: '{"id":"lst_0000000000002074","name":"Test-LogStream-1732609495","type":"http","status":"active","sink":{"httpAuthorization":"Bearer f2368bbe77074527a37be2fdd5b92bad","httpContentFormat":"JSONLINES","httpContentType":"application/json","httpEndpoint":"https://example.com/logs"},"filters":[{"name":"auth.login.fail","type":"category"}],"isPriority":false}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 112.412041ms + duration: 333.3535ms - id: 2 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011635 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002074 method: GET response: proto: HTTP/2.0 @@ -102,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000011635","name":"Test-LogStream-1674668511","type":"http","status":"active","sink":{"httpAuthorization":"Bearer f2368bbe77074527a37be2fdd5b92bad","httpContentFormat":"JSONLINES","httpContentType":"application/json","httpEndpoint":"https://example.com/logs"},"filters":[{"name":"auth.login.fail","type":"category"}]}' + body: '{"id":"lst_0000000000002074","name":"Test-LogStream-1732609495","type":"http","status":"active","sink":{"httpAuthorization":"Bearer f2368bbe77074527a37be2fdd5b92bad","httpContentFormat":"JSONLINES","httpContentType":"application/json","httpEndpoint":"https://example.com/logs"},"filters":[{"name":"auth.login.fail","type":"category"}],"isPriority":false}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 124.404334ms + duration: 362.754041ms - id: 3 request: proto: HTTP/1.1 @@ -126,8 +125,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011635 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002074 method: DELETE response: proto: HTTP/2.0 @@ -143,4 +142,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 118.382916ms + duration: 350.862584ms diff --git a/test/data/recordings/TestLogStreamManager_Update/It_can_successfully_update_a_Mixpanel_LogStream.yaml b/test/data/recordings/TestLogStreamManager_Update/It_can_successfully_update_a_Mixpanel_LogStream.yaml index bc01e480..06f9f6d6 100644 --- a/test/data/recordings/TestLogStreamManager_Update/It_can_successfully_update_a_Mixpanel_LogStream.yaml +++ b/test/data/recordings/TestLogStreamManager_Update/It_can_successfully_update_a_Mixpanel_LogStream.yaml @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 260 + content_length: 279 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Test-LogStream-1674668511","type":"mixpanel","sink":{"mixpanelRegion":"us","mixpanelProjectId":"123456789","mixpanelServiceAccountUsername":"fake-account.123abc.mp-service-account","mixpanelServiceAccountPassword":"8iwyKSzwV2brfakepassGGKhsZ3INozo"}} + {"name":"Test-LogStream-1732609495","type":"mixpanel","isPriority":false,"sink":{"mixpanelRegion":"us","mixpanelProjectId":"123456789","mixpanelServiceAccountUsername":"fake-account.123abc.mp-service-account","mixpanelServiceAccountPassword":"8iwyKSzwV2brfakepassGGKhsZ3INozo"}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.11.2 url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000011640","name":"Test-LogStream-1674668511","type":"mixpanel","status":"active","sink":{"mixpanelRegion":"us","mixpanelProjectId":"123456789","mixpanelServiceAccountUsername":"fake-account.123abc.mp-service-account","mixpanelServiceAccountPassword":"********"}}' + body: '{"id":"lst_0000000000002079","name":"Test-LogStream-1732609495","type":"mixpanel","status":"active","sink":{"mixpanelRegion":"us","mixpanelProjectId":"123456789","mixpanelServiceAccountUsername":"fake-account.123abc.mp-service-account","mixpanelServiceAccountPassword":"********"},"isPriority":false}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 110.933917ms + duration: 385.484584ms - id: 1 request: proto: HTTP/1.1 @@ -55,8 +55,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011640 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002079 method: PATCH response: proto: HTTP/2.0 @@ -66,33 +66,32 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000011640","name":"Test-LogStream-1674668511","type":"mixpanel","status":"active","sink":{"mixpanelRegion":"us","mixpanelProjectId":"123456789","mixpanelServiceAccountUsername":"fake-account.123abc.mp-service-account","mixpanelServiceAccountPassword":"********"},"filters":[{"name":"auth.login.fail","type":"category"}]}' + body: '{"id":"lst_0000000000002079","name":"Test-LogStream-1732609495","type":"mixpanel","status":"active","sink":{"mixpanelRegion":"us","mixpanelProjectId":"123456789","mixpanelServiceAccountUsername":"fake-account.123abc.mp-service-account","mixpanelServiceAccountPassword":"********"},"filters":[{"name":"auth.login.fail","type":"category"}],"isPriority":false}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 103.129584ms + duration: 353.285583ms - id: 2 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011640 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002079 method: GET response: proto: HTTP/2.0 @@ -102,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000011640","name":"Test-LogStream-1674668511","type":"mixpanel","status":"active","sink":{"mixpanelRegion":"us","mixpanelProjectId":"123456789","mixpanelServiceAccountUsername":"fake-account.123abc.mp-service-account","mixpanelServiceAccountPassword":"********"},"filters":[{"name":"auth.login.fail","type":"category"}]}' + body: '{"id":"lst_0000000000002079","name":"Test-LogStream-1732609495","type":"mixpanel","status":"active","sink":{"mixpanelRegion":"us","mixpanelProjectId":"123456789","mixpanelServiceAccountUsername":"fake-account.123abc.mp-service-account","mixpanelServiceAccountPassword":"********"},"filters":[{"name":"auth.login.fail","type":"category"}],"isPriority":false}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 101.611667ms + duration: 339.543375ms - id: 3 request: proto: HTTP/1.1 @@ -126,8 +125,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011640 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002079 method: DELETE response: proto: HTTP/2.0 @@ -143,4 +142,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 108.931292ms + duration: 361.933209ms diff --git a/test/data/recordings/TestLogStreamManager_Update/It_can_successfully_update_a_Segment_LogStream.yaml b/test/data/recordings/TestLogStreamManager_Update/It_can_successfully_update_a_Segment_LogStream.yaml index 4842c729..2950fbe4 100644 --- a/test/data/recordings/TestLogStreamManager_Update/It_can_successfully_update_a_Segment_LogStream.yaml +++ b/test/data/recordings/TestLogStreamManager_Update/It_can_successfully_update_a_Segment_LogStream.yaml @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 96 + content_length: 114 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Test-LogStream-1674668511","type":"segment","sink":{"segmentWriteKey":"121233123455"}} + {"name":"Test-LogStream-1732609495","type":"segment","isPriority":true,"sink":{"segmentWriteKey":"121233123455"}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.11.2 url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000011637","name":"Test-LogStream-1674668511","type":"segment","status":"active","sink":{"segmentWriteKey":"121233123455"}}' + body: '{"id":"lst_0000000000002076","name":"Test-LogStream-1732609495","type":"segment","status":"active","sink":{"segmentWriteKey":"121233123455"},"filters":[{"type":"category","name":"security"}],"isPriority":true}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 143.076875ms + duration: 358.053334ms - id: 1 request: proto: HTTP/1.1 @@ -55,8 +55,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011637 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002076 method: PATCH response: proto: HTTP/2.0 @@ -66,33 +66,32 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000011637","name":"Test-LogStream-1674668511","type":"segment","status":"active","sink":{"segmentWriteKey":"121233123455"},"filters":[{"name":"auth.login.fail","type":"category"}]}' + body: '{"id":"lst_0000000000002076","name":"Test-LogStream-1732609495","type":"segment","status":"active","sink":{"segmentWriteKey":"121233123455"},"filters":[{"type":"category","name":"security"}],"isPriority":true}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 141.710833ms + duration: 335.684125ms - id: 2 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011637 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002076 method: GET response: proto: HTTP/2.0 @@ -102,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000011637","name":"Test-LogStream-1674668511","type":"segment","status":"active","sink":{"segmentWriteKey":"121233123455"},"filters":[{"name":"auth.login.fail","type":"category"}]}' + body: '{"id":"lst_0000000000002076","name":"Test-LogStream-1732609495","type":"segment","status":"active","sink":{"segmentWriteKey":"121233123455"},"filters":[{"type":"category","name":"security"}],"isPriority":true}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 136.669041ms + duration: 355.871292ms - id: 3 request: proto: HTTP/1.1 @@ -126,8 +125,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011637 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002076 method: DELETE response: proto: HTTP/2.0 @@ -143,4 +142,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 107.119167ms + duration: 320.371292ms diff --git a/test/data/recordings/TestLogStreamManager_Update/It_can_successfully_update_a_Splunk_LogStream.yaml b/test/data/recordings/TestLogStreamManager_Update/It_can_successfully_update_a_Splunk_LogStream.yaml index 2f72720a..b2cc3973 100644 --- a/test/data/recordings/TestLogStreamManager_Update/It_can_successfully_update_a_Splunk_LogStream.yaml +++ b/test/data/recordings/TestLogStreamManager_Update/It_can_successfully_update_a_Splunk_LogStream.yaml @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 188 + content_length: 206 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Test-LogStream-1674668511","type":"splunk","sink":{"splunkDomain":"demo.splunk.com","splunkToken":"12a34ab5-c6d7-8901-23ef-456b7c89d0c1","splunkPort":"8080","splunkSecure":true}} + {"name":"Test-LogStream-1732609495","type":"splunk","isPriority":true,"sink":{"splunkDomain":"demo.splunk.com","splunkToken":"12a34ab5-c6d7-8901-23ef-456b7c89d0c1","splunkPort":"8080","splunkSecure":true}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.11.2 url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000011638","name":"Test-LogStream-1674668511","type":"splunk","status":"active","sink":{"splunkDomain":"demo.splunk.com","splunkPort":"8080","splunkToken":"12a34ab5-c6d7-8901-23ef-456b7c89d0c1","splunkSecure":true}}' + body: '{"id":"lst_0000000000002077","name":"Test-LogStream-1732609495","type":"splunk","status":"active","sink":{"splunkDomain":"demo.splunk.com","splunkPort":"8080","splunkToken":"12a34ab5-c6d7-8901-23ef-456b7c89d0c1","splunkSecure":true},"filters":[{"type":"category","name":"security"}],"isPriority":true}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 119.959583ms + duration: 358.517083ms - id: 1 request: proto: HTTP/1.1 @@ -55,8 +55,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011638 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002077 method: PATCH response: proto: HTTP/2.0 @@ -66,33 +66,32 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000011638","name":"Test-LogStream-1674668511","type":"splunk","status":"active","sink":{"splunkDomain":"demo.splunk.com","splunkPort":"8080","splunkToken":"12a34ab5-c6d7-8901-23ef-456b7c89d0c1","splunkSecure":true},"filters":[{"name":"auth.login.fail","type":"category"}]}' + body: '{"id":"lst_0000000000002077","name":"Test-LogStream-1732609495","type":"splunk","status":"active","sink":{"splunkDomain":"demo.splunk.com","splunkPort":"8080","splunkToken":"12a34ab5-c6d7-8901-23ef-456b7c89d0c1","splunkSecure":true},"filters":[{"type":"category","name":"security"}],"isPriority":true}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 101.224334ms + duration: 362.153666ms - id: 2 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011638 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002077 method: GET response: proto: HTTP/2.0 @@ -102,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000011638","name":"Test-LogStream-1674668511","type":"splunk","status":"active","sink":{"splunkDomain":"demo.splunk.com","splunkPort":"8080","splunkToken":"12a34ab5-c6d7-8901-23ef-456b7c89d0c1","splunkSecure":true},"filters":[{"name":"auth.login.fail","type":"category"}]}' + body: '{"id":"lst_0000000000002077","name":"Test-LogStream-1732609495","type":"splunk","status":"active","sink":{"splunkDomain":"demo.splunk.com","splunkPort":"8080","splunkToken":"12a34ab5-c6d7-8901-23ef-456b7c89d0c1","splunkSecure":true},"filters":[{"type":"category","name":"security"}],"isPriority":true}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 101.347916ms + duration: 313.050625ms - id: 3 request: proto: HTTP/1.1 @@ -126,8 +125,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011638 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002077 method: DELETE response: proto: HTTP/2.0 @@ -143,4 +142,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 102.014833ms + duration: 351.772875ms diff --git a/test/data/recordings/TestLogStreamManager_Update/It_can_successfully_update_a_Sumo_LogStream.yaml b/test/data/recordings/TestLogStreamManager_Update/It_can_successfully_update_a_Sumo_LogStream.yaml index 4308132b..d12980d1 100644 --- a/test/data/recordings/TestLogStreamManager_Update/It_can_successfully_update_a_Sumo_LogStream.yaml +++ b/test/data/recordings/TestLogStreamManager_Update/It_can_successfully_update_a_Sumo_LogStream.yaml @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 102 + content_length: 120 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Test-LogStream-1674668511","type":"sumo","sink":{"sumoSourceAddress":"https://example.com"}} + {"name":"Test-LogStream-1732609495","type":"sumo","isPriority":true,"sink":{"sumoSourceAddress":"https://example.com"}} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0/1.11.2 url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams method: POST response: @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000011639","name":"Test-LogStream-1674668511","type":"sumo","status":"active","sink":{"sumoSourceAddress":"https://example.com"}}' + body: '{"id":"lst_0000000000002078","name":"Test-LogStream-1732609495","type":"sumo","status":"active","sink":{"sumoSourceAddress":"https://example.com"},"filters":[{"type":"category","name":"security"}],"isPriority":true}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 133.308ms + duration: 366.437541ms - id: 1 request: proto: HTTP/1.1 @@ -55,8 +55,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011639 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002078 method: PATCH response: proto: HTTP/2.0 @@ -66,33 +66,32 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000011639","name":"Test-LogStream-1674668511","type":"sumo","status":"active","sink":{"sumoSourceAddress":"https://example.com"},"filters":[{"name":"auth.login.fail","type":"category"}]}' + body: '{"id":"lst_0000000000002078","name":"Test-LogStream-1732609495","type":"sumo","status":"active","sink":{"sumoSourceAddress":"https://example.com"},"filters":[{"type":"category","name":"security"}],"isPriority":true}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 6.227345959s + duration: 365.856667ms - id: 2 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [] trailer: {} host: go-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011639 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002078 method: GET response: proto: HTTP/2.0 @@ -102,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000011639","name":"Test-LogStream-1674668511","type":"sumo","status":"active","sink":{"sumoSourceAddress":"https://example.com"},"filters":[{"name":"auth.login.fail","type":"category"}]}' + body: '{"id":"lst_0000000000002078","name":"Test-LogStream-1732609495","type":"sumo","status":"active","sink":{"sumoSourceAddress":"https://example.com"},"filters":[{"type":"category","name":"security"}],"isPriority":true}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 115.771833ms + duration: 340.865541ms - id: 3 request: proto: HTTP/1.1 @@ -126,8 +125,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000011639 + - Go-Auth0/1.11.2 + url: https://go-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000002078 method: DELETE response: proto: HTTP/2.0 @@ -143,4 +142,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 120.21425ms + duration: 369.37975ms