Skip to content
This repository was archived by the owner on Nov 7, 2025. It is now read-only.

Commit e97ce49

Browse files
authored
Add license headers to ITs (#884)
Addressing [review feedback](#876 (comment)) for which PR has been merged prematurely
1 parent 0fd545e commit e97ce49

File tree

8 files changed

+39
-0
lines changed

8 files changed

+39
-0
lines changed

.github/workflows/integration-tests.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,24 @@ jobs:
4747
id: get_author
4848
run: echo "::set-output name=author::$(git log -1 --pretty=format:'%an <%ae> sha1={%H}')"
4949

50+
- name: License Header Verification
51+
working-directory: ci/it
52+
run: |
53+
LICENSE_COMMENT="// Copyright Quesma, licensed under the Elastic License 2.0.
54+
// SPDX-License-Identifier: Elastic-2.0"
55+
failed=false
56+
while IFS= read -r -d '' file; do
57+
file_content=$(< "$file")
58+
59+
if [[ "$file_content" != "$LICENSE_COMMENT"* ]]; then
60+
echo "License header missing or incorrect in file: $file"
61+
failed=true
62+
fi
63+
done < <(find . -type f -name "*.go" -print0)
64+
if [ "$failed" = true ]; then
65+
exit 1
66+
fi
67+
5068
- name: Run integration tests
5169
working-directory: ci/it
5270
run: go test -v

ci/it/integration_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Quesma, licensed under the Elastic License 2.0.
2+
// SPDX-License-Identifier: Elastic-2.0
3+
14
package it
25

36
import (

ci/it/testcases/base.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Quesma, licensed under the Elastic License 2.0.
2+
// SPDX-License-Identifier: Elastic-2.0
3+
14
package testcases
25

36
import (

ci/it/testcases/test_dual_write_and_common_table.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Quesma, licensed under the Elastic License 2.0.
2+
// SPDX-License-Identifier: Elastic-2.0
3+
14
package testcases
25

36
import (

ci/it/testcases/test_reading_clickhouse_tables.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Quesma, licensed under the Elastic License 2.0.
2+
// SPDX-License-Identifier: Elastic-2.0
3+
14
package testcases
25

36
import (

ci/it/testcases/test_transparent_proxy.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Quesma, licensed under the Elastic License 2.0.
2+
// SPDX-License-Identifier: Elastic-2.0
3+
14
package testcases
25

36
import (

ci/it/testcases/test_two_pipelines.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Quesma, licensed under the Elastic License 2.0.
2+
// SPDX-License-Identifier: Elastic-2.0
3+
14
package testcases
25

36
import (

ci/it/testcases/utils.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Quesma, licensed under the Elastic License 2.0.
2+
// SPDX-License-Identifier: Elastic-2.0
3+
14
package testcases
25

36
import (

0 commit comments

Comments
 (0)