-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add integration test for partial routing
Signed-off-by: Dominik Rosiek <[email protected]>
- Loading branch information
Dominik Rosiek
committed
May 23, 2024
1 parent
e35edd9
commit 5f7b588
Showing
4 changed files
with
170 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
tests/integration/helm_ot_routing_additional_partially_test.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
//go:build allversions | ||
// +build allversions | ||
|
||
package integration | ||
|
||
import ( | ||
"testing" | ||
) | ||
|
||
func Test_Helm_Routing_Additional_Partially_OT(t *testing.T) { | ||
|
||
installChecks := []featureCheck{ | ||
CheckOtelcolMetadataLogsInstall, | ||
CheckOtelcolLogsCollectorInstall, | ||
} | ||
|
||
featInstall := GetInstallFeature(installChecks) | ||
|
||
featLogs := GetLogsFeature() | ||
featAdditionalLogs := GetAdditionalPartiallyLogsFeature() | ||
|
||
featDeployMock := DeployAdditionalSumologicMock() | ||
featDeleteMock := DeleteAdditionalSumologicMock() | ||
|
||
testenv.Test(t, featInstall, featDeployMock, featLogs, featAdditionalLogs, featDeleteMock) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
tests/integration/values/values_helm_routing_additional_partially_ot.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
sumologic: | ||
logs: | ||
otelcol: | ||
extraExporters: | ||
sumologic/additional-sumologic-mock: | ||
endpoint: http://sumologic-mock.additional-sumologic-mock:3000/receiver | ||
routing: | ||
table: | ||
- exporter: sumologic/additional-sumologic-mock | ||
statement: route() where resource.attributes["deployment"] == "logs-generator" | ||
|