Skip to content

Commit

Permalink
fix(api): test changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ammarekbote committed Dec 7, 2022
1 parent 486e531 commit 1c05663
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion api/cloud_accounts_gcp_sidekick_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ func TestCloudAccountsGcpSidekickGet(t *testing.T) {
assert.Equal(t, "tokenTest", integrationData.Credentials.TokenUri)
assert.Equal(t, "proj1,proj2", integrationData.FilterList)
assert.Equal(t, "queryText", integrationData.QueryText)
assert.Equal(t, "token_"+integration.IntgGuid, integration.ServerToken)
}

func TestCloudAccountsGcpSidekickUpdate(t *testing.T) {
Expand Down Expand Up @@ -268,7 +269,10 @@ func getGcpData(id string, data api.GcpSidekickData) string {
"scanFrequency": ` + scanFrequency + `,
"scanContainers": ` + scanContainers + `,
"scanHostVulnerabilities": ` + scanHostVulnerabilities + `
}
},
"serverToken": {
"serverToken": "token_` + id + `"
}
}
`
}

0 comments on commit 1c05663

Please sign in to comment.