Skip to content

Commit

Permalink
test(lql): fix case issue with host tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hazedav committed Apr 14, 2022
1 parent 5cfedda commit 30d7d7b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions integration/lql_constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ package integration
const (
evaluatorID string = "Cloudtrail"
queryID string = "CLI_AWS_CTA_IntegrationTest"
queryHostID string = "CLI_HOST_Files_IntegrationTest"
queryHostID string = "CLI_Host_Files_IntegrationTest"
queryText string = "{ source { CloudTrailRawEvents } return { INSERT_ID } }"
queryUpdateText string = "{ source { CloudTrailRawEvents } return { INSERT_ID, INSERT_TIME } }"
queryJSONTemplate string = `{
"queryID": "%s",
"queryText": "%s"
}`
queryURL string = "https://raw.githubusercontent.com/lacework/go-sdk/main/integration/test_resources/lql/CLI_AWS_CTA_IntegrationTest.yaml"
queryHostURL string = "https://raw.githubusercontent.com/lacework/go-sdk/main/integration/test_resources/lql/CLI_HOST_Files_IntegrationTest.yaml"
queryHostURL string = "https://raw.githubusercontent.com/lacework/go-sdk/main/integration/test_resources/lql/CLI_Host_Files_IntegrationTest.yaml"
)
2 changes: 1 addition & 1 deletion integration/policy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ tags:
newHostPolicyYAML string = `---
evaluatorId:
policyType: Violation
queryId: CLI_HOST_Files_IntegrationTest
queryId: CLI_Host_Files_IntegrationTest
title: My Policy Title
enabled: false
description: My Policy Description
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
evaluatorId:
queryId: CLI_HOST_Files_IntegrationTest
queryId: CLI_Host_Files_IntegrationTest
queryText: |-
--- This query produces a web (github) hosted object for "lacework query" integration testing
--- Specifically: TestPolicyCreateHost
CLI_HOST_Files_IntegrationTest {
CLI_Host_Files_IntegrationTest {
source {
LW_HE_FILES
}
Expand Down

0 comments on commit 30d7d7b

Please sign in to comment.