Skip to content

Commit

Permalink
Fix azure test client secret tripping backend validation (#2635)
Browse files Browse the repository at this point in the history
  • Loading branch information
nkzou authored Aug 15, 2024
1 parent 52febbc commit 6c9e618
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tests/api/datadogV1/api_azure_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func generateUniqueAzureAccount(ctx context.Context, t *testing.T) (datadogV1.Az
clock := strconv.FormatInt(tests.ClockFromContext(ctx).Now().Unix(), 10)
var testAzureAcct = datadogV1.AzureAccount{
ClientId: datadog.PtrString("testc7f6-1234-5678-9101-tt" + clock),
ClientSecret: datadog.PtrString("testingx./Sw*g/Y33t..R1cH+hScMDt"),
ClientSecret: datadog.PtrString("TestingRh2nx664kUy5dIApvM54T4AtO"),
TenantName: &tenantName,
}

Expand Down
2 changes: 1 addition & 1 deletion tests/api/datadogV1/cassettes/TestAzureCreate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interactions:
remote_addr: ""
request_uri: ""
body: |
{"client_id":"testc7f6-1234-5678-9101-tt1692864865","client_secret":"testingx./Sw*g/Y33t..R1cH+hScMDt","tenant_name":"aaaaaaaa-bbbb-cccc-dddd-1692864865ee"}
{"client_id":"testc7f6-1234-5678-9101-tt1692864865","client_secret":"TestingRh2nx664kUy5dIApvM54T4AtO","tenant_name":"aaaaaaaa-bbbb-cccc-dddd-1692864865ee"}
form: {}
headers:
Accept:
Expand Down
4 changes: 2 additions & 2 deletions tests/api/datadogV1/cassettes/TestAzureListandDelete.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interactions:
remote_addr: ""
request_uri: ""
body: |
{"client_id":"testc7f6-1234-5678-9101-tt1720557371","client_secret":"testingx./Sw*g/Y33t..R1cH+hScMDt","tenant_name":"aaaaaaaa-bbbb-cccc-dddd-1720557371ee"}
{"client_id":"testc7f6-1234-5678-9101-tt1720557371","client_secret":"TestingRh2nx664kUy5dIApvM54T4AtO","tenant_name":"aaaaaaaa-bbbb-cccc-dddd-1720557371ee"}
form: {}
headers:
Accept:
Expand Down Expand Up @@ -127,7 +127,7 @@ interactions:
remote_addr: ""
request_uri: ""
body: |
{"client_id":"testc7f6-1234-5678-9101-tt1720557371","client_secret":"testingx./Sw*g/Y33t..R1cH+hScMDt","tenant_name":"aaaaaaaa-bbbb-cccc-dddd-1720557371ee"}
{"client_id":"testc7f6-1234-5678-9101-tt1720557371","client_secret":"TestingRh2nx664kUy5dIApvM54T4AtO","tenant_name":"aaaaaaaa-bbbb-cccc-dddd-1720557371ee"}
form: {}
headers:
Accept:
Expand Down
4 changes: 2 additions & 2 deletions tests/api/datadogV1/cassettes/TestUpdateAzureAccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interactions:
remote_addr: ""
request_uri: ""
body: |
{"client_id":"testc7f6-1234-5678-9101-tt1720557360","client_secret":"testingx./Sw*g/Y33t..R1cH+hScMDt","tenant_name":"aaaaaaaa-bbbb-cccc-dddd-1720557360ee"}
{"client_id":"testc7f6-1234-5678-9101-tt1720557360","client_secret":"TestingRh2nx664kUy5dIApvM54T4AtO","tenant_name":"aaaaaaaa-bbbb-cccc-dddd-1720557360ee"}
form: {}
headers:
Accept:
Expand Down Expand Up @@ -72,7 +72,7 @@ interactions:
remote_addr: ""
request_uri: ""
body: |
{"client_id":"testc7f6-1234-5678-9101-tt1720557360","client_secret":"testingx./Sw*g/Y33t..R1cH+hScMDt","host_filters":"filter:foo,test:bar","tenant_name":"aaaaaaaa-bbbb-cccc-dddd-1720557360ee"}
{"client_id":"testc7f6-1234-5678-9101-tt1720557360","client_secret":"TestingRh2nx664kUy5dIApvM54T4AtO","host_filters":"filter:foo,test:bar","tenant_name":"aaaaaaaa-bbbb-cccc-dddd-1720557360ee"}
form: {}
headers:
Accept:
Expand Down

0 comments on commit 6c9e618

Please sign in to comment.