diff --git a/.github/workflows/increment-plugin-versions.yml b/.github/workflows/increment-plugin-versions.yml index 8345174bb6..65ac0f28d9 100644 --- a/.github/workflows/increment-plugin-versions.yml +++ b/.github/workflows/increment-plugin-versions.yml @@ -47,6 +47,7 @@ jobs: - 3.x - '3.0' - '2.3' + - 1.x exclude: - {entry: {repo: geospatial}, branch: '1.3'} - {entry: {repo: notifications, path: notifications}, branch: '1.3'} diff --git a/.github/workflows/license-header-checker.yml b/.github/workflows/license-header-checker.yml new file mode 100644 index 0000000000..7813810efe --- /dev/null +++ b/.github/workflows/license-header-checker.yml @@ -0,0 +1,12 @@ +--- +name: License Header Checker + +on: [push, pull_request] + +jobs: + license-header-checker: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: Add License Header + uses: kt3k/license_checker@v1.0.6 diff --git a/.licenserc.json b/.licenserc.json new file mode 100644 index 0000000000..1bd48e84e9 --- /dev/null +++ b/.licenserc.json @@ -0,0 +1,6 @@ +{ +"**/*.{py,groovy,sh,js,ts}":[ + " Copyright OpenSearch Contributors", + " SPDX-License-Identifier: Apache-2.0" +] +} diff --git a/assemble.sh b/assemble.sh index 82e869d9cf..95371c1ed6 100755 --- a/assemble.sh +++ b/assemble.sh @@ -1,5 +1,6 @@ #!/bin/bash +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/build.sh b/build.sh index d97cd9ed42..28cf2aaadd 100755 --- a/build.sh +++ b/build.sh @@ -1,5 +1,6 @@ #!/bin/bash +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/checkout.sh b/checkout.sh index b246f2b55a..72b1eb0a60 100755 --- a/checkout.sh +++ b/checkout.sh @@ -1,5 +1,6 @@ #!/bin/bash +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/ci.sh b/ci.sh index c462fe7c74..d00db004f0 100755 --- a/ci.sh +++ b/ci.sh @@ -1,5 +1,6 @@ #!/bin/bash +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/deployment/.eslintrc.js b/deployment/.eslintrc.js index 8910fc83a4..62adbac8b7 100644 --- a/deployment/.eslintrc.js +++ b/deployment/.eslintrc.js @@ -1,3 +1,12 @@ +/* +* Copyright OpenSearch Contributors +* SPDX-License-Identifier: Apache-2.0 +* +* The OpenSearch Contributors require contributions made to +* this file be licensed under the Apache-2.0 license or a +* compatible open source license. +*/ + module.exports = { env: { browser: false, diff --git a/deployment/bin/build-artifact-stack.ts b/deployment/bin/build-artifact-stack.ts index c617d1fe80..902bc69456 100644 --- a/deployment/bin/build-artifact-stack.ts +++ b/deployment/bin/build-artifact-stack.ts @@ -1,3 +1,12 @@ +/* +* Copyright OpenSearch Contributors +* SPDX-License-Identifier: Apache-2.0 +* +* The OpenSearch Contributors require contributions made to +* this file be licensed under the Apache-2.0 license or a +* compatible open source license. +*/ + #!/usr/bin/env node import 'source-map-support/register'; import * as cdk from '@aws-cdk/core'; diff --git a/deployment/jest.config.js b/deployment/jest.config.js index 08263b8954..f7ad16a58e 100644 --- a/deployment/jest.config.js +++ b/deployment/jest.config.js @@ -1,3 +1,12 @@ +/* +* Copyright OpenSearch Contributors +* SPDX-License-Identifier: Apache-2.0 +* +* The OpenSearch Contributors require contributions made to +* this file be licensed under the Apache-2.0 license or a +* compatible open source license. +*/ + module.exports = { testEnvironment: 'node', roots: ['/test'], diff --git a/deployment/lambdas/cf-url-rewriter/cf-url-rewriter.ts b/deployment/lambdas/cf-url-rewriter/cf-url-rewriter.ts index 7e704e21d5..d03f029759 100644 --- a/deployment/lambdas/cf-url-rewriter/cf-url-rewriter.ts +++ b/deployment/lambdas/cf-url-rewriter/cf-url-rewriter.ts @@ -1,3 +1,12 @@ +/* +* Copyright OpenSearch Contributors +* SPDX-License-Identifier: Apache-2.0 +* +* The OpenSearch Contributors require contributions made to +* this file be licensed under the Apache-2.0 license or a +* compatible open source license. +*/ + import { CloudFrontRequest, CloudFrontRequestCallback, CloudFrontRequestEvent, Context } from 'aws-lambda'; import { httpsGet } from './https-get'; @@ -57,4 +66,4 @@ function errorResponse() { status: '404', statusDescription: 'Not found', }; -} \ No newline at end of file +} diff --git a/deployment/lambdas/cf-url-rewriter/https-get.ts b/deployment/lambdas/cf-url-rewriter/https-get.ts index 9374cdcafa..fa325db4e5 100644 --- a/deployment/lambdas/cf-url-rewriter/https-get.ts +++ b/deployment/lambdas/cf-url-rewriter/https-get.ts @@ -1,3 +1,12 @@ +/* +* Copyright OpenSearch Contributors +* SPDX-License-Identifier: Apache-2.0 +* +* The OpenSearch Contributors require contributions made to +* this file be licensed under the Apache-2.0 license or a +* compatible open source license. +*/ + import * as https from 'https'; export async function httpsGet(url: string) { @@ -32,4 +41,4 @@ export async function httpsGet(url: string) { }); }); }); -} \ No newline at end of file +} diff --git a/deployment/lib/artifacts-public-access.ts b/deployment/lib/artifacts-public-access.ts index 9f38e472a2..30230d2fee 100644 --- a/deployment/lib/artifacts-public-access.ts +++ b/deployment/lib/artifacts-public-access.ts @@ -1,3 +1,12 @@ +/* +* Copyright OpenSearch Contributors +* SPDX-License-Identifier: Apache-2.0 +* +* The OpenSearch Contributors require contributions made to +* this file be licensed under the Apache-2.0 license or a +* compatible open source license. +*/ + import { CloudFrontAllowedMethods, CloudFrontWebDistribution, LambdaEdgeEventType, OriginAccessIdentity } from '@aws-cdk/aws-cloudfront'; diff --git a/deployment/lib/buckets.ts b/deployment/lib/buckets.ts index 8027a04572..3b2a85a0a6 100644 --- a/deployment/lib/buckets.ts +++ b/deployment/lib/buckets.ts @@ -1,3 +1,12 @@ +/* +* Copyright OpenSearch Contributors +* SPDX-License-Identifier: Apache-2.0 +* +* The OpenSearch Contributors require contributions made to +* this file be licensed under the Apache-2.0 license or a +* compatible open source license. +*/ + import { AnyPrincipal, Role } from '@aws-cdk/aws-iam'; import { Bucket, IBucket } from '@aws-cdk/aws-s3'; diff --git a/deployment/lib/build-artifact-stack.ts b/deployment/lib/build-artifact-stack.ts index c96f5ac230..5dfdc9fbe5 100644 --- a/deployment/lib/build-artifact-stack.ts +++ b/deployment/lib/build-artifact-stack.ts @@ -1,3 +1,12 @@ +/* +* Copyright OpenSearch Contributors +* SPDX-License-Identifier: Apache-2.0 +* +* The OpenSearch Contributors require contributions made to +* this file be licensed under the Apache-2.0 license or a +* compatible open source license. +*/ + import { ArnPrincipal } from '@aws-cdk/aws-iam'; import { CfnParameter, Construct, Stack, StackProps, diff --git a/deployment/lib/identities.ts b/deployment/lib/identities.ts index ef85d91fe2..8271aa4211 100644 --- a/deployment/lib/identities.ts +++ b/deployment/lib/identities.ts @@ -1,3 +1,12 @@ +/* +* Copyright OpenSearch Contributors +* SPDX-License-Identifier: Apache-2.0 +* +* The OpenSearch Contributors require contributions made to +* this file be licensed under the Apache-2.0 license or a +* compatible open source license. +*/ + import { ArnPrincipal, IRole, Role } from '@aws-cdk/aws-iam'; import { IBucket } from '@aws-cdk/aws-s3'; import { Arn, Stack } from '@aws-cdk/core'; diff --git a/deployment/test/build-artifact-stack.test.ts b/deployment/test/build-artifact-stack.test.ts index db6bac5192..e51747da48 100644 --- a/deployment/test/build-artifact-stack.test.ts +++ b/deployment/test/build-artifact-stack.test.ts @@ -1,3 +1,12 @@ +/* +* Copyright OpenSearch Contributors +* SPDX-License-Identifier: Apache-2.0 +* +* The OpenSearch Contributors require contributions made to +* this file be licensed under the Apache-2.0 license or a +* compatible open source license. +*/ + import { countResources, expect, haveOutput, haveResourceLike, not } from '@aws-cdk/assert'; import { App } from '@aws-cdk/core'; import { BuildArtifactStack } from '../lib/build-artifact-stack'; diff --git a/deployment/test/lambdas/cf-url-rewriter/cf-url-rewriter.test.ts b/deployment/test/lambdas/cf-url-rewriter/cf-url-rewriter.test.ts index 9f51e41fcb..a117bde6cf 100644 --- a/deployment/test/lambdas/cf-url-rewriter/cf-url-rewriter.test.ts +++ b/deployment/test/lambdas/cf-url-rewriter/cf-url-rewriter.test.ts @@ -1,3 +1,12 @@ +/* +* Copyright OpenSearch Contributors +* SPDX-License-Identifier: Apache-2.0 +* +* The OpenSearch Contributors require contributions made to +* this file be licensed under the Apache-2.0 license or a +* compatible open source license. +*/ + import { CloudFrontEvent, CloudFrontHeaders, CloudFrontRequest, CloudFrontRequestCallback, CloudFrontRequestEvent, Context } from 'aws-lambda'; import { handler } from '../../../lambdas/cf-url-rewriter/cf-url-rewriter'; import { httpsGet } from '../../../lambdas/cf-url-rewriter/https-get'; @@ -192,4 +201,4 @@ function createTestEvent(uri: string): CloudFrontRequestEvent { event.Records = [{ cf: cf }]; return event; -} \ No newline at end of file +} diff --git a/deployment/test/lambdas/cf-url-rewriter/https-get.test.ts b/deployment/test/lambdas/cf-url-rewriter/https-get.test.ts index afe708d216..26bbe90719 100644 --- a/deployment/test/lambdas/cf-url-rewriter/https-get.test.ts +++ b/deployment/test/lambdas/cf-url-rewriter/https-get.test.ts @@ -1,3 +1,12 @@ +/* +* Copyright OpenSearch Contributors +* SPDX-License-Identifier: Apache-2.0 +* +* The OpenSearch Contributors require contributions made to +* this file be licensed under the Apache-2.0 license or a +* compatible open source license. +*/ + import { ClientRequest } from 'http'; import * as https from 'https'; import { Stream } from 'stream'; @@ -78,4 +87,4 @@ test('httpGet request error', async () => { } catch (e) { expect(e).toBe(error); } -}); \ No newline at end of file +}); diff --git a/docker/ci/build-image-multi-arch.sh b/docker/ci/build-image-multi-arch.sh index b95c91f188..2937918893 100755 --- a/docker/ci/build-image-multi-arch.sh +++ b/docker/ci/build-image-multi-arch.sh @@ -1,5 +1,6 @@ #!/bin/bash +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/docker/ci/build-image-single-arch.sh b/docker/ci/build-image-single-arch.sh index 3e242a4346..900bdf865b 100755 --- a/docker/ci/build-image-single-arch.sh +++ b/docker/ci/build-image-single-arch.sh @@ -1,5 +1,6 @@ #!/bin/bash +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/docker/ci/config/build-opensearch-dashboards-entrypoint.sh b/docker/ci/config/build-opensearch-dashboards-entrypoint.sh index 63462861e3..8907b69a1d 100755 --- a/docker/ci/config/build-opensearch-dashboards-entrypoint.sh +++ b/docker/ci/config/build-opensearch-dashboards-entrypoint.sh @@ -1,5 +1,6 @@ #!/bin/bash +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/docker/ci/config/cypress-setup.sh b/docker/ci/config/cypress-setup.sh index f83bf89561..5e2ff4c6bd 100755 --- a/docker/ci/config/cypress-setup.sh +++ b/docker/ci/config/cypress-setup.sh @@ -1,5 +1,6 @@ #!/bin/bash +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/docker/ci/config/jdk-setup.sh b/docker/ci/config/jdk-setup.sh index 20aa3297f0..1392f45d89 100755 --- a/docker/ci/config/jdk-setup.sh +++ b/docker/ci/config/jdk-setup.sh @@ -1,5 +1,6 @@ #!/bin/bash +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/docker/ci/config/yq-setup.sh b/docker/ci/config/yq-setup.sh index c9effffbd2..7bd4130aaf 100755 --- a/docker/ci/config/yq-setup.sh +++ b/docker/ci/config/yq-setup.sh @@ -1,5 +1,6 @@ #!/bin/bash +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/docker/release/build-image-multi-arch.sh b/docker/release/build-image-multi-arch.sh index 577625a273..726989fff7 100755 --- a/docker/release/build-image-multi-arch.sh +++ b/docker/release/build-image-multi-arch.sh @@ -1,5 +1,13 @@ #!/bin/bash +# Copyright OpenSearch Contributors +# SPDX-License-Identifier: Apache-2.0 +# +# The OpenSearch Contributors require contributions made to +# this file be licensed under the Apache-2.0 license or a +# compatible open source license. + + set -e # Import libs diff --git a/docker/release/build-image-single-arch.sh b/docker/release/build-image-single-arch.sh index 716833ae5d..bf89cbebd8 100755 --- a/docker/release/build-image-single-arch.sh +++ b/docker/release/build-image-single-arch.sh @@ -1,5 +1,6 @@ #!/bin/bash +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/jenkins/check-for-build.jenkinsfile b/jenkins/check-for-build.jenkinsfile index dcf2b3ff17..45a10180c3 100644 --- a/jenkins/check-for-build.jenkinsfile +++ b/jenkins/check-for-build.jenkinsfile @@ -1,4 +1,7 @@ -lib = library(identifier: "jenkins@20211123", retriever: legacySCM(scm)) +lib = library(identifier: 'jenkins@1.0.0', retriever: modernSCM([ + $class: 'GitSCMSource', + remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git', +])) pipeline { options { @@ -11,6 +14,8 @@ pipeline { } triggers { parameterizedCron ''' + H 1 * * * %INPUT_MANIFEST=1.3.6/opensearch-dashboards-1.3.6.yml;TARGET_JOB_NAME=distribution-build-opensearch-dashboards + H 1 * * * %INPUT_MANIFEST=2.3.1/opensearch-dashboards-2.3.1.yml;TARGET_JOB_NAME=distribution-build-opensearch-dashboards H 1 * * * %INPUT_MANIFEST=2.3.1/opensearch-2.3.1.yml;TARGET_JOB_NAME=distribution-build-opensearch H 1 * * * %INPUT_MANIFEST=2.4.0/opensearch-dashboards-2.4.0.yml;TARGET_JOB_NAME=distribution-build-opensearch-dashboards H 1 * * * %INPUT_MANIFEST=2.4.0/opensearch-2.4.0.yml;TARGET_JOB_NAME=distribution-build-opensearch diff --git a/jenkins/cross-cluster-replication/perf-test.jenkinsfile b/jenkins/cross-cluster-replication/perf-test.jenkinsfile index 7821d9580a..bf57543973 100644 --- a/jenkins/cross-cluster-replication/perf-test.jenkinsfile +++ b/jenkins/cross-cluster-replication/perf-test.jenkinsfile @@ -1,4 +1,7 @@ -lib = library(identifier: "jenkins@20211118", retriever: legacySCM(scm)) +lib = library(identifier: 'jenkins@1.0.0', retriever: modernSCM([ + $class: 'GitSCMSource', + remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git', +])) pipeline { agent none diff --git a/jenkins/data-prepper/release-data-prepper-all-artifacts.jenkinsfile b/jenkins/data-prepper/release-data-prepper-all-artifacts.jenkinsfile index a41cdc6e97..a7ba2070bc 100644 --- a/jenkins/data-prepper/release-data-prepper-all-artifacts.jenkinsfile +++ b/jenkins/data-prepper/release-data-prepper-all-artifacts.jenkinsfile @@ -1,4 +1,7 @@ -lib = library(identifier: 'jenkins@20211123', retriever: legacySCM(scm)) +lib = library(identifier: 'jenkins@1.0.0', retriever: modernSCM([ + $class: 'GitSCMSource', + remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git', +])) pipeline { options { diff --git a/jenkins/docker/docker-copy.jenkinsfile b/jenkins/docker/docker-copy.jenkinsfile index 814c9b9f3f..c2f3b3a93d 100644 --- a/jenkins/docker/docker-copy.jenkinsfile +++ b/jenkins/docker/docker-copy.jenkinsfile @@ -1,4 +1,7 @@ -lib = library(identifier: 'jenkins@20211123', retriever: legacySCM(scm)) +lib = library(identifier: 'jenkins@1.0.0', retriever: modernSCM([ + $class: 'GitSCMSource', + remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git', +])) pipeline { options { diff --git a/jenkins/docker/docker-scan.jenkinsfile b/jenkins/docker/docker-scan.jenkinsfile index b22178013e..d6e501ce00 100644 --- a/jenkins/docker/docker-scan.jenkinsfile +++ b/jenkins/docker/docker-scan.jenkinsfile @@ -1,4 +1,7 @@ -lib = library(identifier: 'jenkins@20211123', retriever: legacySCM(scm)) +lib = library(identifier: 'jenkins@1.0.0', retriever: modernSCM([ + $class: 'GitSCMSource', + remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git', +])) pipeline { options { diff --git a/jenkins/gradle/gradle-check.jenkinsfile b/jenkins/gradle/gradle-check.jenkinsfile index f099d5eaec..75b9b246d7 100644 --- a/jenkins/gradle/gradle-check.jenkinsfile +++ b/jenkins/gradle/gradle-check.jenkinsfile @@ -1,4 +1,7 @@ -lib = library(identifier: 'jenkins@20211123', retriever: legacySCM(scm)) +lib = library(identifier: 'jenkins@1.0.0', retriever: modernSCM([ + $class: 'GitSCMSource', + remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git', +])) pipeline { options { diff --git a/jenkins/opensearch-dashboards/bwc-test.jenkinsfile b/jenkins/opensearch-dashboards/bwc-test.jenkinsfile index 84a91034db..91fafe5df1 100644 --- a/jenkins/opensearch-dashboards/bwc-test.jenkinsfile +++ b/jenkins/opensearch-dashboards/bwc-test.jenkinsfile @@ -1,4 +1,7 @@ -lib = library(identifier: "jenkins@20211118", retriever: legacySCM(scm)) +lib = library(identifier: 'jenkins@1.0.0', retriever: modernSCM([ + $class: 'GitSCMSource', + remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git', +])) pipeline { options { diff --git a/jenkins/opensearch-dashboards/distribution-build.jenkinsfile b/jenkins/opensearch-dashboards/distribution-build.jenkinsfile index f6daefa585..bb43ce96e3 100644 --- a/jenkins/opensearch-dashboards/distribution-build.jenkinsfile +++ b/jenkins/opensearch-dashboards/distribution-build.jenkinsfile @@ -1,4 +1,7 @@ -lib = library(identifier: 'jenkins@20211123', retriever: legacySCM(scm)) +lib = library(identifier: 'jenkins@1.0.0', retriever: modernSCM([ + $class: 'GitSCMSource', + remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git', +])) pipeline { options { diff --git a/jenkins/opensearch-dashboards/integ-test.jenkinsfile b/jenkins/opensearch-dashboards/integ-test.jenkinsfile index 90dd217edb..b5239dc451 100644 --- a/jenkins/opensearch-dashboards/integ-test.jenkinsfile +++ b/jenkins/opensearch-dashboards/integ-test.jenkinsfile @@ -1,4 +1,7 @@ -lib = library(identifier: "jenkins@20211118", retriever: legacySCM(scm)) +lib = library(identifier: 'jenkins@1.0.0', retriever: modernSCM([ + $class: 'GitSCMSource', + remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git', +])) pipeline { options { diff --git a/jenkins/opensearch-maven-release/maven-sign-release.jenkinsfile b/jenkins/opensearch-maven-release/maven-sign-release.jenkinsfile index b709d1a17a..9193f43ab8 100644 --- a/jenkins/opensearch-maven-release/maven-sign-release.jenkinsfile +++ b/jenkins/opensearch-maven-release/maven-sign-release.jenkinsfile @@ -1,4 +1,7 @@ -lib = library(identifier: 'jenkins@20211123', retriever: legacySCM(scm)) +lib = library(identifier: 'jenkins@1.0.0', retriever: modernSCM([ + $class: 'GitSCMSource', + remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git', +])) pipeline { agent { diff --git a/jenkins/opensearch-ruby/opensearch-ruby.jenkinsfile b/jenkins/opensearch-ruby/opensearch-ruby.jenkinsfile index 7b5b4f0b30..0ee8f9ad2b 100644 --- a/jenkins/opensearch-ruby/opensearch-ruby.jenkinsfile +++ b/jenkins/opensearch-ruby/opensearch-ruby.jenkinsfile @@ -1,4 +1,7 @@ -lib = library(identifier: 'jenkins@20211123', retriever: legacySCM(scm)) +lib = library(identifier: 'jenkins@1.0.0', retriever: modernSCM([ + $class: 'GitSCMSource', + remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git', +])) pipeline { options { diff --git a/jenkins/opensearch/bwc-test.jenkinsfile b/jenkins/opensearch/bwc-test.jenkinsfile index bceb4d8ea4..30b1527187 100644 --- a/jenkins/opensearch/bwc-test.jenkinsfile +++ b/jenkins/opensearch/bwc-test.jenkinsfile @@ -1,4 +1,7 @@ -lib = library(identifier: "jenkins@20211118", retriever: legacySCM(scm)) +lib = library(identifier: 'jenkins@1.0.0', retriever: modernSCM([ + $class: 'GitSCMSource', + remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git', +])) pipeline { options { diff --git a/jenkins/opensearch/distribution-build.jenkinsfile b/jenkins/opensearch/distribution-build.jenkinsfile index 9de2ad2d22..33584a4b30 100644 --- a/jenkins/opensearch/distribution-build.jenkinsfile +++ b/jenkins/opensearch/distribution-build.jenkinsfile @@ -1,4 +1,7 @@ -lib = library(identifier: "jenkins@20211123", retriever: legacySCM(scm)) +lib = library(identifier: 'jenkins@1.0.0', retriever: modernSCM([ + $class: 'GitSCMSource', + remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git', +])) pipeline { options { diff --git a/jenkins/opensearch/integ-test.jenkinsfile b/jenkins/opensearch/integ-test.jenkinsfile index 9f92bacb55..6bc22d6cce 100644 --- a/jenkins/opensearch/integ-test.jenkinsfile +++ b/jenkins/opensearch/integ-test.jenkinsfile @@ -1,4 +1,7 @@ -lib = library(identifier: "jenkins@20211118", retriever: legacySCM(scm)) +lib = library(identifier: 'jenkins@1.0.0', retriever: modernSCM([ + $class: 'GitSCMSource', + remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git', +])) pipeline { options { diff --git a/jenkins/opensearch/perf-test.jenkinsfile b/jenkins/opensearch/perf-test.jenkinsfile index 9f3770d051..5aa3462e18 100644 --- a/jenkins/opensearch/perf-test.jenkinsfile +++ b/jenkins/opensearch/perf-test.jenkinsfile @@ -1,4 +1,7 @@ -lib = library(identifier: "jenkins@20211118", retriever: legacySCM(scm)) +lib = library(identifier: 'jenkins@1.0.0', retriever: modernSCM([ + $class: 'GitSCMSource', + remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git', +])) pipeline { agent none diff --git a/jenkins/promotion/promote-artifacts.jenkinsfile b/jenkins/promotion/promote-artifacts.jenkinsfile index b11dcefeba..95370a0baa 100644 --- a/jenkins/promotion/promote-artifacts.jenkinsfile +++ b/jenkins/promotion/promote-artifacts.jenkinsfile @@ -1,4 +1,7 @@ -lib = library(identifier: "jenkins@20211123", retriever: legacySCM(scm)) +lib = library(identifier: 'jenkins@1.0.0', retriever: modernSCM([ + $class: 'GitSCMSource', + remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git', +])) pipeline { options { diff --git a/jenkins/promotion/promote-docker-ecr.jenkinsfile b/jenkins/promotion/promote-docker-ecr.jenkinsfile index e3463f0711..b6f15686d4 100644 --- a/jenkins/promotion/promote-docker-ecr.jenkinsfile +++ b/jenkins/promotion/promote-docker-ecr.jenkinsfile @@ -1,4 +1,7 @@ -lib = library(identifier: 'jenkins@20211123', retriever: legacySCM(scm)) +lib = library(identifier: 'jenkins@1.0.0', retriever: modernSCM([ + $class: 'GitSCMSource', + remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git', +])) pipeline { options { diff --git a/jenkins/promotion/promote-yum-repos.jenkinsfile b/jenkins/promotion/promote-yum-repos.jenkinsfile index fbe39be251..078705526e 100644 --- a/jenkins/promotion/promote-yum-repos.jenkinsfile +++ b/jenkins/promotion/promote-yum-repos.jenkinsfile @@ -1,4 +1,7 @@ -lib = library(identifier: "jenkins@20211123", retriever: legacySCM(scm)) +lib = library(identifier: 'jenkins@1.0.0', retriever: modernSCM([ + $class: 'GitSCMSource', + remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git', +])) pipeline { options { diff --git a/jenkins/release-notes-check/release-notes-check.jenkinsfile b/jenkins/release-notes-check/release-notes-check.jenkinsfile index bc4dd84697..49f02e9b5e 100644 --- a/jenkins/release-notes-check/release-notes-check.jenkinsfile +++ b/jenkins/release-notes-check/release-notes-check.jenkinsfile @@ -1,4 +1,7 @@ -lib = library(identifier: 'jenkins@20211123', retriever: legacySCM(scm)) +lib = library(identifier: 'jenkins@1.0.0', retriever: modernSCM([ + $class: 'GitSCMSource', + remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git', +])) pipeline { options { diff --git a/jenkins/release-tag/release-tag.jenkinsfile b/jenkins/release-tag/release-tag.jenkinsfile index a621543580..ba327c217f 100644 --- a/jenkins/release-tag/release-tag.jenkinsfile +++ b/jenkins/release-tag/release-tag.jenkinsfile @@ -1,4 +1,7 @@ -lib = library(identifier: 'jenkins@20211123', retriever: legacySCM(scm)) +lib = library(identifier: 'jenkins@1.0.0', retriever: modernSCM([ + $class: 'GitSCMSource', + remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git', +])) pipeline { options { diff --git a/jenkins/rpm-validation/rpm-validation.jenkinsfile b/jenkins/rpm-validation/rpm-validation.jenkinsfile index bd3755a427..81433fa862 100644 --- a/jenkins/rpm-validation/rpm-validation.jenkinsfile +++ b/jenkins/rpm-validation/rpm-validation.jenkinsfile @@ -1,4 +1,7 @@ -lib = library(identifier: "jenkins@20211123", retriever: legacySCM(scm)) +lib = library(identifier: 'jenkins@1.0.0', retriever: modernSCM([ + $class: 'GitSCMSource', + remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git', +])) pipeline { agent none diff --git a/jenkins/sign-artifacts/sign-standalone-artifacts.jenkinsfile b/jenkins/sign-artifacts/sign-standalone-artifacts.jenkinsfile index 7a0e49211b..90459f8121 100644 --- a/jenkins/sign-artifacts/sign-standalone-artifacts.jenkinsfile +++ b/jenkins/sign-artifacts/sign-standalone-artifacts.jenkinsfile @@ -1,4 +1,7 @@ -lib = library(identifier: 'jenkins@20211123', retriever: legacySCM(scm)) +lib = library(identifier: 'jenkins@1.0.0', retriever: modernSCM([ + $class: 'GitSCMSource', + remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git', +])) pipeline { agent { diff --git a/lib/shell/file_management.sh b/lib/shell/file_management.sh index 4da919a1b3..d12bcc52e4 100644 --- a/lib/shell/file_management.sh +++ b/lib/shell/file_management.sh @@ -1,5 +1,6 @@ #!/bin/bash +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/lib/shell/process_control.sh b/lib/shell/process_control.sh index 03b2a4da2b..5468d8088c 100644 --- a/lib/shell/process_control.sh +++ b/lib/shell/process_control.sh @@ -1,5 +1,6 @@ #!/bin/bash +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/manifests.sh b/manifests.sh index bc521af958..619814eca1 100755 --- a/manifests.sh +++ b/manifests.sh @@ -1,5 +1,6 @@ #!/bin/bash +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/manifests/1.3.6/opensearch-1.3.6.yml b/manifests/1.3.6/opensearch-1.3.6.yml index edfd748474..648311ffba 100644 --- a/manifests/1.3.6/opensearch-1.3.6.yml +++ b/manifests/1.3.6/opensearch-1.3.6.yml @@ -14,6 +14,18 @@ components: checks: - gradle:publish - gradle:properties:version + - name: common-utils + repository: https://github.com/opensearch-project/common-utils.git + ref: '1.3' + checks: + - gradle:publish + - gradle:properties:version + - name: job-scheduler + repository: https://github.com/opensearch-project/job-scheduler.git + ref: '1.3' + checks: + - gradle:properties:version + - gradle:dependencies:opensearch.version - name: security repository: https://github.com/opensearch-project/security.git ref: '1.3' diff --git a/manifests/1.3.6/opensearch-dashboards-1.3.6.yml b/manifests/1.3.6/opensearch-dashboards-1.3.6.yml new file mode 100644 index 0000000000..28e1692b23 --- /dev/null +++ b/manifests/1.3.6/opensearch-dashboards-1.3.6.yml @@ -0,0 +1,12 @@ +--- +schema-version: '1.0' +build: + name: OpenSearch Dashboards + version: 1.3.6 +ci: + image: + name: opensearchstaging/ci-runner:ci-runner-centos7-opensearch-dashboards-build-v2 +components: + - name: OpenSearch-Dashboards + repository: https://github.com/opensearch-project/OpenSearch-Dashboards.git + ref: '1.3' diff --git a/manifests/2.3.1/opensearch-2.3.1.yml b/manifests/2.3.1/opensearch-2.3.1.yml index fc625a37e7..68c57dd78e 100644 --- a/manifests/2.3.1/opensearch-2.3.1.yml +++ b/manifests/2.3.1/opensearch-2.3.1.yml @@ -14,3 +14,19 @@ components: checks: - gradle:publish - gradle:properties:version + - name: common-utils + repository: https://github.com/opensearch-project/common-utils.git + ref: '2.3' + platforms: + - linux + checks: + - gradle:publish + - gradle:properties:version + - name: job-scheduler + repository: https://github.com/opensearch-project/job-scheduler.git + ref: '2.3' + platforms: + - linux + checks: + - gradle:properties:version + - gradle:dependencies:opensearch.version diff --git a/manifests/2.3.1/opensearch-dashboards-2.3.1.yml b/manifests/2.3.1/opensearch-dashboards-2.3.1.yml new file mode 100644 index 0000000000..ff4fb685af --- /dev/null +++ b/manifests/2.3.1/opensearch-dashboards-2.3.1.yml @@ -0,0 +1,12 @@ +--- +schema-version: '1.0' +build: + name: OpenSearch Dashboards + version: 2.3.1 +ci: + image: + name: opensearchstaging/ci-runner:ci-runner-centos7-opensearch-dashboards-build-v2 +components: + - name: OpenSearch-Dashboards + repository: https://github.com/opensearch-project/OpenSearch-Dashboards.git + ref: '2.3' diff --git a/publish/publish-snapshot.sh b/publish/publish-snapshot.sh index e2f4526e28..ebdf959ba4 100755 --- a/publish/publish-snapshot.sh +++ b/publish/publish-snapshot.sh @@ -1,5 +1,6 @@ #!/bin/bash +# Copyright OpenSearch Contributors ###### Information ############################################################################ # SPDX-License-Identifier: Apache-2.0 # diff --git a/publish/stage-maven-release.sh b/publish/stage-maven-release.sh index 828402ac50..7646d790bc 100755 --- a/publish/stage-maven-release.sh +++ b/publish/stage-maven-release.sh @@ -1,5 +1,6 @@ #!/bin/bash +# Copyright OpenSearch Contributors ###### Information ############################################################################ # SPDX-License-Identifier: Apache-2.0 # diff --git a/release_notes.sh b/release_notes.sh index aa961e7d58..d3a18443a6 100755 --- a/release_notes.sh +++ b/release_notes.sh @@ -1,5 +1,6 @@ #!/bin/bash +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/run.sh b/run.sh index 85c6e50b10..0829d44d9f 100755 --- a/run.sh +++ b/run.sh @@ -1,5 +1,6 @@ #!/bin/bash +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/scripts/components/OpenSearch-Dashboards/install.sh b/scripts/components/OpenSearch-Dashboards/install.sh index b827005b1f..b7865259c4 100755 --- a/scripts/components/OpenSearch-Dashboards/install.sh +++ b/scripts/components/OpenSearch-Dashboards/install.sh @@ -1,5 +1,6 @@ #!/bin/bash +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/scripts/components/OpenSearch/build.sh b/scripts/components/OpenSearch/build.sh index 7cd340d1a1..a091777650 100755 --- a/scripts/components/OpenSearch/build.sh +++ b/scripts/components/OpenSearch/build.sh @@ -1,5 +1,6 @@ #!/bin/bash +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/scripts/components/OpenSearch/bwctest.sh b/scripts/components/OpenSearch/bwctest.sh index 8565ae4eac..0adbf32101 100644 --- a/scripts/components/OpenSearch/bwctest.sh +++ b/scripts/components/OpenSearch/bwctest.sh @@ -1,5 +1,6 @@ #!/bin/bash +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/scripts/components/OpenSearch/install.sh b/scripts/components/OpenSearch/install.sh index dab4577f5c..13c0a37b8e 100755 --- a/scripts/components/OpenSearch/install.sh +++ b/scripts/components/OpenSearch/install.sh @@ -1,5 +1,6 @@ #!/bin/bash +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/scripts/components/OpenSearch/integtest.sh b/scripts/components/OpenSearch/integtest.sh index fb38c959b1..688adbaee5 100644 --- a/scripts/components/OpenSearch/integtest.sh +++ b/scripts/components/OpenSearch/integtest.sh @@ -1,5 +1,6 @@ #!/bin/bash +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/scripts/components/alerting/integtest.sh b/scripts/components/alerting/integtest.sh index fefdf0fdaa..ce87a5f70f 100755 --- a/scripts/components/alerting/integtest.sh +++ b/scripts/components/alerting/integtest.sh @@ -1,5 +1,13 @@ #!/bin/bash +# Copyright OpenSearch Contributors +# SPDX-License-Identifier: Apache-2.0 +# +# The OpenSearch Contributors require contributions made to +# this file be licensed under the Apache-2.0 license or a +# compatible open source license. + + set -e function usage() { diff --git a/scripts/components/customImportMapDashboards/build.sh b/scripts/components/customImportMapDashboards/build.sh index 5c0c14ec5c..31d31b6122 100644 --- a/scripts/components/customImportMapDashboards/build.sh +++ b/scripts/components/customImportMapDashboards/build.sh @@ -1,5 +1,6 @@ #!/bin/bash +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/scripts/components/functionalTestDashboards/build.sh b/scripts/components/functionalTestDashboards/build.sh index 0c7746dd6d..1d25468ca0 100755 --- a/scripts/components/functionalTestDashboards/build.sh +++ b/scripts/components/functionalTestDashboards/build.sh @@ -1,5 +1,6 @@ # SPDX-License-Identifier: Apache-2.0 # +# Copyright OpenSearch Contributors # The OpenSearch Contributors require contributions made to # this file be licensed under the Apache-2.0 license or a # compatible open source license. diff --git a/scripts/components/ganttChartDashboards/build.sh b/scripts/components/ganttChartDashboards/build.sh index fbe491e8da..60091ee35f 100755 --- a/scripts/components/ganttChartDashboards/build.sh +++ b/scripts/components/ganttChartDashboards/build.sh @@ -1,5 +1,6 @@ #!/bin/bash +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/scripts/components/notifications-core/build.sh b/scripts/components/notifications-core/build.sh index cdcf849b15..077ced6d19 100644 --- a/scripts/components/notifications-core/build.sh +++ b/scripts/components/notifications-core/build.sh @@ -1,5 +1,6 @@ #!/bin/bash +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/scripts/components/notifications/build.sh b/scripts/components/notifications/build.sh index 1e4e6a099a..82f8bdbe0e 100644 --- a/scripts/components/notifications/build.sh +++ b/scripts/components/notifications/build.sh @@ -1,5 +1,6 @@ #!/bin/bash +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/scripts/components/notificationsDashboards/build.sh b/scripts/components/notificationsDashboards/build.sh index 8da4fd92c5..e7a7123368 100755 --- a/scripts/components/notificationsDashboards/build.sh +++ b/scripts/components/notificationsDashboards/build.sh @@ -1,5 +1,6 @@ #!/bin/bash +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/scripts/components/observabilityDashboards/build.sh b/scripts/components/observabilityDashboards/build.sh index bee298b5ff..bb39410b5a 100755 --- a/scripts/components/observabilityDashboards/build.sh +++ b/scripts/components/observabilityDashboards/build.sh @@ -1,5 +1,6 @@ #!/bin/bash +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/scripts/components/performance-analyzer/install.sh b/scripts/components/performance-analyzer/install.sh index 0de12d6654..167601926f 100755 --- a/scripts/components/performance-analyzer/install.sh +++ b/scripts/components/performance-analyzer/install.sh @@ -1,5 +1,6 @@ #!/bin/bash +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/scripts/components/queryWorkbenchDashboards/build.sh b/scripts/components/queryWorkbenchDashboards/build.sh index 8da4fd92c5..e7a7123368 100755 --- a/scripts/components/queryWorkbenchDashboards/build.sh +++ b/scripts/components/queryWorkbenchDashboards/build.sh @@ -1,5 +1,6 @@ #!/bin/bash +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/scripts/components/reportsDashboards/build.sh b/scripts/components/reportsDashboards/build.sh index ea5dc3c5e7..ed6044a938 100755 --- a/scripts/components/reportsDashboards/build.sh +++ b/scripts/components/reportsDashboards/build.sh @@ -1,5 +1,6 @@ #!/bin/bash +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/scripts/components/sample_component/build.sh b/scripts/components/sample_component/build.sh index 24ba7295fc..090152887e 100755 --- a/scripts/components/sample_component/build.sh +++ b/scripts/components/sample_component/build.sh @@ -1,5 +1,6 @@ #!/bin/bash +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/scripts/default/bwctest.sh b/scripts/default/bwctest.sh index 4937072f3b..ea049f8167 100755 --- a/scripts/default/bwctest.sh +++ b/scripts/default/bwctest.sh @@ -1,5 +1,6 @@ #!/bin/bash +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/scripts/default/install.sh b/scripts/default/install.sh index b3f1c51df3..a7a1475e21 100755 --- a/scripts/default/install.sh +++ b/scripts/default/install.sh @@ -1,5 +1,6 @@ #!/bin/bash +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/scripts/default/integtest.sh b/scripts/default/integtest.sh index 0b5a6b892b..eb12e34a0d 100755 --- a/scripts/default/integtest.sh +++ b/scripts/default/integtest.sh @@ -1,5 +1,13 @@ #!/bin/bash +# Copyright OpenSearch Contributors +# SPDX-License-Identifier: Apache-2.0 +# +# The OpenSearch Contributors require contributions made to +# this file be licensed under the Apache-2.0 license or a +# compatible open source license. + + set -e function usage() { diff --git a/scripts/default/opensearch-dashboards/build.sh b/scripts/default/opensearch-dashboards/build.sh index 0d10f8c10e..b990fcf429 100755 --- a/scripts/default/opensearch-dashboards/build.sh +++ b/scripts/default/opensearch-dashboards/build.sh @@ -1,5 +1,6 @@ #!/bin/bash +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/scripts/default/opensearch/build.sh b/scripts/default/opensearch/build.sh index 3fbe1755b9..62da06fcb3 100755 --- a/scripts/default/opensearch/build.sh +++ b/scripts/default/opensearch/build.sh @@ -1,5 +1,6 @@ #!/bin/bash +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/scripts/deploy_single_tar_cluster.sh b/scripts/deploy_single_tar_cluster.sh index caefccbde3..e9be4ec605 100755 --- a/scripts/deploy_single_tar_cluster.sh +++ b/scripts/deploy_single_tar_cluster.sh @@ -1,5 +1,6 @@ #!/bin/bash +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/scripts/gradle/gradle-check.sh b/scripts/gradle/gradle-check.sh index e1d9d2467d..7647c6aeaa 100644 --- a/scripts/gradle/gradle-check.sh +++ b/scripts/gradle/gradle-check.sh @@ -1,5 +1,6 @@ #!/bin/bash +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # diff --git a/scripts/opensearch-onetime-setup.sh b/scripts/opensearch-onetime-setup.sh index 6093b2deeb..3935846905 100755 --- a/scripts/opensearch-onetime-setup.sh +++ b/scripts/opensearch-onetime-setup.sh @@ -1,5 +1,6 @@ #!/bin/bash +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/scripts/setup_runners.sh b/scripts/setup_runners.sh index 9964d7e654..933c5bb63b 100755 --- a/scripts/setup_runners.sh +++ b/scripts/setup_runners.sh @@ -1,5 +1,13 @@ #!/bin/bash +# Copyright OpenSearch Contributors +# SPDX-License-Identifier: Apache-2.0 +# +# The OpenSearch Contributors require contributions made to +# this file be licensed under the Apache-2.0 license or a +# compatible open source license. + + ###### Information ############################################################################ # Name: setup_runners.sh # diff --git a/sign.sh b/sign.sh index b4657863cc..6bf5038d6f 100755 --- a/sign.sh +++ b/sign.sh @@ -1,5 +1,13 @@ #!/bin/bash +# Copyright OpenSearch Contributors +# SPDX-License-Identifier: Apache-2.0 +# +# The OpenSearch Contributors require contributions made to +# this file be licensed under the Apache-2.0 license or a +# compatible open source license. + + set -e DIR="$(dirname "$0")" diff --git a/src/assemble_workflow/__init__.py b/src/assemble_workflow/__init__.py index bdd0c714d1..153f30145e 100644 --- a/src/assemble_workflow/__init__.py +++ b/src/assemble_workflow/__init__.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/assemble_workflow/assemble_args.py b/src/assemble_workflow/assemble_args.py index 21c3cf794c..2812095e77 100644 --- a/src/assemble_workflow/assemble_args.py +++ b/src/assemble_workflow/assemble_args.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/assemble_workflow/bundle.py b/src/assemble_workflow/bundle.py index f11ac7c5d2..2a3e467f55 100644 --- a/src/assemble_workflow/bundle.py +++ b/src/assemble_workflow/bundle.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/assemble_workflow/bundle_file_location.py b/src/assemble_workflow/bundle_file_location.py index 33f3dc1760..6ee2db4b0d 100644 --- a/src/assemble_workflow/bundle_file_location.py +++ b/src/assemble_workflow/bundle_file_location.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/assemble_workflow/bundle_location.py b/src/assemble_workflow/bundle_location.py index 34c932e6c3..54cf3f9418 100644 --- a/src/assemble_workflow/bundle_location.py +++ b/src/assemble_workflow/bundle_location.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/assemble_workflow/bundle_locations.py b/src/assemble_workflow/bundle_locations.py index 66b3169662..db3ed51918 100644 --- a/src/assemble_workflow/bundle_locations.py +++ b/src/assemble_workflow/bundle_locations.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/assemble_workflow/bundle_opensearch.py b/src/assemble_workflow/bundle_opensearch.py index d0a2c0f7b0..7767181d14 100644 --- a/src/assemble_workflow/bundle_opensearch.py +++ b/src/assemble_workflow/bundle_opensearch.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/assemble_workflow/bundle_opensearch_dashboards.py b/src/assemble_workflow/bundle_opensearch_dashboards.py index 6a819a4bab..1647488c02 100644 --- a/src/assemble_workflow/bundle_opensearch_dashboards.py +++ b/src/assemble_workflow/bundle_opensearch_dashboards.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/assemble_workflow/bundle_recorder.py b/src/assemble_workflow/bundle_recorder.py index c454c40977..5ac81963df 100644 --- a/src/assemble_workflow/bundle_recorder.py +++ b/src/assemble_workflow/bundle_recorder.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/assemble_workflow/bundle_rpm.py b/src/assemble_workflow/bundle_rpm.py index 44d978f5c6..2ce0917b74 100644 --- a/src/assemble_workflow/bundle_rpm.py +++ b/src/assemble_workflow/bundle_rpm.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/assemble_workflow/bundle_url_location.py b/src/assemble_workflow/bundle_url_location.py index 4d2c288be9..7603ba7afc 100644 --- a/src/assemble_workflow/bundle_url_location.py +++ b/src/assemble_workflow/bundle_url_location.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/assemble_workflow/bundles.py b/src/assemble_workflow/bundles.py index 2d06f14b60..29a3d2c5fb 100644 --- a/src/assemble_workflow/bundles.py +++ b/src/assemble_workflow/bundles.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/assemble_workflow/dist.py b/src/assemble_workflow/dist.py index da20186920..1bb64b02a3 100644 --- a/src/assemble_workflow/dist.py +++ b/src/assemble_workflow/dist.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/assemble_workflow/dists.py b/src/assemble_workflow/dists.py index a954810cb9..7a4b88345e 100644 --- a/src/assemble_workflow/dists.py +++ b/src/assemble_workflow/dists.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/build_workflow/__init__.py b/src/build_workflow/__init__.py index bdd0c714d1..153f30145e 100644 --- a/src/build_workflow/__init__.py +++ b/src/build_workflow/__init__.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/build_workflow/build_args.py b/src/build_workflow/build_args.py index 2b0309ae9e..9633e2ab7a 100644 --- a/src/build_workflow/build_args.py +++ b/src/build_workflow/build_args.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/build_workflow/build_artifact_check.py b/src/build_workflow/build_artifact_check.py index 5f1fff3127..88126635ad 100644 --- a/src/build_workflow/build_artifact_check.py +++ b/src/build_workflow/build_artifact_check.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/build_workflow/build_artifact_checks.py b/src/build_workflow/build_artifact_checks.py index c6be057e61..22c5df1e0d 100644 --- a/src/build_workflow/build_artifact_checks.py +++ b/src/build_workflow/build_artifact_checks.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/build_workflow/build_recorder.py b/src/build_workflow/build_recorder.py index d3118a8513..143614c693 100644 --- a/src/build_workflow/build_recorder.py +++ b/src/build_workflow/build_recorder.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/build_workflow/build_target.py b/src/build_workflow/build_target.py index 410f8add23..a892195717 100644 --- a/src/build_workflow/build_target.py +++ b/src/build_workflow/build_target.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/build_workflow/builder.py b/src/build_workflow/builder.py index dd3e70e4df..5db52a1dcf 100644 --- a/src/build_workflow/builder.py +++ b/src/build_workflow/builder.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/build_workflow/builder_from_dist.py b/src/build_workflow/builder_from_dist.py index 5572b871b1..4b18ccce63 100644 --- a/src/build_workflow/builder_from_dist.py +++ b/src/build_workflow/builder_from_dist.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/build_workflow/builder_from_source.py b/src/build_workflow/builder_from_source.py index dc78fec080..53c47bbb96 100644 --- a/src/build_workflow/builder_from_source.py +++ b/src/build_workflow/builder_from_source.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/build_workflow/builders.py b/src/build_workflow/builders.py index 4e8e929a1d..8295f585a4 100644 --- a/src/build_workflow/builders.py +++ b/src/build_workflow/builders.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/build_workflow/opensearch/__init__.py b/src/build_workflow/opensearch/__init__.py index bdd0c714d1..153f30145e 100644 --- a/src/build_workflow/opensearch/__init__.py +++ b/src/build_workflow/opensearch/__init__.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/build_workflow/opensearch/build_artifact_check_maven.py b/src/build_workflow/opensearch/build_artifact_check_maven.py index 917bfda391..dc651d5597 100644 --- a/src/build_workflow/opensearch/build_artifact_check_maven.py +++ b/src/build_workflow/opensearch/build_artifact_check_maven.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/build_workflow/opensearch/build_artifact_check_plugin.py b/src/build_workflow/opensearch/build_artifact_check_plugin.py index 94935613a5..0afe4c96d7 100644 --- a/src/build_workflow/opensearch/build_artifact_check_plugin.py +++ b/src/build_workflow/opensearch/build_artifact_check_plugin.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/build_workflow/opensearch_dashboards/__init__.py b/src/build_workflow/opensearch_dashboards/__init__.py index bdd0c714d1..153f30145e 100644 --- a/src/build_workflow/opensearch_dashboards/__init__.py +++ b/src/build_workflow/opensearch_dashboards/__init__.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/build_workflow/opensearch_dashboards/build_artifact_check_plugin.py b/src/build_workflow/opensearch_dashboards/build_artifact_check_plugin.py index f0c9e3d751..18315f6d7c 100644 --- a/src/build_workflow/opensearch_dashboards/build_artifact_check_plugin.py +++ b/src/build_workflow/opensearch_dashboards/build_artifact_check_plugin.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/checkout_workflow/__init__.py b/src/checkout_workflow/__init__.py index bdd0c714d1..153f30145e 100644 --- a/src/checkout_workflow/__init__.py +++ b/src/checkout_workflow/__init__.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/checkout_workflow/checkout_args.py b/src/checkout_workflow/checkout_args.py index cc020a8105..b8fb893c9e 100644 --- a/src/checkout_workflow/checkout_args.py +++ b/src/checkout_workflow/checkout_args.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/ci_workflow/__init__.py b/src/ci_workflow/__init__.py index bdd0c714d1..153f30145e 100644 --- a/src/ci_workflow/__init__.py +++ b/src/ci_workflow/__init__.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/ci_workflow/ci_args.py b/src/ci_workflow/ci_args.py index 1d4fe0c39d..ba54b32676 100644 --- a/src/ci_workflow/ci_args.py +++ b/src/ci_workflow/ci_args.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/ci_workflow/ci_check.py b/src/ci_workflow/ci_check.py index 80df30c4be..436b97f069 100644 --- a/src/ci_workflow/ci_check.py +++ b/src/ci_workflow/ci_check.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/ci_workflow/ci_check_gradle_dependencies.py b/src/ci_workflow/ci_check_gradle_dependencies.py index 9aeb9c097c..5295b85c75 100644 --- a/src/ci_workflow/ci_check_gradle_dependencies.py +++ b/src/ci_workflow/ci_check_gradle_dependencies.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/ci_workflow/ci_check_gradle_dependencies_opensearch.py b/src/ci_workflow/ci_check_gradle_dependencies_opensearch.py index 69d1c7090a..a807e1d01b 100644 --- a/src/ci_workflow/ci_check_gradle_dependencies_opensearch.py +++ b/src/ci_workflow/ci_check_gradle_dependencies_opensearch.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/ci_workflow/ci_check_gradle_properties.py b/src/ci_workflow/ci_check_gradle_properties.py index 749a57d8f7..4eb073c728 100644 --- a/src/ci_workflow/ci_check_gradle_properties.py +++ b/src/ci_workflow/ci_check_gradle_properties.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/ci_workflow/ci_check_gradle_properties_version.py b/src/ci_workflow/ci_check_gradle_properties_version.py index 7ab73f9922..56850ef645 100644 --- a/src/ci_workflow/ci_check_gradle_properties_version.py +++ b/src/ci_workflow/ci_check_gradle_properties_version.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/ci_workflow/ci_check_gradle_publish_to_maven_local.py b/src/ci_workflow/ci_check_gradle_publish_to_maven_local.py index 855cfb1e1a..dfdc6fab8a 100644 --- a/src/ci_workflow/ci_check_gradle_publish_to_maven_local.py +++ b/src/ci_workflow/ci_check_gradle_publish_to_maven_local.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/ci_workflow/ci_check_list.py b/src/ci_workflow/ci_check_list.py index 72e2aa6422..985ab6c3a1 100644 --- a/src/ci_workflow/ci_check_list.py +++ b/src/ci_workflow/ci_check_list.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/ci_workflow/ci_check_list_dist.py b/src/ci_workflow/ci_check_list_dist.py index 56e1a1fb69..2bb1780eec 100644 --- a/src/ci_workflow/ci_check_list_dist.py +++ b/src/ci_workflow/ci_check_list_dist.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/ci_workflow/ci_check_list_source.py b/src/ci_workflow/ci_check_list_source.py index a2ada40218..27cc8f7632 100644 --- a/src/ci_workflow/ci_check_list_source.py +++ b/src/ci_workflow/ci_check_list_source.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/ci_workflow/ci_check_list_source_ref.py b/src/ci_workflow/ci_check_list_source_ref.py index 782ffc7975..fbf86b143d 100644 --- a/src/ci_workflow/ci_check_list_source_ref.py +++ b/src/ci_workflow/ci_check_list_source_ref.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/ci_workflow/ci_check_lists.py b/src/ci_workflow/ci_check_lists.py index 86661b074d..dba0e8d398 100644 --- a/src/ci_workflow/ci_check_lists.py +++ b/src/ci_workflow/ci_check_lists.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/ci_workflow/ci_check_manifest_component.py b/src/ci_workflow/ci_check_manifest_component.py index a956edd832..cb9ae512d3 100644 --- a/src/ci_workflow/ci_check_manifest_component.py +++ b/src/ci_workflow/ci_check_manifest_component.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/ci_workflow/ci_check_npm_package_version.py b/src/ci_workflow/ci_check_npm_package_version.py index af15ae8aeb..4be327ba11 100644 --- a/src/ci_workflow/ci_check_npm_package_version.py +++ b/src/ci_workflow/ci_check_npm_package_version.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/ci_workflow/ci_check_package.py b/src/ci_workflow/ci_check_package.py index 12adcc4ef9..a73422176a 100644 --- a/src/ci_workflow/ci_check_package.py +++ b/src/ci_workflow/ci_check_package.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/ci_workflow/ci_input_manifest.py b/src/ci_workflow/ci_input_manifest.py index 45e84cc4a2..046f64eee7 100644 --- a/src/ci_workflow/ci_input_manifest.py +++ b/src/ci_workflow/ci_input_manifest.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/ci_workflow/ci_manifest.py b/src/ci_workflow/ci_manifest.py index cdcbb35e34..50f0865759 100644 --- a/src/ci_workflow/ci_manifest.py +++ b/src/ci_workflow/ci_manifest.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/ci_workflow/ci_manifests.py b/src/ci_workflow/ci_manifests.py index d303f0834e..18b5835fe2 100644 --- a/src/ci_workflow/ci_manifests.py +++ b/src/ci_workflow/ci_manifests.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/ci_workflow/ci_target.py b/src/ci_workflow/ci_target.py index 2454f0cda1..d7138e0314 100644 --- a/src/ci_workflow/ci_target.py +++ b/src/ci_workflow/ci_target.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/ci_workflow/ci_test_manifest.py b/src/ci_workflow/ci_test_manifest.py index 4b5d5603f2..8ee489ae65 100644 --- a/src/ci_workflow/ci_test_manifest.py +++ b/src/ci_workflow/ci_test_manifest.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/git/__init__.py b/src/git/__init__.py index bdd0c714d1..153f30145e 100644 --- a/src/git/__init__.py +++ b/src/git/__init__.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/git/git_commit.py b/src/git/git_commit.py index 7702fd8c5e..50c6630893 100644 --- a/src/git/git_commit.py +++ b/src/git/git_commit.py @@ -1,3 +1,11 @@ +# Copyright OpenSearch Contributors +# SPDX-License-Identifier: Apache-2.0 +# +# The OpenSearch Contributors require contributions made to +# this file be licensed under the Apache-2.0 license or a +# compatible open source license. + + class GitCommit: def __init__(self, id: str, date: str) -> None: diff --git a/src/git/git_repository.py b/src/git/git_repository.py index 984d10607f..5262fd0dc4 100644 --- a/src/git/git_repository.py +++ b/src/git/git_repository.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/jenkins/BuildManifest.groovy b/src/jenkins/BuildManifest.groovy index 6d0f40429a..d7a171301a 100644 --- a/src/jenkins/BuildManifest.groovy +++ b/src/jenkins/BuildManifest.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/src/jenkins/BundleManifest.groovy b/src/jenkins/BundleManifest.groovy index 3a00c71b57..f0f21b7916 100644 --- a/src/jenkins/BundleManifest.groovy +++ b/src/jenkins/BundleManifest.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/src/jenkins/InputManifest.groovy b/src/jenkins/InputManifest.groovy index 01b30807ad..3e86f15a8f 100644 --- a/src/jenkins/InputManifest.groovy +++ b/src/jenkins/InputManifest.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/src/jenkins/Messages.groovy b/src/jenkins/Messages.groovy index 176f0ddc94..edf9242357 100644 --- a/src/jenkins/Messages.groovy +++ b/src/jenkins/Messages.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to @@ -46,4 +47,4 @@ class Messages implements Serializable { return data } -} \ No newline at end of file +} diff --git a/src/jenkins/TestManifest.groovy b/src/jenkins/TestManifest.groovy index 4a86b407d0..645cfc412f 100644 --- a/src/jenkins/TestManifest.groovy +++ b/src/jenkins/TestManifest.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/src/manifests/__init__.py b/src/manifests/__init__.py index bdd0c714d1..153f30145e 100644 --- a/src/manifests/__init__.py +++ b/src/manifests/__init__.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/manifests/build/__init__.py b/src/manifests/build/__init__.py index bdd0c714d1..153f30145e 100644 --- a/src/manifests/build/__init__.py +++ b/src/manifests/build/__init__.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/manifests/build/build_manifest_1_0.py b/src/manifests/build/build_manifest_1_0.py index fc46829fc9..bf831e6fe6 100644 --- a/src/manifests/build/build_manifest_1_0.py +++ b/src/manifests/build/build_manifest_1_0.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/manifests/build/build_manifest_1_1.py b/src/manifests/build/build_manifest_1_1.py index a5512382ca..4b44d3d293 100644 --- a/src/manifests/build/build_manifest_1_1.py +++ b/src/manifests/build/build_manifest_1_1.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/manifests/build_manifest.py b/src/manifests/build_manifest.py index ed4bdf4202..45473bb815 100644 --- a/src/manifests/build_manifest.py +++ b/src/manifests/build_manifest.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/manifests/bundle/__init__.py b/src/manifests/bundle/__init__.py index bdd0c714d1..153f30145e 100644 --- a/src/manifests/bundle/__init__.py +++ b/src/manifests/bundle/__init__.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/manifests/bundle/bundle_manifest_1_0.py b/src/manifests/bundle/bundle_manifest_1_0.py index 1f69378307..1c8fee0445 100644 --- a/src/manifests/bundle/bundle_manifest_1_0.py +++ b/src/manifests/bundle/bundle_manifest_1_0.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/manifests/bundle_manifest.py b/src/manifests/bundle_manifest.py index 68b49d9ba7..b0887aafde 100644 --- a/src/manifests/bundle_manifest.py +++ b/src/manifests/bundle_manifest.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/manifests/component_manifest.py b/src/manifests/component_manifest.py index 453f0863bd..df608f37de 100644 --- a/src/manifests/component_manifest.py +++ b/src/manifests/component_manifest.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/manifests/distribution.py b/src/manifests/distribution.py index 5fc78a5711..78388d0701 100644 --- a/src/manifests/distribution.py +++ b/src/manifests/distribution.py @@ -1,3 +1,11 @@ +# Copyright OpenSearch Contributors +# SPDX-License-Identifier: Apache-2.0 +# +# The OpenSearch Contributors require contributions made to +# this file be licensed under the Apache-2.0 license or a +# compatible open source license. + + import logging import urllib.request from typing import List diff --git a/src/manifests/input_manifest.py b/src/manifests/input_manifest.py index 2f0fd71b01..bef276edec 100644 --- a/src/manifests/input_manifest.py +++ b/src/manifests/input_manifest.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/manifests/input_manifests.py b/src/manifests/input_manifests.py index 23654fb301..2d486e41c4 100644 --- a/src/manifests/input_manifests.py +++ b/src/manifests/input_manifests.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/manifests/manifest.py b/src/manifests/manifest.py index 1079a92fff..2ebbcf3324 100644 --- a/src/manifests/manifest.py +++ b/src/manifests/manifest.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/manifests/manifests.py b/src/manifests/manifests.py index 38b5e86314..45a4166653 100644 --- a/src/manifests/manifests.py +++ b/src/manifests/manifests.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/manifests/test_manifest.py b/src/manifests/test_manifest.py index 0a11f11866..6b18d18a56 100644 --- a/src/manifests/test_manifest.py +++ b/src/manifests/test_manifest.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/manifests_workflow/__init__.py b/src/manifests_workflow/__init__.py index bdd0c714d1..153f30145e 100644 --- a/src/manifests_workflow/__init__.py +++ b/src/manifests_workflow/__init__.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/manifests_workflow/component.py b/src/manifests_workflow/component.py index 8194266c05..138b1eb996 100644 --- a/src/manifests_workflow/component.py +++ b/src/manifests_workflow/component.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/manifests_workflow/component_opensearch.py b/src/manifests_workflow/component_opensearch.py index c1ed3d4b00..6f3188c9ed 100644 --- a/src/manifests_workflow/component_opensearch.py +++ b/src/manifests_workflow/component_opensearch.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/manifests_workflow/component_opensearch_dashboards_min.py b/src/manifests_workflow/component_opensearch_dashboards_min.py index 9c85f1ccc1..adfa9f891b 100644 --- a/src/manifests_workflow/component_opensearch_dashboards_min.py +++ b/src/manifests_workflow/component_opensearch_dashboards_min.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/manifests_workflow/component_opensearch_min.py b/src/manifests_workflow/component_opensearch_min.py index 3667ac0b7e..b3fa3913b6 100644 --- a/src/manifests_workflow/component_opensearch_min.py +++ b/src/manifests_workflow/component_opensearch_min.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/manifests_workflow/input_manifests.py b/src/manifests_workflow/input_manifests.py index 6e516b5682..7a7a0cff39 100644 --- a/src/manifests_workflow/input_manifests.py +++ b/src/manifests_workflow/input_manifests.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/manifests_workflow/input_manifests_opensearch.py b/src/manifests_workflow/input_manifests_opensearch.py index 2c20ef5b38..eaee31ebc7 100644 --- a/src/manifests_workflow/input_manifests_opensearch.py +++ b/src/manifests_workflow/input_manifests_opensearch.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/manifests_workflow/input_manifests_opensearch_dashboards.py b/src/manifests_workflow/input_manifests_opensearch_dashboards.py index a0515fb47b..8ce6d0fd9c 100644 --- a/src/manifests_workflow/input_manifests_opensearch_dashboards.py +++ b/src/manifests_workflow/input_manifests_opensearch_dashboards.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/manifests_workflow/manifests_args.py b/src/manifests_workflow/manifests_args.py index a8008b9128..2dbd6f5e8e 100644 --- a/src/manifests_workflow/manifests_args.py +++ b/src/manifests_workflow/manifests_args.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/paths/__init__.py b/src/paths/__init__.py index bdd0c714d1..153f30145e 100644 --- a/src/paths/__init__.py +++ b/src/paths/__init__.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/paths/assemble_output_dir.py b/src/paths/assemble_output_dir.py index dc630d1a79..48866b7193 100644 --- a/src/paths/assemble_output_dir.py +++ b/src/paths/assemble_output_dir.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/paths/build_output_dir.py b/src/paths/build_output_dir.py index c2ddf568b4..6b3021a24f 100644 --- a/src/paths/build_output_dir.py +++ b/src/paths/build_output_dir.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/paths/output_dir.py b/src/paths/output_dir.py index ca7ba05955..6c49f497ef 100644 --- a/src/paths/output_dir.py +++ b/src/paths/output_dir.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/paths/script_finder.py b/src/paths/script_finder.py index 032d6637d0..468331dcc4 100644 --- a/src/paths/script_finder.py +++ b/src/paths/script_finder.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/paths/tree_walker.py b/src/paths/tree_walker.py index 631d913620..b88f3854c1 100644 --- a/src/paths/tree_walker.py +++ b/src/paths/tree_walker.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/release_notes_workflow/__init__.py b/src/release_notes_workflow/__init__.py index bdd0c714d1..153f30145e 100644 --- a/src/release_notes_workflow/__init__.py +++ b/src/release_notes_workflow/__init__.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/release_notes_workflow/release_notes.py b/src/release_notes_workflow/release_notes.py index 3ca5e3b4fd..799213d6f1 100644 --- a/src/release_notes_workflow/release_notes.py +++ b/src/release_notes_workflow/release_notes.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/release_notes_workflow/release_notes_check_args.py b/src/release_notes_workflow/release_notes_check_args.py index 0b33b97112..52e9621944 100644 --- a/src/release_notes_workflow/release_notes_check_args.py +++ b/src/release_notes_workflow/release_notes_check_args.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/release_notes_workflow/release_notes_component.py b/src/release_notes_workflow/release_notes_component.py index 3e312d358e..1ffef28eea 100644 --- a/src/release_notes_workflow/release_notes_component.py +++ b/src/release_notes_workflow/release_notes_component.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/run_assemble.py b/src/run_assemble.py index 4a41c1b590..e2efd17dde 100755 --- a/src/run_assemble.py +++ b/src/run_assemble.py @@ -1,5 +1,5 @@ #!/usr/bin/env python - +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/run_build.py b/src/run_build.py index 694a2fa754..763f296500 100755 --- a/src/run_build.py +++ b/src/run_build.py @@ -1,5 +1,5 @@ #!/usr/bin/env python - +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/run_bwc_test.py b/src/run_bwc_test.py index 190d333e24..de0545fe5d 100755 --- a/src/run_bwc_test.py +++ b/src/run_bwc_test.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/run_checkout.py b/src/run_checkout.py index aa1cb94d48..d78e5fac2d 100755 --- a/src/run_checkout.py +++ b/src/run_checkout.py @@ -1,5 +1,5 @@ #!/usr/bin/env python - +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/run_ci.py b/src/run_ci.py index 4f3c2ab171..264bf9f6c1 100755 --- a/src/run_ci.py +++ b/src/run_ci.py @@ -1,5 +1,5 @@ #!/usr/bin/env python - +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/run_integ_test.py b/src/run_integ_test.py index 548f0d24cc..c5db8d63cf 100755 --- a/src/run_integ_test.py +++ b/src/run_integ_test.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/run_manifests.py b/src/run_manifests.py index 0ae79fdfe4..65f1a8d060 100755 --- a/src/run_manifests.py +++ b/src/run_manifests.py @@ -1,5 +1,5 @@ #!/usr/bin/env python - +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/run_releasenotes_check.py b/src/run_releasenotes_check.py index f22ddaba55..4b8bdccee3 100644 --- a/src/run_releasenotes_check.py +++ b/src/run_releasenotes_check.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/run_sign.py b/src/run_sign.py index 89edc6b4e9..7c6ee8d55c 100755 --- a/src/run_sign.py +++ b/src/run_sign.py @@ -1,5 +1,5 @@ #!/usr/bin/env python - +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/sign_workflow/__init__.py b/src/sign_workflow/__init__.py index bdd0c714d1..153f30145e 100644 --- a/src/sign_workflow/__init__.py +++ b/src/sign_workflow/__init__.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/sign_workflow/sign_args.py b/src/sign_workflow/sign_args.py index cefa5155f6..ce7060fd69 100644 --- a/src/sign_workflow/sign_args.py +++ b/src/sign_workflow/sign_args.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/sign_workflow/sign_artifacts.py b/src/sign_workflow/sign_artifacts.py index 3dbe3ee1c8..7b07b3e517 100644 --- a/src/sign_workflow/sign_artifacts.py +++ b/src/sign_workflow/sign_artifacts.py @@ -1,5 +1,5 @@ #!/usr/bin/env python - +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/sign_workflow/signer.py b/src/sign_workflow/signer.py index f68badb5fe..710719b226 100644 --- a/src/sign_workflow/signer.py +++ b/src/sign_workflow/signer.py @@ -1,5 +1,5 @@ #!/usr/bin/env python - +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/sign_workflow/signer_pgp.py b/src/sign_workflow/signer_pgp.py index 18675ddeac..9df368428e 100644 --- a/src/sign_workflow/signer_pgp.py +++ b/src/sign_workflow/signer_pgp.py @@ -1,5 +1,5 @@ #!/usr/bin/env python - +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/sign_workflow/signer_windows.py b/src/sign_workflow/signer_windows.py index 30ece8eb9b..e7193f0f43 100644 --- a/src/sign_workflow/signer_windows.py +++ b/src/sign_workflow/signer_windows.py @@ -1,5 +1,5 @@ #!/usr/bin/env python - +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/sign_workflow/signers.py b/src/sign_workflow/signers.py index 7d27fb57a9..fc0af9b354 100644 --- a/src/sign_workflow/signers.py +++ b/src/sign_workflow/signers.py @@ -1,5 +1,5 @@ #!/usr/bin/env python - +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/system/__init__.py b/src/system/__init__.py index bdd0c714d1..153f30145e 100644 --- a/src/system/__init__.py +++ b/src/system/__init__.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/system/config_file.py b/src/system/config_file.py index e6e833d6ba..8d018c6519 100644 --- a/src/system/config_file.py +++ b/src/system/config_file.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/system/console.py b/src/system/console.py index 01ee75c5de..cbe4cb4c3f 100644 --- a/src/system/console.py +++ b/src/system/console.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/system/execute.py b/src/system/execute.py index c25ae6dc75..8f9fd6da3f 100644 --- a/src/system/execute.py +++ b/src/system/execute.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/system/os.py b/src/system/os.py index 83079b8fe6..e86325d50d 100644 --- a/src/system/os.py +++ b/src/system/os.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/system/process.py b/src/system/process.py index 49ba7d0975..1fa137f8a9 100644 --- a/src/system/process.py +++ b/src/system/process.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/system/properties_file.py b/src/system/properties_file.py index dbc8a1b135..0a3f48d27b 100644 --- a/src/system/properties_file.py +++ b/src/system/properties_file.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/system/temporary_directory.py b/src/system/temporary_directory.py index ec775ec01f..5b7cac247b 100644 --- a/src/system/temporary_directory.py +++ b/src/system/temporary_directory.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/system/thread_safe_counter.py b/src/system/thread_safe_counter.py index 7899413813..258510e2b7 100644 --- a/src/system/thread_safe_counter.py +++ b/src/system/thread_safe_counter.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/system/working_directory.py b/src/system/working_directory.py index 017f3cda59..0359b6b58f 100644 --- a/src/system/working_directory.py +++ b/src/system/working_directory.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/system/zip_file.py b/src/system/zip_file.py index 1682a5c9b0..e16ff06e1f 100644 --- a/src/system/zip_file.py +++ b/src/system/zip_file.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/test_workflow/__init__.py b/src/test_workflow/__init__.py index bdd0c714d1..153f30145e 100644 --- a/src/test_workflow/__init__.py +++ b/src/test_workflow/__init__.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/test_workflow/bwc_test/__init__.py b/src/test_workflow/bwc_test/__init__.py index bdd0c714d1..153f30145e 100644 --- a/src/test_workflow/bwc_test/__init__.py +++ b/src/test_workflow/bwc_test/__init__.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/test_workflow/bwc_test/bwc_test_runner.py b/src/test_workflow/bwc_test/bwc_test_runner.py index 6cc7409827..c7e46bfa46 100644 --- a/src/test_workflow/bwc_test/bwc_test_runner.py +++ b/src/test_workflow/bwc_test/bwc_test_runner.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/test_workflow/bwc_test/bwc_test_runner_opensearch.py b/src/test_workflow/bwc_test/bwc_test_runner_opensearch.py index dcf4712ad9..4de7cd73f9 100644 --- a/src/test_workflow/bwc_test/bwc_test_runner_opensearch.py +++ b/src/test_workflow/bwc_test/bwc_test_runner_opensearch.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/test_workflow/bwc_test/bwc_test_runner_opensearch_dashboards.py b/src/test_workflow/bwc_test/bwc_test_runner_opensearch_dashboards.py index f4cb51eb77..8209dc26c9 100644 --- a/src/test_workflow/bwc_test/bwc_test_runner_opensearch_dashboards.py +++ b/src/test_workflow/bwc_test/bwc_test_runner_opensearch_dashboards.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/test_workflow/bwc_test/bwc_test_runners.py b/src/test_workflow/bwc_test/bwc_test_runners.py index 5689ce076a..e84cab9cd5 100644 --- a/src/test_workflow/bwc_test/bwc_test_runners.py +++ b/src/test_workflow/bwc_test/bwc_test_runners.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/test_workflow/bwc_test/bwc_test_start_properties.py b/src/test_workflow/bwc_test/bwc_test_start_properties.py index e6553463df..5e86ec4491 100644 --- a/src/test_workflow/bwc_test/bwc_test_start_properties.py +++ b/src/test_workflow/bwc_test/bwc_test_start_properties.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/test_workflow/bwc_test/bwc_test_start_properties_opensearch.py b/src/test_workflow/bwc_test/bwc_test_start_properties_opensearch.py index 6fed7bdd7c..704fbbe4ad 100644 --- a/src/test_workflow/bwc_test/bwc_test_start_properties_opensearch.py +++ b/src/test_workflow/bwc_test/bwc_test_start_properties_opensearch.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/test_workflow/bwc_test/bwc_test_start_properties_opensearch_dashboards.py b/src/test_workflow/bwc_test/bwc_test_start_properties_opensearch_dashboards.py index 237b9393fb..71830807ca 100644 --- a/src/test_workflow/bwc_test/bwc_test_start_properties_opensearch_dashboards.py +++ b/src/test_workflow/bwc_test/bwc_test_start_properties_opensearch_dashboards.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/test_workflow/bwc_test/bwc_test_suite_opensearch.py b/src/test_workflow/bwc_test/bwc_test_suite_opensearch.py index fa2cd70f5e..0b488f3c66 100644 --- a/src/test_workflow/bwc_test/bwc_test_suite_opensearch.py +++ b/src/test_workflow/bwc_test/bwc_test_suite_opensearch.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/test_workflow/bwc_test/bwc_test_suite_opensearch_dashboards.py b/src/test_workflow/bwc_test/bwc_test_suite_opensearch_dashboards.py index f2c20befee..051edf9a59 100644 --- a/src/test_workflow/bwc_test/bwc_test_suite_opensearch_dashboards.py +++ b/src/test_workflow/bwc_test/bwc_test_suite_opensearch_dashboards.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/test_workflow/dependency_installer.py b/src/test_workflow/dependency_installer.py index 0f1c347d76..55af11a437 100644 --- a/src/test_workflow/dependency_installer.py +++ b/src/test_workflow/dependency_installer.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/test_workflow/dependency_installer_opensearch.py b/src/test_workflow/dependency_installer_opensearch.py index 0a7c5e9fa2..2c7a8bf9e4 100644 --- a/src/test_workflow/dependency_installer_opensearch.py +++ b/src/test_workflow/dependency_installer_opensearch.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/test_workflow/dependency_installer_opensearch_dashboards.py b/src/test_workflow/dependency_installer_opensearch_dashboards.py index fe40b193f4..24bab9eba7 100644 --- a/src/test_workflow/dependency_installer_opensearch_dashboards.py +++ b/src/test_workflow/dependency_installer_opensearch_dashboards.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/test_workflow/integ_test/__init__.py b/src/test_workflow/integ_test/__init__.py index bdd0c714d1..153f30145e 100644 --- a/src/test_workflow/integ_test/__init__.py +++ b/src/test_workflow/integ_test/__init__.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/test_workflow/integ_test/distribution.py b/src/test_workflow/integ_test/distribution.py index f40ad5769b..fa3584bdde 100644 --- a/src/test_workflow/integ_test/distribution.py +++ b/src/test_workflow/integ_test/distribution.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/test_workflow/integ_test/distribution_rpm.py b/src/test_workflow/integ_test/distribution_rpm.py index 3a71ddbfce..9c6c5c316a 100644 --- a/src/test_workflow/integ_test/distribution_rpm.py +++ b/src/test_workflow/integ_test/distribution_rpm.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/test_workflow/integ_test/distribution_tar.py b/src/test_workflow/integ_test/distribution_tar.py index 5274698c02..c9c84d9159 100644 --- a/src/test_workflow/integ_test/distribution_tar.py +++ b/src/test_workflow/integ_test/distribution_tar.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/test_workflow/integ_test/distributions.py b/src/test_workflow/integ_test/distributions.py index 739e535496..7337fa63bd 100644 --- a/src/test_workflow/integ_test/distributions.py +++ b/src/test_workflow/integ_test/distributions.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/test_workflow/integ_test/integ_test_runner.py b/src/test_workflow/integ_test/integ_test_runner.py index 7968267e4f..5cd360f148 100644 --- a/src/test_workflow/integ_test/integ_test_runner.py +++ b/src/test_workflow/integ_test/integ_test_runner.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/test_workflow/integ_test/integ_test_runner_opensearch.py b/src/test_workflow/integ_test/integ_test_runner_opensearch.py index c023ebb62c..fd26f95512 100644 --- a/src/test_workflow/integ_test/integ_test_runner_opensearch.py +++ b/src/test_workflow/integ_test/integ_test_runner_opensearch.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/test_workflow/integ_test/integ_test_runner_opensearch_dashboards.py b/src/test_workflow/integ_test/integ_test_runner_opensearch_dashboards.py index 8eac303034..bee48ad595 100644 --- a/src/test_workflow/integ_test/integ_test_runner_opensearch_dashboards.py +++ b/src/test_workflow/integ_test/integ_test_runner_opensearch_dashboards.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/test_workflow/integ_test/integ_test_runners.py b/src/test_workflow/integ_test/integ_test_runners.py index d3389b6dd9..bc1b79190b 100644 --- a/src/test_workflow/integ_test/integ_test_runners.py +++ b/src/test_workflow/integ_test/integ_test_runners.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/test_workflow/integ_test/integ_test_start_properties.py b/src/test_workflow/integ_test/integ_test_start_properties.py index 10e430d73d..3dbd27f4a2 100644 --- a/src/test_workflow/integ_test/integ_test_start_properties.py +++ b/src/test_workflow/integ_test/integ_test_start_properties.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/test_workflow/integ_test/integ_test_start_properties_opensearch.py b/src/test_workflow/integ_test/integ_test_start_properties_opensearch.py index f120a2b7b7..be96186270 100644 --- a/src/test_workflow/integ_test/integ_test_start_properties_opensearch.py +++ b/src/test_workflow/integ_test/integ_test_start_properties_opensearch.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/test_workflow/integ_test/integ_test_start_properties_opensearch_dashboards.py b/src/test_workflow/integ_test/integ_test_start_properties_opensearch_dashboards.py index 2be077f4fd..7e095f1c7d 100644 --- a/src/test_workflow/integ_test/integ_test_start_properties_opensearch_dashboards.py +++ b/src/test_workflow/integ_test/integ_test_start_properties_opensearch_dashboards.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/test_workflow/integ_test/integ_test_suite.py b/src/test_workflow/integ_test/integ_test_suite.py index 8c016ac51b..876da30684 100644 --- a/src/test_workflow/integ_test/integ_test_suite.py +++ b/src/test_workflow/integ_test/integ_test_suite.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/test_workflow/integ_test/integ_test_suite_opensearch.py b/src/test_workflow/integ_test/integ_test_suite_opensearch.py index 3a3fb5c89d..5854078e8c 100644 --- a/src/test_workflow/integ_test/integ_test_suite_opensearch.py +++ b/src/test_workflow/integ_test/integ_test_suite_opensearch.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/test_workflow/integ_test/integ_test_suite_opensearch_dashboards.py b/src/test_workflow/integ_test/integ_test_suite_opensearch_dashboards.py index ed6821afa8..c00e72cdeb 100644 --- a/src/test_workflow/integ_test/integ_test_suite_opensearch_dashboards.py +++ b/src/test_workflow/integ_test/integ_test_suite_opensearch_dashboards.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/test_workflow/integ_test/local_test_cluster.py b/src/test_workflow/integ_test/local_test_cluster.py index ec83bba8e9..770ccb9ba1 100644 --- a/src/test_workflow/integ_test/local_test_cluster.py +++ b/src/test_workflow/integ_test/local_test_cluster.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/test_workflow/integ_test/local_test_cluster_opensearch_dashboards.py b/src/test_workflow/integ_test/local_test_cluster_opensearch_dashboards.py index 02cfd3d69a..3a8119816f 100644 --- a/src/test_workflow/integ_test/local_test_cluster_opensearch_dashboards.py +++ b/src/test_workflow/integ_test/local_test_cluster_opensearch_dashboards.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/test_workflow/integ_test/service.py b/src/test_workflow/integ_test/service.py index d091be940b..3dacfe0cd8 100644 --- a/src/test_workflow/integ_test/service.py +++ b/src/test_workflow/integ_test/service.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/test_workflow/integ_test/service_opensearch.py b/src/test_workflow/integ_test/service_opensearch.py index dbca70a64e..4431f4eaa0 100644 --- a/src/test_workflow/integ_test/service_opensearch.py +++ b/src/test_workflow/integ_test/service_opensearch.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/test_workflow/integ_test/service_opensearch_dashboards.py b/src/test_workflow/integ_test/service_opensearch_dashboards.py index 359410f591..2a393c858e 100644 --- a/src/test_workflow/integ_test/service_opensearch_dashboards.py +++ b/src/test_workflow/integ_test/service_opensearch_dashboards.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/test_workflow/integ_test/service_termination_result.py b/src/test_workflow/integ_test/service_termination_result.py index 7b8b2ab7ea..633df9dfc2 100644 --- a/src/test_workflow/integ_test/service_termination_result.py +++ b/src/test_workflow/integ_test/service_termination_result.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/test_workflow/perf_test/__init__.py b/src/test_workflow/perf_test/__init__.py index bdd0c714d1..153f30145e 100644 --- a/src/test_workflow/perf_test/__init__.py +++ b/src/test_workflow/perf_test/__init__.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/test_workflow/perf_test/perf_test_cluster.py b/src/test_workflow/perf_test/perf_test_cluster.py index 63ebddd975..93213f0402 100644 --- a/src/test_workflow/perf_test/perf_test_cluster.py +++ b/src/test_workflow/perf_test/perf_test_cluster.py @@ -1,3 +1,11 @@ +# Copyright OpenSearch Contributors +# SPDX-License-Identifier: Apache-2.0 +# +# The OpenSearch Contributors require contributions made to +# this file be licensed under the Apache-2.0 license or a +# compatible open source license. + + import abc import json import logging diff --git a/src/test_workflow/perf_test/perf_test_cluster_config.py b/src/test_workflow/perf_test/perf_test_cluster_config.py index 3cce942ff7..6e54ddd532 100644 --- a/src/test_workflow/perf_test/perf_test_cluster_config.py +++ b/src/test_workflow/perf_test/perf_test_cluster_config.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/test_workflow/perf_test/perf_test_runner.py b/src/test_workflow/perf_test/perf_test_runner.py index 238ce3318b..4d654aa74a 100644 --- a/src/test_workflow/perf_test/perf_test_runner.py +++ b/src/test_workflow/perf_test/perf_test_runner.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/test_workflow/perf_test/perf_test_runner_opensearch.py b/src/test_workflow/perf_test/perf_test_runner_opensearch.py index 95e48ba877..9407a04f89 100644 --- a/src/test_workflow/perf_test/perf_test_runner_opensearch.py +++ b/src/test_workflow/perf_test/perf_test_runner_opensearch.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/test_workflow/perf_test/perf_test_runner_opensearch_plugins.py b/src/test_workflow/perf_test/perf_test_runner_opensearch_plugins.py index 29682ac126..da4892aae8 100644 --- a/src/test_workflow/perf_test/perf_test_runner_opensearch_plugins.py +++ b/src/test_workflow/perf_test/perf_test_runner_opensearch_plugins.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/test_workflow/perf_test/perf_test_runners.py b/src/test_workflow/perf_test/perf_test_runners.py index f60b65a7f0..db1563bf4a 100644 --- a/src/test_workflow/perf_test/perf_test_runners.py +++ b/src/test_workflow/perf_test/perf_test_runners.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/test_workflow/perf_test/perf_test_suite.py b/src/test_workflow/perf_test/perf_test_suite.py index 04fc6a7d0a..9f5555ff61 100644 --- a/src/test_workflow/perf_test/perf_test_suite.py +++ b/src/test_workflow/perf_test/perf_test_suite.py @@ -1,3 +1,11 @@ +# Copyright OpenSearch Contributors +# SPDX-License-Identifier: Apache-2.0 +# +# The OpenSearch Contributors require contributions made to +# this file be licensed under the Apache-2.0 license or a +# compatible open source license. + + import json import os import subprocess diff --git a/src/test_workflow/test_cluster.py b/src/test_workflow/test_cluster.py index b2874d8864..22454dbd88 100644 --- a/src/test_workflow/test_cluster.py +++ b/src/test_workflow/test_cluster.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/test_workflow/test_component.py b/src/test_workflow/test_component.py index 70a1051a84..8d0a7b74f7 100644 --- a/src/test_workflow/test_component.py +++ b/src/test_workflow/test_component.py @@ -1,5 +1,5 @@ #!/usr/bin/env python - +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/test_workflow/test_kwargs.py b/src/test_workflow/test_kwargs.py index 1dc33477bd..3518485fae 100644 --- a/src/test_workflow/test_kwargs.py +++ b/src/test_workflow/test_kwargs.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/test_workflow/test_recorder/__init__.py b/src/test_workflow/test_recorder/__init__.py index bdd0c714d1..153f30145e 100644 --- a/src/test_workflow/test_recorder/__init__.py +++ b/src/test_workflow/test_recorder/__init__.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/test_workflow/test_recorder/log_recorder.py b/src/test_workflow/test_recorder/log_recorder.py index 051c021687..1ffccfd876 100644 --- a/src/test_workflow/test_recorder/log_recorder.py +++ b/src/test_workflow/test_recorder/log_recorder.py @@ -1,3 +1,11 @@ +# Copyright OpenSearch Contributors +# SPDX-License-Identifier: Apache-2.0 +# +# The OpenSearch Contributors require contributions made to +# this file be licensed under the Apache-2.0 license or a +# compatible open source license. + + import abc from test_workflow.test_recorder.test_result_data import TestResultData diff --git a/src/test_workflow/test_recorder/test_recorder.py b/src/test_workflow/test_recorder/test_recorder.py index 9a1b48af29..089fbf6a18 100644 --- a/src/test_workflow/test_recorder/test_recorder.py +++ b/src/test_workflow/test_recorder/test_recorder.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/test_workflow/test_recorder/test_result_data.py b/src/test_workflow/test_recorder/test_result_data.py index 6b7a57c0c5..c6537aa3f3 100644 --- a/src/test_workflow/test_recorder/test_result_data.py +++ b/src/test_workflow/test_recorder/test_result_data.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/test_workflow/test_result/__init__.py b/src/test_workflow/test_result/__init__.py index bdd0c714d1..153f30145e 100644 --- a/src/test_workflow/test_result/__init__.py +++ b/src/test_workflow/test_result/__init__.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/src/test_workflow/test_result/test_component_results.py b/src/test_workflow/test_result/test_component_results.py index 056df087fd..39a11de245 100644 --- a/src/test_workflow/test_result/test_component_results.py +++ b/src/test_workflow/test_result/test_component_results.py @@ -1,3 +1,11 @@ +# Copyright OpenSearch Contributors +# SPDX-License-Identifier: Apache-2.0 +# +# The OpenSearch Contributors require contributions made to +# this file be licensed under the Apache-2.0 license or a +# compatible open source license. + + from sortedcontainers import SortedDict from test_workflow.test_result.test_result import TestResult # type: ignore diff --git a/src/test_workflow/test_result/test_result.py b/src/test_workflow/test_result/test_result.py index 49dc778406..b90fe672dd 100644 --- a/src/test_workflow/test_result/test_result.py +++ b/src/test_workflow/test_result/test_result.py @@ -1,3 +1,11 @@ +# Copyright OpenSearch Contributors +# SPDX-License-Identifier: Apache-2.0 +# +# The OpenSearch Contributors require contributions made to +# this file be licensed under the Apache-2.0 license or a +# compatible open source license. + + import logging from typing import Callable diff --git a/src/test_workflow/test_result/test_suite_results.py b/src/test_workflow/test_result/test_suite_results.py index de0f941a81..6136074426 100644 --- a/src/test_workflow/test_result/test_suite_results.py +++ b/src/test_workflow/test_result/test_suite_results.py @@ -1,3 +1,11 @@ +# Copyright OpenSearch Contributors +# SPDX-License-Identifier: Apache-2.0 +# +# The OpenSearch Contributors require contributions made to +# this file be licensed under the Apache-2.0 license or a +# compatible open source license. + + from sortedcontainers import SortedDict from test_workflow.test_result.test_component_results import TestComponentResults # type: ignore diff --git a/test.sh b/test.sh index c628e6a1e6..abb6bb8f85 100755 --- a/test.sh +++ b/test.sh @@ -1,5 +1,6 @@ #!/bin/bash +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/__init__.py b/tests/__init__.py index bff4c3df87..f3bc442dbf 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/BuildPipelineTest.groovy b/tests/jenkins/BuildPipelineTest.groovy index cab958f4d6..e0d922ebf8 100644 --- a/tests/jenkins/BuildPipelineTest.groovy +++ b/tests/jenkins/BuildPipelineTest.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to @@ -10,7 +11,7 @@ package jenkins.tests import org.junit.* import static com.lesfurets.jenkins.unit.global.lib.LibraryConfiguration.library -import static com.lesfurets.jenkins.unit.global.lib.ProjectSource.projectSource +import static com.lesfurets.jenkins.unit.global.lib.GitSource.gitSource import com.lesfurets.jenkins.unit.* import org.yaml.snakeyaml.Yaml @@ -36,11 +37,11 @@ abstract class BuildPipelineTest extends CommonPipelineTest { helper.registerSharedLibrary( library().name('jenkins') - .defaultVersion('') + .defaultVersion('main') .allowOverride(true) .implicit(true) - .targetPath('') - .retriever(projectSource()) + .targetPath('vars') + .retriever(gitSource('https://github.com/opensearch-project/opensearch-build-libraries.git')) .build() ) @@ -51,6 +52,8 @@ abstract class BuildPipelineTest extends CommonPipelineTest { binding.setVariable('scm', {}) helper.registerAllowedMethod("legacySCM", [Closure.class], null) + + helper.registerAllowedMethod("modernSCM", [Map.class], null) helper.registerAllowedMethod("library", [Map.class], { Map args -> helper.getLibLoader().loadLibrary(args["identifier"]) diff --git a/tests/jenkins/LibFunctionTester.groovy b/tests/jenkins/LibFunctionTester.groovy index 22288a56aa..a8e5f0ba7d 100644 --- a/tests/jenkins/LibFunctionTester.groovy +++ b/tests/jenkins/LibFunctionTester.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/TestArchiveAssembleUpload.groovy b/tests/jenkins/TestArchiveAssembleUpload.groovy index 3bb124e568..cd598d7a91 100644 --- a/tests/jenkins/TestArchiveAssembleUpload.groovy +++ b/tests/jenkins/TestArchiveAssembleUpload.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/TestAssembleManifest.groovy b/tests/jenkins/TestAssembleManifest.groovy index d45990088f..0dbe7ee0c1 100644 --- a/tests/jenkins/TestAssembleManifest.groovy +++ b/tests/jenkins/TestAssembleManifest.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/TestAssembleUpload.groovy b/tests/jenkins/TestAssembleUpload.groovy index 1f99419c71..9c4398569e 100644 --- a/tests/jenkins/TestAssembleUpload.groovy +++ b/tests/jenkins/TestAssembleUpload.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/TestBuildArchive.groovy b/tests/jenkins/TestBuildArchive.groovy index e00d1a8d1e..d2a73987c1 100644 --- a/tests/jenkins/TestBuildArchive.groovy +++ b/tests/jenkins/TestBuildArchive.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/TestBuildAssembleUpload.groovy b/tests/jenkins/TestBuildAssembleUpload.groovy index 4a00540bdd..2dadb3ef31 100644 --- a/tests/jenkins/TestBuildAssembleUpload.groovy +++ b/tests/jenkins/TestBuildAssembleUpload.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/TestBuildDockerImage.groovy b/tests/jenkins/TestBuildDockerImage.groovy index 0bebaf1de0..6f490a87cb 100644 --- a/tests/jenkins/TestBuildDockerImage.groovy +++ b/tests/jenkins/TestBuildDockerImage.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/TestBuildFailureMessage.groovy b/tests/jenkins/TestBuildFailureMessage.groovy index fbe0931c00..9edee45c71 100644 --- a/tests/jenkins/TestBuildFailureMessage.groovy +++ b/tests/jenkins/TestBuildFailureMessage.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/TestBuildInfoYaml.groovy b/tests/jenkins/TestBuildInfoYaml.groovy index c7f5329ee8..ce3886aa61 100644 --- a/tests/jenkins/TestBuildInfoYaml.groovy +++ b/tests/jenkins/TestBuildInfoYaml.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/TestBuildManifest.groovy b/tests/jenkins/TestBuildManifest.groovy index 74d2155ab5..533066f57a 100644 --- a/tests/jenkins/TestBuildManifest.groovy +++ b/tests/jenkins/TestBuildManifest.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/TestBuildUploadManifestSHA.groovy b/tests/jenkins/TestBuildUploadManifestSHA.groovy index fb1ae61e89..eb520a5587 100644 --- a/tests/jenkins/TestBuildUploadManifestSHA.groovy +++ b/tests/jenkins/TestBuildUploadManifestSHA.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/TestBuildYumRepo.groovy b/tests/jenkins/TestBuildYumRepo.groovy index f047c79ee0..0f86ec6e05 100644 --- a/tests/jenkins/TestBuildYumRepo.groovy +++ b/tests/jenkins/TestBuildYumRepo.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/TestCCRPerfTest.groovy b/tests/jenkins/TestCCRPerfTest.groovy index b51dcb3dfc..b640479f72 100644 --- a/tests/jenkins/TestCCRPerfTest.groovy +++ b/tests/jenkins/TestCCRPerfTest.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to @@ -15,8 +16,12 @@ import static org.hamcrest.CoreMatchers.equalTo import static org.hamcrest.CoreMatchers.hasItem import static org.hamcrest.MatcherAssert.assertThat +import static com.lesfurets.jenkins.unit.global.lib.LibraryConfiguration.library +import static com.lesfurets.jenkins.unit.global.lib.GitSource.gitSource + class TestCCRPerfTest extends BuildPipelineTest { + @Override @Before void setUp() { this.registerLibTester(new RunPerfTestScriptLibTester( @@ -29,6 +34,16 @@ class TestCCRPerfTest extends BuildPipelineTest { true )) super.setUp() + + helper.registerSharedLibrary( + library().name('jenkins') + .defaultVersion('1.0.0') + .allowOverride(true) + .implicit(true) + .targetPath('vars') + .retriever(gitSource('https://github.com/opensearch-project/opensearch-build-libraries.git')) + .build() + ) } @Test @@ -106,4 +121,4 @@ class TestCCRPerfTest extends BuildPipelineTest { return shCommands } -} \ No newline at end of file +} diff --git a/tests/jenkins/TestCopyContainer.groovy b/tests/jenkins/TestCopyContainer.groovy index 0e03f25667..6f6a22918e 100644 --- a/tests/jenkins/TestCopyContainer.groovy +++ b/tests/jenkins/TestCopyContainer.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to @@ -7,14 +8,18 @@ */ import jenkins.tests.BuildPipelineTest import org.junit.* +import static com.lesfurets.jenkins.unit.global.lib.LibraryConfiguration.library +import static com.lesfurets.jenkins.unit.global.lib.GitSource.gitSource class TestCopyContainer extends BuildPipelineTest { String sourceImage = 'alpine:3.15.4' String destinationImage = 'alpine:3.15.4' + @Override @Before void setUp() { + binding.setVariable('DOCKER_USERNAME', 'dummy_docker_username') binding.setVariable('DOCKER_PASSWORD', 'dummy_docker_password') binding.setVariable('ARTIFACT_PROMOTION_ROLE_NAME', 'sample-agent-AssumeRole') @@ -23,6 +28,15 @@ class TestCopyContainer extends BuildPipelineTest { helper.registerAllowedMethod('withAWS', [Map, Closure], null) super.setUp() + helper.registerSharedLibrary( + library().name('jenkins') + .defaultVersion('1.0.0') + .allowOverride(true) + .implicit(true) + .targetPath('vars') + .retriever(gitSource('https://github.com/opensearch-project/opensearch-build-libraries.git')) + .build() + ) } @Test diff --git a/tests/jenkins/TestCreateGithubIssue.groovy b/tests/jenkins/TestCreateGithubIssue.groovy index e252358732..19901156bf 100644 --- a/tests/jenkins/TestCreateGithubIssue.groovy +++ b/tests/jenkins/TestCreateGithubIssue.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/TestCreateReleaseTag.groovy b/tests/jenkins/TestCreateReleaseTag.groovy index 963e9f8b8d..21afb0abcd 100644 --- a/tests/jenkins/TestCreateReleaseTag.groovy +++ b/tests/jenkins/TestCreateReleaseTag.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/TestCreateTestResultsMessage.groovy b/tests/jenkins/TestCreateTestResultsMessage.groovy index 81f9a1078f..e6f118d37e 100644 --- a/tests/jenkins/TestCreateTestResultsMessage.groovy +++ b/tests/jenkins/TestCreateTestResultsMessage.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/TestDataPrepperReleaseArtifacts.groovy b/tests/jenkins/TestDataPrepperReleaseArtifacts.groovy index 42541afb76..ff31168757 100644 --- a/tests/jenkins/TestDataPrepperReleaseArtifacts.groovy +++ b/tests/jenkins/TestDataPrepperReleaseArtifacts.groovy @@ -14,10 +14,14 @@ import static org.hamcrest.CoreMatchers.hasItems import static org.hamcrest.CoreMatchers.notNullValue import static org.hamcrest.MatcherAssert.assertThat +import static com.lesfurets.jenkins.unit.global.lib.LibraryConfiguration.library +import static com.lesfurets.jenkins.unit.global.lib.GitSource.gitSource + class TestDataPrepperReleaseArtifacts extends BuildPipelineTest { private String version + @Override @Before void setUp() { @@ -45,6 +49,16 @@ class TestDataPrepperReleaseArtifacts extends BuildPipelineTest { }) helper.registerAllowedMethod('s3Upload', [Map], {}) + + helper.registerSharedLibrary( + library().name('jenkins') + .defaultVersion('1.0.0') + .allowOverride(true) + .implicit(true) + .targetPath('vars') + .retriever(gitSource('https://github.com/opensearch-project/opensearch-build-libraries.git')) + .build() + ) } @Test diff --git a/tests/jenkins/TestDetectDockerImage.groovy b/tests/jenkins/TestDetectDockerImage.groovy index 2069db5f82..844f6b7461 100644 --- a/tests/jenkins/TestDetectDockerImage.groovy +++ b/tests/jenkins/TestDetectDockerImage.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/TestDetectTestDockerAgent.groovy b/tests/jenkins/TestDetectTestDockerAgent.groovy index 411aba5135..83c5ea4748 100644 --- a/tests/jenkins/TestDetectTestDockerAgent.groovy +++ b/tests/jenkins/TestDetectTestDockerAgent.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/TestDownloadFromS3.groovy b/tests/jenkins/TestDownloadFromS3.groovy index 94413119c0..fef53af110 100644 --- a/tests/jenkins/TestDownloadFromS3.groovy +++ b/tests/jenkins/TestDownloadFromS3.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/TestGetManifestSHA.groovy b/tests/jenkins/TestGetManifestSHA.groovy index 1538b1f871..1c9661cc7b 100644 --- a/tests/jenkins/TestGetManifestSHA.groovy +++ b/tests/jenkins/TestGetManifestSHA.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/TestHello.groovy b/tests/jenkins/TestHello.groovy index 4174727440..c6e1df2945 100644 --- a/tests/jenkins/TestHello.groovy +++ b/tests/jenkins/TestHello.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/TestInputManifest.groovy b/tests/jenkins/TestInputManifest.groovy index f0c88c0ee5..2f43edb32f 100644 --- a/tests/jenkins/TestInputManifest.groovy +++ b/tests/jenkins/TestInputManifest.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/TestMavenSignReleaseJob.groovy b/tests/jenkins/TestMavenSignReleaseJob.groovy index 0a9f609d39..48b19136f2 100644 --- a/tests/jenkins/TestMavenSignReleaseJob.groovy +++ b/tests/jenkins/TestMavenSignReleaseJob.groovy @@ -7,9 +7,12 @@ import jenkins.tests.BuildPipelineTest import org.junit.Before import org.junit.Test +import static com.lesfurets.jenkins.unit.global.lib.LibraryConfiguration.library +import static com.lesfurets.jenkins.unit.global.lib.GitSource.gitSource class TestMavenSignReleaseJob extends BuildPipelineTest { + @Override @Before void setUp() { @@ -36,6 +39,16 @@ class TestMavenSignReleaseJob extends BuildPipelineTest { helper.registerAllowedMethod('checkout', [Map], {}) + helper.registerSharedLibrary( + library().name('jenkins') + .defaultVersion('1.0.0') + .allowOverride(true) + .implicit(true) + .targetPath('vars') + .retriever(gitSource('https://github.com/opensearch-project/opensearch-build-libraries.git')) + .build() + ) + } @Test diff --git a/tests/jenkins/TestMessages.groovy b/tests/jenkins/TestMessages.groovy index 3962f436f5..8db7def1de 100644 --- a/tests/jenkins/TestMessages.groovy +++ b/tests/jenkins/TestMessages.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/TestOpenSearchBwcTest.groovy b/tests/jenkins/TestOpenSearchBwcTest.groovy index 1df9ab2fb9..7b4254bb05 100644 --- a/tests/jenkins/TestOpenSearchBwcTest.groovy +++ b/tests/jenkins/TestOpenSearchBwcTest.groovy @@ -8,9 +8,12 @@ import jenkins.tests.BuildPipelineTest import org.junit.Before import org.junit.Test import org.yaml.snakeyaml.Yaml +import static com.lesfurets.jenkins.unit.global.lib.LibraryConfiguration.library +import static com.lesfurets.jenkins.unit.global.lib.GitSource.gitSource class TestOpenSearchBwcTest extends BuildPipelineTest { + @Override @Before void setUp() { def jobName = "dummy_job" @@ -48,6 +51,16 @@ class TestOpenSearchBwcTest extends BuildPipelineTest { }) helper.registerAllowedMethod('findFiles', [Map.class], null) + + helper.registerSharedLibrary( + library().name('jenkins') + .defaultVersion('1.0.0') + .allowOverride(true) + .implicit(true) + .targetPath('vars') + .retriever(gitSource('https://github.com/opensearch-project/opensearch-build-libraries.git')) + .build() + ) } @Test diff --git a/tests/jenkins/TestOpenSearchDashboardsBwcTest.groovy b/tests/jenkins/TestOpenSearchDashboardsBwcTest.groovy index db1ca6b5be..b3d34dc922 100644 --- a/tests/jenkins/TestOpenSearchDashboardsBwcTest.groovy +++ b/tests/jenkins/TestOpenSearchDashboardsBwcTest.groovy @@ -8,9 +8,12 @@ import jenkins.tests.BuildPipelineTest import org.junit.Before import org.junit.Test import org.yaml.snakeyaml.Yaml +import static com.lesfurets.jenkins.unit.global.lib.LibraryConfiguration.library +import static com.lesfurets.jenkins.unit.global.lib.GitSource.gitSource class TestOpenSearchDashboardsBwcTest extends BuildPipelineTest { + @Override @Before void setUp() { def jobName = "dummy_job" @@ -48,6 +51,16 @@ class TestOpenSearchDashboardsBwcTest extends BuildPipelineTest { }) helper.registerAllowedMethod('findFiles', [Map.class], null) + + helper.registerSharedLibrary( + library().name('jenkins') + .defaultVersion('1.0.0') + .allowOverride(true) + .implicit(true) + .targetPath('vars') + .retriever(gitSource('https://github.com/opensearch-project/opensearch-build-libraries.git')) + .build() + ) } @Test diff --git a/tests/jenkins/TestOpenSearchDashboardsIntegTest.groovy b/tests/jenkins/TestOpenSearchDashboardsIntegTest.groovy index 0f1069a2d2..76d6984eb5 100644 --- a/tests/jenkins/TestOpenSearchDashboardsIntegTest.groovy +++ b/tests/jenkins/TestOpenSearchDashboardsIntegTest.groovy @@ -8,9 +8,12 @@ import jenkins.tests.BuildPipelineTest import org.junit.Before import org.junit.Test import org.yaml.snakeyaml.Yaml +import static com.lesfurets.jenkins.unit.global.lib.LibraryConfiguration.library +import static com.lesfurets.jenkins.unit.global.lib.GitSource.gitSource class TestOpenSearchDashboardsIntegTest extends BuildPipelineTest { + @Override @Before void setUp() { def jobName = "dummy_job" @@ -49,6 +52,16 @@ class TestOpenSearchDashboardsIntegTest extends BuildPipelineTest { helper.registerAllowedMethod('findFiles', [Map.class], null) helper.registerAllowedMethod('unstash', [String.class], null) + + helper.registerSharedLibrary( + library().name('jenkins') + .defaultVersion('1.0.0') + .allowOverride(true) + .implicit(true) + .targetPath('vars') + .retriever(gitSource('https://github.com/opensearch-project/opensearch-build-libraries.git')) + .build() + ) } @Test diff --git a/tests/jenkins/TestOpenSearchIntegTest.groovy b/tests/jenkins/TestOpenSearchIntegTest.groovy index e724fd7b7b..e3e01813a3 100644 --- a/tests/jenkins/TestOpenSearchIntegTest.groovy +++ b/tests/jenkins/TestOpenSearchIntegTest.groovy @@ -8,9 +8,12 @@ import jenkins.tests.BuildPipelineTest import org.junit.Before import org.junit.Test import org.yaml.snakeyaml.Yaml +import static com.lesfurets.jenkins.unit.global.lib.LibraryConfiguration.library +import static com.lesfurets.jenkins.unit.global.lib.GitSource.gitSource class TestOpenSearchIntegTest extends BuildPipelineTest { + @Override @Before void setUp() { def jobName = "dummy_job" @@ -58,6 +61,16 @@ class TestOpenSearchIntegTest extends BuildPipelineTest { helper.registerAllowedMethod('fileExists', [String.class], { args -> return true; }) + + helper.registerSharedLibrary( + library().name('jenkins') + .defaultVersion('1.0.0') + .allowOverride(true) + .implicit(true) + .targetPath('vars') + .retriever(gitSource('https://github.com/opensearch-project/opensearch-build-libraries.git')) + .build() + ) } @Test diff --git a/tests/jenkins/TestParallelMessages.groovy b/tests/jenkins/TestParallelMessages.groovy index e55f425daf..4a824aa7a1 100644 --- a/tests/jenkins/TestParallelMessages.groovy +++ b/tests/jenkins/TestParallelMessages.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/TestPostCleanup.groovy b/tests/jenkins/TestPostCleanup.groovy index 1f83698239..9c07a478d8 100644 --- a/tests/jenkins/TestPostCleanup.groovy +++ b/tests/jenkins/TestPostCleanup.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/TestPrintArtifactDownloadUrlsForStaging.groovy b/tests/jenkins/TestPrintArtifactDownloadUrlsForStaging.groovy index cf80549eda..0276e44a61 100644 --- a/tests/jenkins/TestPrintArtifactDownloadUrlsForStaging.groovy +++ b/tests/jenkins/TestPrintArtifactDownloadUrlsForStaging.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/TestPromoteArtifacts.groovy b/tests/jenkins/TestPromoteArtifacts.groovy index 591b50a463..5e17c44cde 100644 --- a/tests/jenkins/TestPromoteArtifacts.groovy +++ b/tests/jenkins/TestPromoteArtifacts.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/TestPromoteContainer.groovy b/tests/jenkins/TestPromoteContainer.groovy index 0620dcb6a1..5fbf441e4f 100644 --- a/tests/jenkins/TestPromoteContainer.groovy +++ b/tests/jenkins/TestPromoteContainer.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to @@ -8,12 +9,15 @@ import jenkins.tests.BuildPipelineTest import org.junit.Before import org.junit.Test +import static com.lesfurets.jenkins.unit.global.lib.LibraryConfiguration.library +import static com.lesfurets.jenkins.unit.global.lib.GitSource.gitSource class TestPromoteContainer extends BuildPipelineTest { String PROMOTE_PRODUCT = 'opensearch:2.0.1.2901, opensearch-dashboards:2.0.1-2345, data-prepper:2.0.1.123' String RELEASE_VERSION = '2.0.1' + @Override @Before void setUp() { binding.setVariable('SOURCE_IMAGES', PROMOTE_PRODUCT) @@ -28,6 +32,16 @@ class TestPromoteContainer extends BuildPipelineTest { helper.registerAllowedMethod('withAWS', [Map, Closure], null) super.setUp() + helper.registerSharedLibrary( + library().name('jenkins') + .defaultVersion('1.0.0') + .allowOverride(true) + .implicit(true) + .targetPath('vars') + .retriever(gitSource('https://github.com/opensearch-project/opensearch-build-libraries.git')) + .build() + ) + } @Test diff --git a/tests/jenkins/TestPromoteYumRepos.groovy b/tests/jenkins/TestPromoteYumRepos.groovy index dc6ff59055..743c534db2 100644 --- a/tests/jenkins/TestPromoteYumRepos.groovy +++ b/tests/jenkins/TestPromoteYumRepos.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/TestPublishNotification.groovy b/tests/jenkins/TestPublishNotification.groovy index 1da7357b04..acebeb27e9 100644 --- a/tests/jenkins/TestPublishNotification.groovy +++ b/tests/jenkins/TestPublishNotification.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/TestReleaseTagDashboardsJob.groovy b/tests/jenkins/TestReleaseTagDashboardsJob.groovy index 012ac12549..3f895e9d3c 100644 --- a/tests/jenkins/TestReleaseTagDashboardsJob.groovy +++ b/tests/jenkins/TestReleaseTagDashboardsJob.groovy @@ -7,9 +7,12 @@ import jenkins.tests.BuildPipelineTest import org.junit.Before import org.junit.Test +import static com.lesfurets.jenkins.unit.global.lib.LibraryConfiguration.library +import static com.lesfurets.jenkins.unit.global.lib.GitSource.gitSource class TestReleaseTagDashboardsJob extends BuildPipelineTest { + @Override @Before void setUp() { @@ -24,6 +27,16 @@ class TestReleaseTagDashboardsJob extends BuildPipelineTest { binding.setVariable('PRODUCT', 'opensearch-dashboards') binding.setVariable('DISTRIBUTION_MANIFEST', distManifest) + helper.registerSharedLibrary( + library().name('jenkins') + .defaultVersion('1.0.0') + .allowOverride(true) + .implicit(true) + .targetPath('vars') + .retriever(gitSource('https://github.com/opensearch-project/opensearch-build-libraries.git')) + .build() + ) + } @Test diff --git a/tests/jenkins/TestReleaseTagJob.groovy b/tests/jenkins/TestReleaseTagJob.groovy index fec890852a..bf85db170e 100644 --- a/tests/jenkins/TestReleaseTagJob.groovy +++ b/tests/jenkins/TestReleaseTagJob.groovy @@ -7,9 +7,12 @@ import jenkins.tests.BuildPipelineTest import org.junit.Before import org.junit.Test +import static com.lesfurets.jenkins.unit.global.lib.LibraryConfiguration.library +import static com.lesfurets.jenkins.unit.global.lib.GitSource.gitSource class TestReleaseTagJob extends BuildPipelineTest { + @Override @Before void setUp() { @@ -24,6 +27,15 @@ class TestReleaseTagJob extends BuildPipelineTest { binding.setVariable('PRODUCT', 'opensearch') binding.setVariable('DISTRIBUTION_MANIFEST', distManifest) + helper.registerSharedLibrary( + library().name('jenkins') + .defaultVersion('1.0.0') + .allowOverride(true) + .implicit(true) + .targetPath('vars') + .retriever(gitSource('https://github.com/opensearch-project/opensearch-build-libraries.git')) + .build() + ) } @Test diff --git a/tests/jenkins/TestRpmDashboardsDistValidation.groovy b/tests/jenkins/TestRpmDashboardsDistValidation.groovy index df3c15780e..4eac1d3a51 100644 --- a/tests/jenkins/TestRpmDashboardsDistValidation.groovy +++ b/tests/jenkins/TestRpmDashboardsDistValidation.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/TestRpmMetaValidation.groovy b/tests/jenkins/TestRpmMetaValidation.groovy index 55ab358635..4012a61153 100644 --- a/tests/jenkins/TestRpmMetaValidation.groovy +++ b/tests/jenkins/TestRpmMetaValidation.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/TestRpmOpenSearchDistValidation.groovy b/tests/jenkins/TestRpmOpenSearchDistValidation.groovy index 4c7d0708e9..3ac7f616e5 100644 --- a/tests/jenkins/TestRpmOpenSearchDistValidation.groovy +++ b/tests/jenkins/TestRpmOpenSearchDistValidation.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/TestRunBwcTestScript.groovy b/tests/jenkins/TestRunBwcTestScript.groovy index c9f94ade89..288cfe8106 100644 --- a/tests/jenkins/TestRunBwcTestScript.groovy +++ b/tests/jenkins/TestRunBwcTestScript.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/TestRunGradleCheck.groovy b/tests/jenkins/TestRunGradleCheck.groovy index 5571fd5853..c96754722f 100644 --- a/tests/jenkins/TestRunGradleCheck.groovy +++ b/tests/jenkins/TestRunGradleCheck.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/TestRunIntegTestScript.groovy b/tests/jenkins/TestRunIntegTestScript.groovy index ad243956b0..29f895860b 100644 --- a/tests/jenkins/TestRunIntegTestScript.groovy +++ b/tests/jenkins/TestRunIntegTestScript.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/TestRunNonSecurityPerfTestScript.groovy b/tests/jenkins/TestRunNonSecurityPerfTestScript.groovy index e9621d36f3..56df22c643 100644 --- a/tests/jenkins/TestRunNonSecurityPerfTestScript.groovy +++ b/tests/jenkins/TestRunNonSecurityPerfTestScript.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to @@ -15,8 +16,12 @@ import static org.hamcrest.CoreMatchers.equalTo import static org.hamcrest.CoreMatchers.hasItem import static org.hamcrest.MatcherAssert.assertThat +import static com.lesfurets.jenkins.unit.global.lib.LibraryConfiguration.library +import static com.lesfurets.jenkins.unit.global.lib.GitSource.gitSource + class TestRunNonSecurityPerfTestScript extends BuildPipelineTest { + @Override @Before void setUp() { this.registerLibTester(new RunPerfTestScriptLibTester( @@ -29,6 +34,16 @@ class TestRunNonSecurityPerfTestScript extends BuildPipelineTest { false )) super.setUp() + + helper.registerSharedLibrary( + library().name('jenkins') + .defaultVersion('1.0.0') + .allowOverride(true) + .implicit(true) + .targetPath('vars') + .retriever(gitSource('https://github.com/opensearch-project/opensearch-build-libraries.git')) + .build() + ) } @Test @@ -109,4 +124,4 @@ class TestRunNonSecurityPerfTestScript extends BuildPipelineTest { return shCommands } -} \ No newline at end of file +} diff --git a/tests/jenkins/TestRunPerfTestScript.groovy b/tests/jenkins/TestRunPerfTestScript.groovy index df70d75863..2252c2cb6a 100644 --- a/tests/jenkins/TestRunPerfTestScript.groovy +++ b/tests/jenkins/TestRunPerfTestScript.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to @@ -15,8 +16,12 @@ import static org.hamcrest.CoreMatchers.equalTo import static org.hamcrest.CoreMatchers.hasItem import static org.hamcrest.MatcherAssert.assertThat +import static com.lesfurets.jenkins.unit.global.lib.LibraryConfiguration.library +import static com.lesfurets.jenkins.unit.global.lib.GitSource.gitSource + class TestRunPerfTestScript extends BuildPipelineTest { + @Override @Before void setUp() { this.registerLibTester(new RunPerfTestScriptLibTester( @@ -29,6 +34,16 @@ class TestRunPerfTestScript extends BuildPipelineTest { true )) super.setUp() + + helper.registerSharedLibrary( + library().name('jenkins') + .defaultVersion('1.0.0') + .allowOverride(true) + .implicit(true) + .targetPath('vars') + .retriever(gitSource('https://github.com/opensearch-project/opensearch-build-libraries.git')) + .build() + ) } @Test @@ -112,4 +127,4 @@ class TestRunPerfTestScript extends BuildPipelineTest { return shCommands } -} \ No newline at end of file +} diff --git a/tests/jenkins/TestScanDockerImage.groovy b/tests/jenkins/TestScanDockerImage.groovy index 5b93f68b67..cf86609d09 100644 --- a/tests/jenkins/TestScanDockerImage.groovy +++ b/tests/jenkins/TestScanDockerImage.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/TestSignArtifacts.groovy b/tests/jenkins/TestSignArtifacts.groovy index 1670c2ae8a..e013298c8f 100644 --- a/tests/jenkins/TestSignArtifacts.groovy +++ b/tests/jenkins/TestSignArtifacts.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/TestSignStandaloneArtifactsJob.groovy b/tests/jenkins/TestSignStandaloneArtifactsJob.groovy index 48b4a37889..f44bb1b7ca 100644 --- a/tests/jenkins/TestSignStandaloneArtifactsJob.groovy +++ b/tests/jenkins/TestSignStandaloneArtifactsJob.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to @@ -8,9 +9,12 @@ import jenkins.tests.BuildPipelineTest import org.junit.Before import org.junit.Test +import static com.lesfurets.jenkins.unit.global.lib.LibraryConfiguration.library +import static com.lesfurets.jenkins.unit.global.lib.GitSource.gitSource class TestSignStandaloneArtifactsJob extends BuildPipelineTest { + @Override @Before void setUp() { @@ -35,6 +39,16 @@ class TestSignStandaloneArtifactsJob extends BuildPipelineTest { binding.setVariable('S3_FILE_UPLOAD_PATH', '/dummy/upload/path/') binding.setVariable('DISTRIBUTION_PLATFORM', platform) binding.setVariable('SIGNATURE_TYPE', sigtype) + + helper.registerSharedLibrary( + library().name('jenkins') + .defaultVersion('1.0.0') + .allowOverride(true) + .implicit(true) + .targetPath('vars') + .retriever(gitSource('https://github.com/opensearch-project/opensearch-build-libraries.git')) + .build() + ) } @Test diff --git a/tests/jenkins/TestUploadIndexFile.groovy b/tests/jenkins/TestUploadIndexFile.groovy index af51feb0a8..9876cd4d4e 100644 --- a/tests/jenkins/TestUploadIndexFile.groovy +++ b/tests/jenkins/TestUploadIndexFile.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/TestUploadMinSnapshotsToS3.groovy b/tests/jenkins/TestUploadMinSnapshotsToS3.groovy index 865a967ad3..7d67f7e837 100644 --- a/tests/jenkins/TestUploadMinSnapshotsToS3.groovy +++ b/tests/jenkins/TestUploadMinSnapshotsToS3.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to @@ -24,4 +25,4 @@ class TestUploadMinSnapshotsToS3 extends BuildPipelineTest { public void test() { super.testPipeline("tests/jenkins/jobs/uploadMinSnapshotsToS3_Jenkinsfile") } -} \ No newline at end of file +} diff --git a/tests/jenkins/TestUploadTestResults.groovy b/tests/jenkins/TestUploadTestResults.groovy index d6690eb6cc..7524f41fad 100644 --- a/tests/jenkins/TestUploadTestResults.groovy +++ b/tests/jenkins/TestUploadTestResults.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/TestUploadToS3.groovy b/tests/jenkins/TestUploadToS3.groovy index ca26f1f8aa..a10d49b765 100644 --- a/tests/jenkins/TestUploadToS3.groovy +++ b/tests/jenkins/TestUploadToS3.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/TestbuildManifestVar.groovy b/tests/jenkins/TestbuildManifestVar.groovy index 3c39e849ea..ffba8caaba 100644 --- a/tests/jenkins/TestbuildManifestVar.groovy +++ b/tests/jenkins/TestbuildManifestVar.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/jenkinsjob-regression-files/cross-cluster-replication/perf-test.jenkinsfile.txt b/tests/jenkins/jenkinsjob-regression-files/cross-cluster-replication/perf-test.jenkinsfile.txt index d3a6bb9d9d..48c35cfd7b 100644 --- a/tests/jenkins/jenkinsjob-regression-files/cross-cluster-replication/perf-test.jenkinsfile.txt +++ b/tests/jenkins/jenkinsjob-regression-files/cross-cluster-replication/perf-test.jenkinsfile.txt @@ -1,6 +1,6 @@ perf-test.run() - perf-test.legacySCM(groovy.lang.Closure) - perf-test.library({identifier=jenkins@20211118, retriever=null}) + perf-test.modernSCM({$class=GitSCMSource, remote=https://github.com/opensearch-project/opensearch-build-libraries.git}) + perf-test.library({identifier=jenkins@1.0.0, retriever=null}) perf-test.pipeline(groovy.lang.Closure) perf-test.timeout({time=10, unit=HOURS}) perf-test.echo(Executing on agent [label:none]) diff --git a/tests/jenkins/jenkinsjob-regression-files/data-prepper/release-data-prepper-all-artifacts.jenkinsfile.txt b/tests/jenkins/jenkinsjob-regression-files/data-prepper/release-data-prepper-all-artifacts.jenkinsfile.txt index 659c132483..cb27d5bb6d 100644 --- a/tests/jenkins/jenkinsjob-regression-files/data-prepper/release-data-prepper-all-artifacts.jenkinsfile.txt +++ b/tests/jenkins/jenkinsjob-regression-files/data-prepper/release-data-prepper-all-artifacts.jenkinsfile.txt @@ -1,6 +1,6 @@ release-data-prepper-all-artifacts.run() - release-data-prepper-all-artifacts.legacySCM(groovy.lang.Closure) - release-data-prepper-all-artifacts.library({identifier=jenkins@20211123, retriever=null}) + release-data-prepper-all-artifacts.modernSCM({$class=GitSCMSource, remote=https://github.com/opensearch-project/opensearch-build-libraries.git}) + release-data-prepper-all-artifacts.library({identifier=jenkins@1.0.0, retriever=null}) release-data-prepper-all-artifacts.pipeline(groovy.lang.Closure) release-data-prepper-all-artifacts.credentials(jenkins-data-prepper-artifact-staging-site) release-data-prepper-all-artifacts.credentials(jenkins-data-prepper-staging-container-repository) diff --git a/tests/jenkins/jenkinsjob-regression-files/docker/docker-copy-testCopyContainerDockerProdtoEcrProd.jenkinsfile.txt b/tests/jenkins/jenkinsjob-regression-files/docker/docker-copy-testCopyContainerDockerProdtoEcrProd.jenkinsfile.txt index e690f1c2b9..5de9cb5f35 100644 --- a/tests/jenkins/jenkinsjob-regression-files/docker/docker-copy-testCopyContainerDockerProdtoEcrProd.jenkinsfile.txt +++ b/tests/jenkins/jenkinsjob-regression-files/docker/docker-copy-testCopyContainerDockerProdtoEcrProd.jenkinsfile.txt @@ -1,6 +1,6 @@ docker-copy.run() - docker-copy.legacySCM(groovy.lang.Closure) - docker-copy.library({identifier=jenkins@20211123, retriever=null}) + docker-copy.modernSCM({$class=GitSCMSource, remote=https://github.com/opensearch-project/opensearch-build-libraries.git}) + docker-copy.library({identifier=jenkins@1.0.0, retriever=null}) docker-copy.pipeline(groovy.lang.Closure) docker-copy.timeout({time=30}) docker-copy.echo(Executing on agent [label:none]) @@ -14,10 +14,7 @@ copyContainer.withCredentials([ARTIFACT_PROMOTION_ROLE_NAME, AWS_ACCOUNT_ARTIFACT], groovy.lang.Closure) copyContainer.withAWS({role=ARTIFACT_PROMOTION_ROLE_NAME, roleAccount=AWS_ACCOUNT_ARTIFACT, duration=900, roleSessionName=jenkins-session}, groovy.lang.Closure) copyContainer.sh({returnStdout=true, script=aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/opensearchproject}) - copyContainer.sh( - gcrane cp opensearchproject/alpine:3.15.4 public.ecr.aws/opensearchproject/alpine:3.15.4 - docker logout public.ecr.aws/opensearchproject - ) + copyContainer.sh(gcrane cp opensearchproject/alpine:3.15.4 public.ecr.aws/opensearchproject/alpine:3.15.4; docker logout public.ecr.aws/opensearchproject) docker-copy.script(groovy.lang.Closure) docker-copy.postCleanup() postCleanup.cleanWs({disableDeferredWipeout=true, deleteDirs=true}) diff --git a/tests/jenkins/jenkinsjob-regression-files/docker/docker-copy-testCopyContainerDockerStagingToDockerProd.jenkinsfile.txt b/tests/jenkins/jenkinsjob-regression-files/docker/docker-copy-testCopyContainerDockerStagingToDockerProd.jenkinsfile.txt index 1630929a18..254484a233 100644 --- a/tests/jenkins/jenkinsjob-regression-files/docker/docker-copy-testCopyContainerDockerStagingToDockerProd.jenkinsfile.txt +++ b/tests/jenkins/jenkinsjob-regression-files/docker/docker-copy-testCopyContainerDockerStagingToDockerProd.jenkinsfile.txt @@ -1,6 +1,6 @@ docker-copy.run() - docker-copy.legacySCM(groovy.lang.Closure) - docker-copy.library({identifier=jenkins@20211123, retriever=null}) + docker-copy.modernSCM({$class=GitSCMSource, remote=https://github.com/opensearch-project/opensearch-build-libraries.git}) + docker-copy.library({identifier=jenkins@1.0.0, retriever=null}) docker-copy.pipeline(groovy.lang.Closure) docker-copy.timeout({time=30}) docker-copy.echo(Executing on agent [label:none]) @@ -12,10 +12,7 @@ copyContainer.usernamePassword({credentialsId=jenkins-production-dockerhub-credential, usernameVariable=DOCKER_USERNAME, passwordVariable=DOCKER_PASSWORD}) copyContainer.withCredentials([[DOCKER_USERNAME, DOCKER_PASSWORD]], groovy.lang.Closure) copyContainer.sh({returnStdout=true, script=echo DOCKER_PASSWORD | docker login --username DOCKER_USERNAME --password-stdin}) - copyContainer.sh( - gcrane cp opensearchstaging/alpine:3.15.4 opensearchproject/alpine:3.15.4 - docker logout - ) + copyContainer.sh(gcrane cp opensearchstaging/alpine:3.15.4 opensearchproject/alpine:3.15.4; docker logout) docker-copy.script(groovy.lang.Closure) docker-copy.postCleanup() postCleanup.cleanWs({disableDeferredWipeout=true, deleteDirs=true}) diff --git a/tests/jenkins/jenkinsjob-regression-files/docker/docker-copy-testCopyContainerDockerStagingToEcrProd.jenkinsfile.txt b/tests/jenkins/jenkinsjob-regression-files/docker/docker-copy-testCopyContainerDockerStagingToEcrProd.jenkinsfile.txt index 3308ade765..ac78c41cc6 100644 --- a/tests/jenkins/jenkinsjob-regression-files/docker/docker-copy-testCopyContainerDockerStagingToEcrProd.jenkinsfile.txt +++ b/tests/jenkins/jenkinsjob-regression-files/docker/docker-copy-testCopyContainerDockerStagingToEcrProd.jenkinsfile.txt @@ -1,6 +1,6 @@ docker-copy.run() - docker-copy.legacySCM(groovy.lang.Closure) - docker-copy.library({identifier=jenkins@20211123, retriever=null}) + docker-copy.modernSCM({$class=GitSCMSource, remote=https://github.com/opensearch-project/opensearch-build-libraries.git}) + docker-copy.library({identifier=jenkins@1.0.0, retriever=null}) docker-copy.pipeline(groovy.lang.Closure) docker-copy.timeout({time=30}) docker-copy.echo(Executing on agent [label:none]) @@ -14,10 +14,7 @@ copyContainer.withCredentials([ARTIFACT_PROMOTION_ROLE_NAME, AWS_ACCOUNT_ARTIFACT], groovy.lang.Closure) copyContainer.withAWS({role=ARTIFACT_PROMOTION_ROLE_NAME, roleAccount=AWS_ACCOUNT_ARTIFACT, duration=900, roleSessionName=jenkins-session}, groovy.lang.Closure) copyContainer.sh({returnStdout=true, script=aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/opensearchproject}) - copyContainer.sh( - gcrane cp opensearchstaging/alpine:3.15.4 public.ecr.aws/opensearchproject/alpine:3.15.4 - docker logout public.ecr.aws/opensearchproject - ) + copyContainer.sh(gcrane cp opensearchstaging/alpine:3.15.4 public.ecr.aws/opensearchproject/alpine:3.15.4; docker logout public.ecr.aws/opensearchproject) docker-copy.script(groovy.lang.Closure) docker-copy.postCleanup() postCleanup.cleanWs({disableDeferredWipeout=true, deleteDirs=true}) diff --git a/tests/jenkins/jenkinsjob-regression-files/docker/docker-copy-testCopyContainerDockerStagingtoEcrStaging.jenkinsfile.txt b/tests/jenkins/jenkinsjob-regression-files/docker/docker-copy-testCopyContainerDockerStagingtoEcrStaging.jenkinsfile.txt index c8c86adcec..a702d93fc1 100644 --- a/tests/jenkins/jenkinsjob-regression-files/docker/docker-copy-testCopyContainerDockerStagingtoEcrStaging.jenkinsfile.txt +++ b/tests/jenkins/jenkinsjob-regression-files/docker/docker-copy-testCopyContainerDockerStagingtoEcrStaging.jenkinsfile.txt @@ -1,6 +1,6 @@ docker-copy.run() - docker-copy.legacySCM(groovy.lang.Closure) - docker-copy.library({identifier=jenkins@20211123, retriever=null}) + docker-copy.modernSCM({$class=GitSCMSource, remote=https://github.com/opensearch-project/opensearch-build-libraries.git}) + docker-copy.library({identifier=jenkins@1.0.0, retriever=null}) docker-copy.pipeline(groovy.lang.Closure) docker-copy.timeout({time=30}) docker-copy.echo(Executing on agent [label:none]) @@ -10,10 +10,7 @@ docker-copy.script(groovy.lang.Closure) docker-copy.copyContainer({sourceImage=alpine:3.15.4, sourceRegistry=opensearchstaging, destinationImage=alpine:3.15.4, destinationRegistry=public.ecr.aws/opensearchstaging}) copyContainer.sh({returnStdout=true, script=aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/opensearchstaging}) - copyContainer.sh( - gcrane cp opensearchstaging/alpine:3.15.4 public.ecr.aws/opensearchstaging/alpine:3.15.4 - docker logout public.ecr.aws/opensearchstaging - ) + copyContainer.sh(gcrane cp opensearchstaging/alpine:3.15.4 public.ecr.aws/opensearchstaging/alpine:3.15.4; docker logout public.ecr.aws/opensearchstaging) docker-copy.script(groovy.lang.Closure) docker-copy.postCleanup() postCleanup.cleanWs({disableDeferredWipeout=true, deleteDirs=true}) diff --git a/tests/jenkins/jenkinsjob-regression-files/docker/docker-copy-testCopyContainerECRStagingtoDockerProd.jenkinsfile.txt b/tests/jenkins/jenkinsjob-regression-files/docker/docker-copy-testCopyContainerECRStagingtoDockerProd.jenkinsfile.txt index 1df7f674e2..682da5a496 100644 --- a/tests/jenkins/jenkinsjob-regression-files/docker/docker-copy-testCopyContainerECRStagingtoDockerProd.jenkinsfile.txt +++ b/tests/jenkins/jenkinsjob-regression-files/docker/docker-copy-testCopyContainerECRStagingtoDockerProd.jenkinsfile.txt @@ -1,6 +1,6 @@ docker-copy.run() - docker-copy.legacySCM(groovy.lang.Closure) - docker-copy.library({identifier=jenkins@20211123, retriever=null}) + docker-copy.modernSCM({$class=GitSCMSource, remote=https://github.com/opensearch-project/opensearch-build-libraries.git}) + docker-copy.library({identifier=jenkins@1.0.0, retriever=null}) docker-copy.pipeline(groovy.lang.Closure) docker-copy.timeout({time=30}) docker-copy.echo(Executing on agent [label:none]) @@ -12,10 +12,7 @@ copyContainer.usernamePassword({credentialsId=jenkins-production-dockerhub-credential, usernameVariable=DOCKER_USERNAME, passwordVariable=DOCKER_PASSWORD}) copyContainer.withCredentials([[DOCKER_USERNAME, DOCKER_PASSWORD]], groovy.lang.Closure) copyContainer.sh({returnStdout=true, script=echo DOCKER_PASSWORD | docker login --username DOCKER_USERNAME --password-stdin}) - copyContainer.sh( - gcrane cp public.ecr.aws/opensearchstaging/alpine:3.15.4 opensearchproject/alpine:3.15.4 - docker logout - ) + copyContainer.sh(gcrane cp public.ecr.aws/opensearchstaging/alpine:3.15.4 opensearchproject/alpine:3.15.4; docker logout) docker-copy.script(groovy.lang.Closure) docker-copy.postCleanup() postCleanup.cleanWs({disableDeferredWipeout=true, deleteDirs=true}) diff --git a/tests/jenkins/jenkinsjob-regression-files/docker/docker-copy-testCopyContainerEcrStagingtoEcrProd.jenkinsfile.txt b/tests/jenkins/jenkinsjob-regression-files/docker/docker-copy-testCopyContainerEcrStagingtoEcrProd.jenkinsfile.txt index 8144926f15..ac2f3b321d 100644 --- a/tests/jenkins/jenkinsjob-regression-files/docker/docker-copy-testCopyContainerEcrStagingtoEcrProd.jenkinsfile.txt +++ b/tests/jenkins/jenkinsjob-regression-files/docker/docker-copy-testCopyContainerEcrStagingtoEcrProd.jenkinsfile.txt @@ -1,6 +1,6 @@ docker-copy.run() - docker-copy.legacySCM(groovy.lang.Closure) - docker-copy.library({identifier=jenkins@20211123, retriever=null}) + docker-copy.modernSCM({$class=GitSCMSource, remote=https://github.com/opensearch-project/opensearch-build-libraries.git}) + docker-copy.library({identifier=jenkins@1.0.0, retriever=null}) docker-copy.pipeline(groovy.lang.Closure) docker-copy.timeout({time=30}) docker-copy.echo(Executing on agent [label:none]) @@ -14,10 +14,7 @@ copyContainer.withCredentials([ARTIFACT_PROMOTION_ROLE_NAME, AWS_ACCOUNT_ARTIFACT], groovy.lang.Closure) copyContainer.withAWS({role=ARTIFACT_PROMOTION_ROLE_NAME, roleAccount=AWS_ACCOUNT_ARTIFACT, duration=900, roleSessionName=jenkins-session}, groovy.lang.Closure) copyContainer.sh({returnStdout=true, script=aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/opensearchproject}) - copyContainer.sh( - gcrane cp public.ecr.aws/opensearchstaging/alpine:3.15.4 public.ecr.aws/opensearchproject/alpine:3.15.4 - docker logout public.ecr.aws/opensearchproject - ) + copyContainer.sh(gcrane cp public.ecr.aws/opensearchstaging/alpine:3.15.4 public.ecr.aws/opensearchproject/alpine:3.15.4; docker logout public.ecr.aws/opensearchproject) docker-copy.script(groovy.lang.Closure) docker-copy.postCleanup() postCleanup.cleanWs({disableDeferredWipeout=true, deleteDirs=true}) diff --git a/tests/jenkins/jenkinsjob-regression-files/maven-sign-release/maven-sign-release.jenkinsfile.txt b/tests/jenkins/jenkinsjob-regression-files/maven-sign-release/maven-sign-release.jenkinsfile.txt index 0dce765910..50e3037ab1 100644 --- a/tests/jenkins/jenkinsjob-regression-files/maven-sign-release/maven-sign-release.jenkinsfile.txt +++ b/tests/jenkins/jenkinsjob-regression-files/maven-sign-release/maven-sign-release.jenkinsfile.txt @@ -1,6 +1,6 @@ maven-sign-release.run() - maven-sign-release.legacySCM(groovy.lang.Closure) - maven-sign-release.library({identifier=jenkins@20211123, retriever=null}) + maven-sign-release.modernSCM({$class=GitSCMSource, remote=https://github.com/opensearch-project/opensearch-build-libraries.git}) + maven-sign-release.library({identifier=jenkins@1.0.0, retriever=null}) maven-sign-release.pipeline(groovy.lang.Closure) maven-sign-release.credentials(jenkins-artifact-bucket-name) maven-sign-release.echo(Executing on agent [docker:[image:opensearchstaging/ci-runner:centos7-x64-arm64-jdkmulti-node10.24.1-cypress6.9.1-20211130, reuseNode:false, stages:[:], args:, alwaysPull:true, containerPerStageRoot:false, label:Jenkins-Agent-AL2-X64-C54xlarge-Docker-Host]]) diff --git a/tests/jenkins/jenkinsjob-regression-files/opensearch-dashboards/bwc-test.jenkinsfile.txt b/tests/jenkins/jenkinsjob-regression-files/opensearch-dashboards/bwc-test.jenkinsfile.txt index 0c62a6ff2b..3e54fcb44a 100644 --- a/tests/jenkins/jenkinsjob-regression-files/opensearch-dashboards/bwc-test.jenkinsfile.txt +++ b/tests/jenkins/jenkinsjob-regression-files/opensearch-dashboards/bwc-test.jenkinsfile.txt @@ -1,6 +1,6 @@ bwc-test.run() - bwc-test.legacySCM(groovy.lang.Closure) - bwc-test.library({identifier=jenkins@20211118, retriever=null}) + bwc-test.modernSCM({$class=GitSCMSource, remote=https://github.com/opensearch-project/opensearch-build-libraries.git}) + bwc-test.library({identifier=jenkins@1.0.0, retriever=null}) bwc-test.pipeline(groovy.lang.Closure) bwc-test.timeout({time=3, unit=HOURS}) bwc-test.echo(Executing on agent [label:none]) diff --git a/tests/jenkins/jenkinsjob-regression-files/opensearch-dashboards/integ-test.jenkinsfile.txt b/tests/jenkins/jenkinsjob-regression-files/opensearch-dashboards/integ-test.jenkinsfile.txt index 5d013a9304..01e057772c 100644 --- a/tests/jenkins/jenkinsjob-regression-files/opensearch-dashboards/integ-test.jenkinsfile.txt +++ b/tests/jenkins/jenkinsjob-regression-files/opensearch-dashboards/integ-test.jenkinsfile.txt @@ -1,6 +1,6 @@ integ-test.run() - integ-test.legacySCM(groovy.lang.Closure) - integ-test.library({identifier=jenkins@20211118, retriever=null}) + integ-test.modernSCM({$class=GitSCMSource, remote=https://github.com/opensearch-project/opensearch-build-libraries.git}) + integ-test.library({identifier=jenkins@1.0.0, retriever=null}) integ-test.pipeline(groovy.lang.Closure) integ-test.timeout({time=3, unit=HOURS}) integ-test.echo(Executing on agent [label:none]) diff --git a/tests/jenkins/jenkinsjob-regression-files/opensearch/bwc-test.jenkinsfile.txt b/tests/jenkins/jenkinsjob-regression-files/opensearch/bwc-test.jenkinsfile.txt index 8c8c41d3ac..3f210f582c 100644 --- a/tests/jenkins/jenkinsjob-regression-files/opensearch/bwc-test.jenkinsfile.txt +++ b/tests/jenkins/jenkinsjob-regression-files/opensearch/bwc-test.jenkinsfile.txt @@ -1,6 +1,6 @@ bwc-test.run() - bwc-test.legacySCM(groovy.lang.Closure) - bwc-test.library({identifier=jenkins@20211118, retriever=null}) + bwc-test.modernSCM({$class=GitSCMSource, remote=https://github.com/opensearch-project/opensearch-build-libraries.git}) + bwc-test.library({identifier=jenkins@1.0.0, retriever=null}) bwc-test.pipeline(groovy.lang.Closure) bwc-test.timeout({time=3, unit=HOURS}) bwc-test.echo(Executing on agent [label:none]) diff --git a/tests/jenkins/jenkinsjob-regression-files/opensearch/integ-test.jenkinsfile.txt b/tests/jenkins/jenkinsjob-regression-files/opensearch/integ-test.jenkinsfile.txt index b737b0a793..f009e5f759 100644 --- a/tests/jenkins/jenkinsjob-regression-files/opensearch/integ-test.jenkinsfile.txt +++ b/tests/jenkins/jenkinsjob-regression-files/opensearch/integ-test.jenkinsfile.txt @@ -1,6 +1,6 @@ integ-test.run() - integ-test.legacySCM(groovy.lang.Closure) - integ-test.library({identifier=jenkins@20211118, retriever=null}) + integ-test.modernSCM({$class=GitSCMSource, remote=https://github.com/opensearch-project/opensearch-build-libraries.git}) + integ-test.library({identifier=jenkins@1.0.0, retriever=null}) integ-test.pipeline(groovy.lang.Closure) integ-test.credentials(jenkins-artifact-bucket-name) integ-test.timeout({time=3, unit=HOURS}) diff --git a/tests/jenkins/jenkinsjob-regression-files/opensearch/perf-test-with-security.jenkinsfile.txt b/tests/jenkins/jenkinsjob-regression-files/opensearch/perf-test-with-security.jenkinsfile.txt index 875ef3d773..ccb7a38bf5 100644 --- a/tests/jenkins/jenkinsjob-regression-files/opensearch/perf-test-with-security.jenkinsfile.txt +++ b/tests/jenkins/jenkinsjob-regression-files/opensearch/perf-test-with-security.jenkinsfile.txt @@ -1,6 +1,6 @@ perf-test.run() - perf-test.legacySCM(groovy.lang.Closure) - perf-test.library({identifier=jenkins@20211118, retriever=null}) + perf-test.modernSCM({$class=GitSCMSource, remote=https://github.com/opensearch-project/opensearch-build-libraries.git}) + perf-test.library({identifier=jenkins@1.0.0, retriever=null}) perf-test.pipeline(groovy.lang.Closure) perf-test.timeout({time=15, unit=HOURS}) perf-test.echo(Executing on agent [label:none]) diff --git a/tests/jenkins/jenkinsjob-regression-files/opensearch/perf-test.jenkinsfile.txt b/tests/jenkins/jenkinsjob-regression-files/opensearch/perf-test.jenkinsfile.txt index d9a4128814..b0e2d7b8a2 100644 --- a/tests/jenkins/jenkinsjob-regression-files/opensearch/perf-test.jenkinsfile.txt +++ b/tests/jenkins/jenkinsjob-regression-files/opensearch/perf-test.jenkinsfile.txt @@ -1,6 +1,6 @@ perf-test.run() - perf-test.legacySCM(groovy.lang.Closure) - perf-test.library({identifier=jenkins@20211118, retriever=null}) + perf-test.modernSCM({$class=GitSCMSource, remote=https://github.com/opensearch-project/opensearch-build-libraries.git}) + perf-test.library({identifier=jenkins@1.0.0, retriever=null}) perf-test.pipeline(groovy.lang.Closure) perf-test.timeout({time=15, unit=HOURS}) perf-test.echo(Executing on agent [label:none]) diff --git a/tests/jenkins/jenkinsjob-regression-files/promotion/promote-container/promote-container-testPromoteContainerToDocker.jenkinsfile.txt b/tests/jenkins/jenkinsjob-regression-files/promotion/promote-container/promote-container-testPromoteContainerToDocker.jenkinsfile.txt index 27bed9474a..b3406174d4 100644 --- a/tests/jenkins/jenkinsjob-regression-files/promotion/promote-container/promote-container-testPromoteContainerToDocker.jenkinsfile.txt +++ b/tests/jenkins/jenkinsjob-regression-files/promotion/promote-container/promote-container-testPromoteContainerToDocker.jenkinsfile.txt @@ -1,6 +1,6 @@ promote-docker-ecr.run() - promote-docker-ecr.legacySCM(groovy.lang.Closure) - promote-docker-ecr.library({identifier=jenkins@20211123, retriever=null}) + promote-docker-ecr.modernSCM({$class=GitSCMSource, remote=https://github.com/opensearch-project/opensearch-build-libraries.git}) + promote-docker-ecr.library({identifier=jenkins@1.0.0, retriever=null}) promote-docker-ecr.pipeline(groovy.lang.Closure) promote-docker-ecr.timeout({time=1, unit=HOURS}) promote-docker-ecr.echo(Executing on agent [docker:[image:opensearchstaging/ci-runner:ubuntu2004-x64-docker-buildx0.6.3-qemu5.0-awscli1.22-jdk11-v2, reuseNode:false, stages:[:], args:-u root -v /var/run/docker.sock:/var/run/docker.sock, alwaysPull:false, containerPerStageRoot:false, label:Jenkins-Agent-AL2-X64-C54xlarge-Docker-Host]]) diff --git a/tests/jenkins/jenkinsjob-regression-files/promotion/promote-container/promote-container-testPromoteContainerToDockerECRLatestMajor.jenkinsfile.txt b/tests/jenkins/jenkinsjob-regression-files/promotion/promote-container/promote-container-testPromoteContainerToDockerECRLatestMajor.jenkinsfile.txt index 20188ec551..8545ba6057 100644 --- a/tests/jenkins/jenkinsjob-regression-files/promotion/promote-container/promote-container-testPromoteContainerToDockerECRLatestMajor.jenkinsfile.txt +++ b/tests/jenkins/jenkinsjob-regression-files/promotion/promote-container/promote-container-testPromoteContainerToDockerECRLatestMajor.jenkinsfile.txt @@ -1,6 +1,6 @@ promote-docker-ecr.run() - promote-docker-ecr.legacySCM(groovy.lang.Closure) - promote-docker-ecr.library({identifier=jenkins@20211123, retriever=null}) + promote-docker-ecr.modernSCM({$class=GitSCMSource, remote=https://github.com/opensearch-project/opensearch-build-libraries.git}) + promote-docker-ecr.library({identifier=jenkins@1.0.0, retriever=null}) promote-docker-ecr.pipeline(groovy.lang.Closure) promote-docker-ecr.timeout({time=1, unit=HOURS}) promote-docker-ecr.echo(Executing on agent [docker:[image:opensearchstaging/ci-runner:ubuntu2004-x64-docker-buildx0.6.3-qemu5.0-awscli1.22-jdk11-v2, reuseNode:false, stages:[:], args:-u root -v /var/run/docker.sock:/var/run/docker.sock, alwaysPull:false, containerPerStageRoot:false, label:Jenkins-Agent-AL2-X64-C54xlarge-Docker-Host]]) diff --git a/tests/jenkins/jenkinsjob-regression-files/promotion/promote-container/promote-container-testPromoteContainerToDockerLatest.jenkinsfile.txt b/tests/jenkins/jenkinsjob-regression-files/promotion/promote-container/promote-container-testPromoteContainerToDockerLatest.jenkinsfile.txt index 72461fb19c..e03ffec92e 100644 --- a/tests/jenkins/jenkinsjob-regression-files/promotion/promote-container/promote-container-testPromoteContainerToDockerLatest.jenkinsfile.txt +++ b/tests/jenkins/jenkinsjob-regression-files/promotion/promote-container/promote-container-testPromoteContainerToDockerLatest.jenkinsfile.txt @@ -1,6 +1,6 @@ promote-docker-ecr.run() - promote-docker-ecr.legacySCM(groovy.lang.Closure) - promote-docker-ecr.library({identifier=jenkins@20211123, retriever=null}) + promote-docker-ecr.modernSCM({$class=GitSCMSource, remote=https://github.com/opensearch-project/opensearch-build-libraries.git}) + promote-docker-ecr.library({identifier=jenkins@1.0.0, retriever=null}) promote-docker-ecr.pipeline(groovy.lang.Closure) promote-docker-ecr.timeout({time=1, unit=HOURS}) promote-docker-ecr.echo(Executing on agent [docker:[image:opensearchstaging/ci-runner:ubuntu2004-x64-docker-buildx0.6.3-qemu5.0-awscli1.22-jdk11-v2, reuseNode:false, stages:[:], args:-u root -v /var/run/docker.sock:/var/run/docker.sock, alwaysPull:false, containerPerStageRoot:false, label:Jenkins-Agent-AL2-X64-C54xlarge-Docker-Host]]) diff --git a/tests/jenkins/jenkinsjob-regression-files/promotion/promote-container/promote-container-testPromoteContainerToDockerLatestMajor.jenkinsfile.txt b/tests/jenkins/jenkinsjob-regression-files/promotion/promote-container/promote-container-testPromoteContainerToDockerLatestMajor.jenkinsfile.txt index b0aff85140..65cfffa055 100644 --- a/tests/jenkins/jenkinsjob-regression-files/promotion/promote-container/promote-container-testPromoteContainerToDockerLatestMajor.jenkinsfile.txt +++ b/tests/jenkins/jenkinsjob-regression-files/promotion/promote-container/promote-container-testPromoteContainerToDockerLatestMajor.jenkinsfile.txt @@ -1,6 +1,6 @@ promote-docker-ecr.run() - promote-docker-ecr.legacySCM(groovy.lang.Closure) - promote-docker-ecr.library({identifier=jenkins@20211123, retriever=null}) + promote-docker-ecr.modernSCM({$class=GitSCMSource, remote=https://github.com/opensearch-project/opensearch-build-libraries.git}) + promote-docker-ecr.library({identifier=jenkins@1.0.0, retriever=null}) promote-docker-ecr.pipeline(groovy.lang.Closure) promote-docker-ecr.timeout({time=1, unit=HOURS}) promote-docker-ecr.echo(Executing on agent [docker:[image:opensearchstaging/ci-runner:ubuntu2004-x64-docker-buildx0.6.3-qemu5.0-awscli1.22-jdk11-v2, reuseNode:false, stages:[:], args:-u root -v /var/run/docker.sock:/var/run/docker.sock, alwaysPull:false, containerPerStageRoot:false, label:Jenkins-Agent-AL2-X64-C54xlarge-Docker-Host]]) diff --git a/tests/jenkins/jenkinsjob-regression-files/promotion/promote-container/promote-container-testPromoteContainerToDockerMajor.jenkinsfile.txt b/tests/jenkins/jenkinsjob-regression-files/promotion/promote-container/promote-container-testPromoteContainerToDockerMajor.jenkinsfile.txt index fa3dbdb931..a23ef6c711 100644 --- a/tests/jenkins/jenkinsjob-regression-files/promotion/promote-container/promote-container-testPromoteContainerToDockerMajor.jenkinsfile.txt +++ b/tests/jenkins/jenkinsjob-regression-files/promotion/promote-container/promote-container-testPromoteContainerToDockerMajor.jenkinsfile.txt @@ -1,6 +1,6 @@ promote-docker-ecr.run() - promote-docker-ecr.legacySCM(groovy.lang.Closure) - promote-docker-ecr.library({identifier=jenkins@20211123, retriever=null}) + promote-docker-ecr.modernSCM({$class=GitSCMSource, remote=https://github.com/opensearch-project/opensearch-build-libraries.git}) + promote-docker-ecr.library({identifier=jenkins@1.0.0, retriever=null}) promote-docker-ecr.pipeline(groovy.lang.Closure) promote-docker-ecr.timeout({time=1, unit=HOURS}) promote-docker-ecr.echo(Executing on agent [docker:[image:opensearchstaging/ci-runner:ubuntu2004-x64-docker-buildx0.6.3-qemu5.0-awscli1.22-jdk11-v2, reuseNode:false, stages:[:], args:-u root -v /var/run/docker.sock:/var/run/docker.sock, alwaysPull:false, containerPerStageRoot:false, label:Jenkins-Agent-AL2-X64-C54xlarge-Docker-Host]]) diff --git a/tests/jenkins/jenkinsjob-regression-files/promotion/promote-container/promote-container-testPromoteContainerToECRLatestMajor.jenkinsfile.txt b/tests/jenkins/jenkinsjob-regression-files/promotion/promote-container/promote-container-testPromoteContainerToECRLatestMajor.jenkinsfile.txt index 3e740131c8..8d91ee1bc8 100644 --- a/tests/jenkins/jenkinsjob-regression-files/promotion/promote-container/promote-container-testPromoteContainerToECRLatestMajor.jenkinsfile.txt +++ b/tests/jenkins/jenkinsjob-regression-files/promotion/promote-container/promote-container-testPromoteContainerToECRLatestMajor.jenkinsfile.txt @@ -1,6 +1,6 @@ promote-docker-ecr.run() - promote-docker-ecr.legacySCM(groovy.lang.Closure) - promote-docker-ecr.library({identifier=jenkins@20211123, retriever=null}) + promote-docker-ecr.modernSCM({$class=GitSCMSource, remote=https://github.com/opensearch-project/opensearch-build-libraries.git}) + promote-docker-ecr.library({identifier=jenkins@1.0.0, retriever=null}) promote-docker-ecr.pipeline(groovy.lang.Closure) promote-docker-ecr.timeout({time=1, unit=HOURS}) promote-docker-ecr.echo(Executing on agent [docker:[image:opensearchstaging/ci-runner:ubuntu2004-x64-docker-buildx0.6.3-qemu5.0-awscli1.22-jdk11-v2, reuseNode:false, stages:[:], args:-u root -v /var/run/docker.sock:/var/run/docker.sock, alwaysPull:false, containerPerStageRoot:false, label:Jenkins-Agent-AL2-X64-C54xlarge-Docker-Host]]) diff --git a/tests/jenkins/jenkinsjob-regression-files/release-tag/release-tag-dashboards.jenkinsfile.txt b/tests/jenkins/jenkinsjob-regression-files/release-tag/release-tag-dashboards.jenkinsfile.txt index 22d55cfe99..a4a4edac0b 100644 --- a/tests/jenkins/jenkinsjob-regression-files/release-tag/release-tag-dashboards.jenkinsfile.txt +++ b/tests/jenkins/jenkinsjob-regression-files/release-tag/release-tag-dashboards.jenkinsfile.txt @@ -1,6 +1,6 @@ release-tag.run() - release-tag.legacySCM(groovy.lang.Closure) - release-tag.library({identifier=jenkins@20211123, retriever=null}) + release-tag.modernSCM({$class=GitSCMSource, remote=https://github.com/opensearch-project/opensearch-build-libraries.git}) + release-tag.library({identifier=jenkins@1.0.0, retriever=null}) release-tag.pipeline(groovy.lang.Closure) release-tag.timeout({time=2, unit=HOURS}) release-tag.echo(Executing on agent [docker:[image:opensearchstaging/ci-runner:centos7-x64-arm64-jdkmulti-node10.24.1-cypress6.9.1-20211130, reuseNode:false, stages:[:], args:, alwaysPull:true, containerPerStageRoot:false, label:Jenkins-Agent-AL2-X64-C54xlarge-Docker-Host]]) diff --git a/tests/jenkins/jenkinsjob-regression-files/release-tag/release-tag.jenkinsfile.txt b/tests/jenkins/jenkinsjob-regression-files/release-tag/release-tag.jenkinsfile.txt index c6d39340e0..8f6ba5aaaa 100644 --- a/tests/jenkins/jenkinsjob-regression-files/release-tag/release-tag.jenkinsfile.txt +++ b/tests/jenkins/jenkinsjob-regression-files/release-tag/release-tag.jenkinsfile.txt @@ -1,6 +1,6 @@ release-tag.run() - release-tag.legacySCM(groovy.lang.Closure) - release-tag.library({identifier=jenkins@20211123, retriever=null}) + release-tag.modernSCM({$class=GitSCMSource, remote=https://github.com/opensearch-project/opensearch-build-libraries.git}) + release-tag.library({identifier=jenkins@1.0.0, retriever=null}) release-tag.pipeline(groovy.lang.Closure) release-tag.timeout({time=2, unit=HOURS}) release-tag.echo(Executing on agent [docker:[image:opensearchstaging/ci-runner:centos7-x64-arm64-jdkmulti-node10.24.1-cypress6.9.1-20211130, reuseNode:false, stages:[:], args:, alwaysPull:true, containerPerStageRoot:false, label:Jenkins-Agent-AL2-X64-C54xlarge-Docker-Host]]) diff --git a/tests/jenkins/jenkinsjob-regression-files/sign-standalone-artifacts/sign-standalone-artifacts.jenkinsfile.txt b/tests/jenkins/jenkinsjob-regression-files/sign-standalone-artifacts/sign-standalone-artifacts.jenkinsfile.txt index f721bc1a4e..6b3524490d 100644 --- a/tests/jenkins/jenkinsjob-regression-files/sign-standalone-artifacts/sign-standalone-artifacts.jenkinsfile.txt +++ b/tests/jenkins/jenkinsjob-regression-files/sign-standalone-artifacts/sign-standalone-artifacts.jenkinsfile.txt @@ -1,6 +1,6 @@ sign-standalone-artifacts.run() - sign-standalone-artifacts.legacySCM(groovy.lang.Closure) - sign-standalone-artifacts.library({identifier=jenkins@20211123, retriever=null}) + sign-standalone-artifacts.modernSCM({$class=GitSCMSource, remote=https://github.com/opensearch-project/opensearch-build-libraries.git}) + sign-standalone-artifacts.library({identifier=jenkins@1.0.0, retriever=null}) sign-standalone-artifacts.pipeline(groovy.lang.Closure) sign-standalone-artifacts.credentials(jenkins-artifact-bucket-name) sign-standalone-artifacts.echo(Executing on agent [docker:[image:opensearchstaging/ci-runner:ci-runner-rockylinux8-opensearch-build-v2, reuseNode:false, stages:[:], args:, alwaysPull:true, containerPerStageRoot:false, label:Jenkins-Agent-AL2-X64-C54xlarge-Docker-Host]]) diff --git a/tests/jenkins/jobs/AssembleManifest_rpm_Jenkinsfile b/tests/jenkins/jobs/AssembleManifest_rpm_Jenkinsfile index fc439fc929..9dc2c923ea 100644 --- a/tests/jenkins/jobs/AssembleManifest_rpm_Jenkinsfile +++ b/tests/jenkins/jobs/AssembleManifest_rpm_Jenkinsfile @@ -1,4 +1,7 @@ -lib = library(identifier: "jenkins@20211123", retriever: legacySCM(scm)) +lib = library(identifier: 'jenkins@1.0.0', retriever: modernSCM([ + $class: 'GitSCMSource', + remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git', +])) pipeline { agent none diff --git a/tests/jenkins/jobs/AssembleManifest_rpm_Jenkinsfile.txt b/tests/jenkins/jobs/AssembleManifest_rpm_Jenkinsfile.txt index d6f1a60de6..ab938f5107 100644 --- a/tests/jenkins/jobs/AssembleManifest_rpm_Jenkinsfile.txt +++ b/tests/jenkins/jobs/AssembleManifest_rpm_Jenkinsfile.txt @@ -1,6 +1,6 @@ AssembleManifest_rpm_Jenkinsfile.run() - AssembleManifest_rpm_Jenkinsfile.legacySCM(groovy.lang.Closure) - AssembleManifest_rpm_Jenkinsfile.library({identifier=jenkins@20211123, retriever=null}) + AssembleManifest_rpm_Jenkinsfile.modernSCM({$class=GitSCMSource, remote=https://github.com/opensearch-project/opensearch-build-libraries.git}) + AssembleManifest_rpm_Jenkinsfile.library({identifier=jenkins@1.0.0, retriever=null}) AssembleManifest_rpm_Jenkinsfile.pipeline(groovy.lang.Closure) AssembleManifest_rpm_Jenkinsfile.echo(Executing on agent [label:none]) AssembleManifest_rpm_Jenkinsfile.stage(assembleManifest rpm, groovy.lang.Closure) diff --git a/tests/jenkins/jobs/AssembleManifest_tar_Jenkinsfile b/tests/jenkins/jobs/AssembleManifest_tar_Jenkinsfile index 2995f10d65..b569de0f30 100644 --- a/tests/jenkins/jobs/AssembleManifest_tar_Jenkinsfile +++ b/tests/jenkins/jobs/AssembleManifest_tar_Jenkinsfile @@ -1,4 +1,7 @@ -lib = library(identifier: "jenkins@20211123", retriever: legacySCM(scm)) +lib = library(identifier: 'jenkins@1.0.0', retriever: modernSCM([ + $class: 'GitSCMSource', + remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git', +])) pipeline { agent none diff --git a/tests/jenkins/jobs/AssembleManifest_tar_Jenkinsfile.txt b/tests/jenkins/jobs/AssembleManifest_tar_Jenkinsfile.txt index e28e841593..f7535c2cfb 100644 --- a/tests/jenkins/jobs/AssembleManifest_tar_Jenkinsfile.txt +++ b/tests/jenkins/jobs/AssembleManifest_tar_Jenkinsfile.txt @@ -1,6 +1,6 @@ AssembleManifest_tar_Jenkinsfile.run() - AssembleManifest_tar_Jenkinsfile.legacySCM(groovy.lang.Closure) - AssembleManifest_tar_Jenkinsfile.library({identifier=jenkins@20211123, retriever=null}) + AssembleManifest_tar_Jenkinsfile.modernSCM({$class=GitSCMSource, remote=https://github.com/opensearch-project/opensearch-build-libraries.git}) + AssembleManifest_tar_Jenkinsfile.library({identifier=jenkins@1.0.0, retriever=null}) AssembleManifest_tar_Jenkinsfile.pipeline(groovy.lang.Closure) AssembleManifest_tar_Jenkinsfile.echo(Executing on agent [label:none]) AssembleManifest_tar_Jenkinsfile.stage(assembleManifest tar, groovy.lang.Closure) diff --git a/tests/jenkins/jobs/BuildManifest_Jenkinsfile b/tests/jenkins/jobs/BuildManifest_Jenkinsfile index 5cfbf7581e..27de2e354e 100644 --- a/tests/jenkins/jobs/BuildManifest_Jenkinsfile +++ b/tests/jenkins/jobs/BuildManifest_Jenkinsfile @@ -6,7 +6,10 @@ * compatible open source license. */ -def lib = library("jenkins") +lib = library(identifier: 'jenkins@1.0.0', retriever: modernSCM([ + $class: 'GitSCMSource', + remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git', +])) pipeline { agent none diff --git a/tests/jenkins/jobs/BuildManifest_Jenkinsfile.txt b/tests/jenkins/jobs/BuildManifest_Jenkinsfile.txt index c1f3602f89..571f366dfc 100644 --- a/tests/jenkins/jobs/BuildManifest_Jenkinsfile.txt +++ b/tests/jenkins/jobs/BuildManifest_Jenkinsfile.txt @@ -1,5 +1,6 @@ BuildManifest_Jenkinsfile.run() - BuildManifest_Jenkinsfile.library(jenkins) + BuildManifest_Jenkinsfile.modernSCM({$class=GitSCMSource, remote=https://github.com/opensearch-project/opensearch-build-libraries.git}) + BuildManifest_Jenkinsfile.library({identifier=jenkins@1.0.0, retriever=null}) BuildManifest_Jenkinsfile.pipeline(groovy.lang.Closure) BuildManifest_Jenkinsfile.echo(Executing on agent [label:none]) BuildManifest_Jenkinsfile.stage(Build Manifest Properties, groovy.lang.Closure) diff --git a/tests/jenkins/jobs/BuildManifest_Jenkinsfile_component_no_artifact b/tests/jenkins/jobs/BuildManifest_Jenkinsfile_component_no_artifact index f16af0fa46..71950dbc06 100644 --- a/tests/jenkins/jobs/BuildManifest_Jenkinsfile_component_no_artifact +++ b/tests/jenkins/jobs/BuildManifest_Jenkinsfile_component_no_artifact @@ -6,7 +6,10 @@ * compatible open source license. */ -def lib = library("jenkins") +lib = library(identifier: 'jenkins@1.0.0', retriever: modernSCM([ + $class: 'GitSCMSource', + remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git', +])) pipeline { agent none diff --git a/tests/jenkins/jobs/BuildManifest_Jenkinsfile_component_no_artifact.txt b/tests/jenkins/jobs/BuildManifest_Jenkinsfile_component_no_artifact.txt index 2019e5b1c7..793d59c7b5 100755 --- a/tests/jenkins/jobs/BuildManifest_Jenkinsfile_component_no_artifact.txt +++ b/tests/jenkins/jobs/BuildManifest_Jenkinsfile_component_no_artifact.txt @@ -1,5 +1,6 @@ BuildManifest_Jenkinsfile_component_no_artifact.run() - BuildManifest_Jenkinsfile_component_no_artifact.library(jenkins) + BuildManifest_Jenkinsfile_component_no_artifact.modernSCM({$class=GitSCMSource, remote=https://github.com/opensearch-project/opensearch-build-libraries.git}) + BuildManifest_Jenkinsfile_component_no_artifact.library({identifier=jenkins@1.0.0, retriever=null}) BuildManifest_Jenkinsfile_component_no_artifact.pipeline(groovy.lang.Closure) BuildManifest_Jenkinsfile_component_no_artifact.echo(Executing on agent [label:none]) BuildManifest_Jenkinsfile_component_no_artifact.stage(Build Manifest Properties, groovy.lang.Closure) diff --git a/tests/jenkins/jobs/BuildYumRepo_Jenkinsfile b/tests/jenkins/jobs/BuildYumRepo_Jenkinsfile index f9370847a4..0467d1f72c 100644 --- a/tests/jenkins/jobs/BuildYumRepo_Jenkinsfile +++ b/tests/jenkins/jobs/BuildYumRepo_Jenkinsfile @@ -1,4 +1,7 @@ -lib = library(identifier: "jenkins@20211123", retriever: legacySCM(scm)) +lib = library(identifier: 'jenkins@1.0.0', retriever: modernSCM([ + $class: 'GitSCMSource', + remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git', +])) pipeline { agent none diff --git a/tests/jenkins/jobs/BuildYumRepo_Jenkinsfile.txt b/tests/jenkins/jobs/BuildYumRepo_Jenkinsfile.txt index be23bc2d23..fa95f8aff9 100644 --- a/tests/jenkins/jobs/BuildYumRepo_Jenkinsfile.txt +++ b/tests/jenkins/jobs/BuildYumRepo_Jenkinsfile.txt @@ -1,6 +1,6 @@ BuildYumRepo_Jenkinsfile.run() - BuildYumRepo_Jenkinsfile.legacySCM(groovy.lang.Closure) - BuildYumRepo_Jenkinsfile.library({identifier=jenkins@20211123, retriever=null}) + BuildYumRepo_Jenkinsfile.modernSCM({$class=GitSCMSource, remote=https://github.com/opensearch-project/opensearch-build-libraries.git}) + BuildYumRepo_Jenkinsfile.library({identifier=jenkins@1.0.0, retriever=null}) BuildYumRepo_Jenkinsfile.pipeline(groovy.lang.Closure) BuildYumRepo_Jenkinsfile.echo(Executing on agent [label:none]) BuildYumRepo_Jenkinsfile.stage(buildYumRepo, groovy.lang.Closure) diff --git a/tests/jenkins/jobs/Build_OpenSearch_Dashboards_Jenkinsfile b/tests/jenkins/jobs/Build_OpenSearch_Dashboards_Jenkinsfile index 65599680cf..af2c3a6cd7 100644 --- a/tests/jenkins/jobs/Build_OpenSearch_Dashboards_Jenkinsfile +++ b/tests/jenkins/jobs/Build_OpenSearch_Dashboards_Jenkinsfile @@ -1,4 +1,7 @@ -lib = library(identifier: 'jenkins@20211123', retriever: legacySCM(scm)) +lib = library(identifier: 'jenkins@1.0.0', retriever: modernSCM([ + $class: 'GitSCMSource', + remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git', +])) pipeline { agent none diff --git a/tests/jenkins/jobs/InputManifest_Jenkinsfile b/tests/jenkins/jobs/InputManifest_Jenkinsfile index d57a09bb46..e0c073ce5f 100644 --- a/tests/jenkins/jobs/InputManifest_Jenkinsfile +++ b/tests/jenkins/jobs/InputManifest_Jenkinsfile @@ -6,7 +6,10 @@ * compatible open source license. */ -def lib = library("jenkins") +lib = library(identifier: 'jenkins@1.0.0', retriever: modernSCM([ + $class: 'GitSCMSource', + remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git', +])) pipeline { agent none diff --git a/tests/jenkins/jobs/InputManifest_Jenkinsfile.txt b/tests/jenkins/jobs/InputManifest_Jenkinsfile.txt index d6cee7b09b..80b78ebe4a 100644 --- a/tests/jenkins/jobs/InputManifest_Jenkinsfile.txt +++ b/tests/jenkins/jobs/InputManifest_Jenkinsfile.txt @@ -1,5 +1,6 @@ InputManifest_Jenkinsfile.run() - InputManifest_Jenkinsfile.library(jenkins) + InputManifest_Jenkinsfile.modernSCM({$class=GitSCMSource, remote=https://github.com/opensearch-project/opensearch-build-libraries.git}) + InputManifest_Jenkinsfile.library({identifier=jenkins@1.0.0, retriever=null}) InputManifest_Jenkinsfile.pipeline(groovy.lang.Closure) InputManifest_Jenkinsfile.echo(Executing on agent [label:none]) InputManifest_Jenkinsfile.stage(input manifest 1.1.0, groovy.lang.Closure) diff --git a/tests/jenkins/jobs/Messages_Jenkinsfile b/tests/jenkins/jobs/Messages_Jenkinsfile index 07a9053ece..9ab6b35876 100644 --- a/tests/jenkins/jobs/Messages_Jenkinsfile +++ b/tests/jenkins/jobs/Messages_Jenkinsfile @@ -6,7 +6,10 @@ * compatible open source license. */ -def lib = library("jenkins") +lib = library(identifier: 'jenkins@1.0.0', retriever: modernSCM([ + $class: 'GitSCMSource', + remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git', +])) pipeline { agent none diff --git a/tests/jenkins/jobs/Messages_Jenkinsfile.txt b/tests/jenkins/jobs/Messages_Jenkinsfile.txt index ed05e9a8c3..b0f76c6657 100644 --- a/tests/jenkins/jobs/Messages_Jenkinsfile.txt +++ b/tests/jenkins/jobs/Messages_Jenkinsfile.txt @@ -1,5 +1,6 @@ Messages_Jenkinsfile.run() - Messages_Jenkinsfile.library(jenkins) + Messages_Jenkinsfile.modernSCM({$class=GitSCMSource, remote=https://github.com/opensearch-project/opensearch-build-libraries.git}) + Messages_Jenkinsfile.library({identifier=jenkins@1.0.0, retriever=null}) Messages_Jenkinsfile.pipeline(groovy.lang.Closure) Messages_Jenkinsfile.echo(Executing on agent [label:none]) Messages_Jenkinsfile.stage(Example Build, groovy.lang.Closure) diff --git a/tests/jenkins/jobs/ParallelMessages_Jenkinsfile b/tests/jenkins/jobs/ParallelMessages_Jenkinsfile index d2adf8a1d6..28b57ac98e 100644 --- a/tests/jenkins/jobs/ParallelMessages_Jenkinsfile +++ b/tests/jenkins/jobs/ParallelMessages_Jenkinsfile @@ -1,4 +1,7 @@ -lib = library(identifier: "jenkins@20211123", retriever: legacySCM(scm)) +lib = library(identifier: 'jenkins@1.0.0', retriever: modernSCM([ + $class: 'GitSCMSource', + remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git', +])) pipeline { agent none diff --git a/tests/jenkins/jobs/UploadIndexFile_Jenkinsfile b/tests/jenkins/jobs/UploadIndexFile_Jenkinsfile index 42cc528f74..076f17ef7d 100644 --- a/tests/jenkins/jobs/UploadIndexFile_Jenkinsfile +++ b/tests/jenkins/jobs/UploadIndexFile_Jenkinsfile @@ -1,4 +1,7 @@ -lib = library(identifier: "jenkins@20211123", retriever: legacySCM(scm)) +lib = library(identifier: 'jenkins@1.0.0', retriever: modernSCM([ + $class: 'GitSCMSource', + remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git', +])) pipeline { agent none diff --git a/tests/jenkins/jobs/UploadIndexFile_Jenkinsfile.txt b/tests/jenkins/jobs/UploadIndexFile_Jenkinsfile.txt index 10f21403ca..8bb19af8d3 100644 --- a/tests/jenkins/jobs/UploadIndexFile_Jenkinsfile.txt +++ b/tests/jenkins/jobs/UploadIndexFile_Jenkinsfile.txt @@ -1,6 +1,6 @@ UploadIndexFile_Jenkinsfile.run() - UploadIndexFile_Jenkinsfile.legacySCM(groovy.lang.Closure) - UploadIndexFile_Jenkinsfile.library({identifier=jenkins@20211123, retriever=null}) + UploadIndexFile_Jenkinsfile.modernSCM({$class=GitSCMSource, remote=https://github.com/opensearch-project/opensearch-build-libraries.git}) + UploadIndexFile_Jenkinsfile.library({identifier=jenkins@1.0.0, retriever=null}) UploadIndexFile_Jenkinsfile.pipeline(groovy.lang.Closure) UploadIndexFile_Jenkinsfile.echo(Executing on agent [label:none]) UploadIndexFile_Jenkinsfile.stage(uploadIndexFile, groovy.lang.Closure) diff --git a/tests/jenkins/jobs/uploadMinSnapshotsToS3_Jenkinsfile b/tests/jenkins/jobs/uploadMinSnapshotsToS3_Jenkinsfile index e55e30af99..139a0837b5 100644 --- a/tests/jenkins/jobs/uploadMinSnapshotsToS3_Jenkinsfile +++ b/tests/jenkins/jobs/uploadMinSnapshotsToS3_Jenkinsfile @@ -1,4 +1,7 @@ -lib = library(identifier: "jenkins@20211123", retriever: legacySCM(scm)) +lib = library(identifier: 'jenkins@1.0.0', retriever: modernSCM([ + $class: 'GitSCMSource', + remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git', +])) pipeline { agent none diff --git a/tests/jenkins/jobs/uploadMinSnapshotsToS3_Jenkinsfile.txt b/tests/jenkins/jobs/uploadMinSnapshotsToS3_Jenkinsfile.txt index 92cbd91308..095b75d6f2 100644 --- a/tests/jenkins/jobs/uploadMinSnapshotsToS3_Jenkinsfile.txt +++ b/tests/jenkins/jobs/uploadMinSnapshotsToS3_Jenkinsfile.txt @@ -1,6 +1,6 @@ uploadMinSnapshotsToS3_Jenkinsfile.run() - uploadMinSnapshotsToS3_Jenkinsfile.legacySCM(groovy.lang.Closure) - uploadMinSnapshotsToS3_Jenkinsfile.library({identifier=jenkins@20211123, retriever=null}) + uploadMinSnapshotsToS3_Jenkinsfile.modernSCM({$class=GitSCMSource, remote=https://github.com/opensearch-project/opensearch-build-libraries.git}) + uploadMinSnapshotsToS3_Jenkinsfile.library({identifier=jenkins@1.0.0, retriever=null}) uploadMinSnapshotsToS3_Jenkinsfile.pipeline(groovy.lang.Closure) uploadMinSnapshotsToS3_Jenkinsfile.echo(Executing on agent [label:none]) uploadMinSnapshotsToS3_Jenkinsfile.stage(uploadMinSnapshotsToS3, groovy.lang.Closure) @@ -30,10 +30,9 @@ ccc bbb ccc }) - uploadMinSnapshotsToS3.echo(Start copying files) uploadMinSnapshotsToS3.sh( - cp -v tests/data/tar/builds/opensearch/dist/opensearch-min-1.2.2-SNAPSHOT-linux-x64.tar.gz tests/data/tar/builds/opensearch/dist/opensearch-min-1.2.2-SNAPSHOT-linux-x64-latest.tar.gz - cp -v tests/data/tar/builds/opensearch/dist/opensearch-min-1.2.2-SNAPSHOT-linux-x64.tar.gz.sha512 tests/data/tar/builds/opensearch/dist/opensearch-min-1.2.2-SNAPSHOT-linux-x64-latest.tar.gz.sha512 + cp tests/data/tar/builds/opensearch/dist/opensearch-min-1.2.2-SNAPSHOT-linux-x64.tar.gz tests/data/tar/builds/opensearch/dist/opensearch-min-1.2.2-SNAPSHOT-linux-x64-latest.tar.gz + cp tests/data/tar/builds/opensearch/dist/opensearch-min-1.2.2-SNAPSHOT-linux-x64.tar.gz.sha512 tests/data/tar/builds/opensearch/dist/opensearch-min-1.2.2-SNAPSHOT-linux-x64-latest.tar.gz.sha512 sed -i "s/.tar.gz/-latest.tar.gz/g" tests/data/tar/builds/opensearch/dist/opensearch-min-1.2.2-SNAPSHOT-linux-x64-latest.tar.gz.sha512 ) uploadMinSnapshotsToS3.string({credentialsId=jenkins-artifact-promotion-role, variable=ARTIFACT_PROMOTION_ROLE_NAME}) diff --git a/tests/jenkins/lib-testers/AssembleManifestLibTester.groovy b/tests/jenkins/lib-testers/AssembleManifestLibTester.groovy index 78e977986e..6dab9b0e76 100644 --- a/tests/jenkins/lib-testers/AssembleManifestLibTester.groovy +++ b/tests/jenkins/lib-testers/AssembleManifestLibTester.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/lib-testers/BuildFailureMessageLibTester.groovy b/tests/jenkins/lib-testers/BuildFailureMessageLibTester.groovy index 41f8113e96..02a14117f2 100644 --- a/tests/jenkins/lib-testers/BuildFailureMessageLibTester.groovy +++ b/tests/jenkins/lib-testers/BuildFailureMessageLibTester.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/lib-testers/BuildInfoYamlLibTester.groovy b/tests/jenkins/lib-testers/BuildInfoYamlLibTester.groovy index 8086a582ae..a8db35f40e 100644 --- a/tests/jenkins/lib-testers/BuildInfoYamlLibTester.groovy +++ b/tests/jenkins/lib-testers/BuildInfoYamlLibTester.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/lib-testers/BuildYumRepoTester.groovy b/tests/jenkins/lib-testers/BuildYumRepoTester.groovy index e9de56c040..3afacb77c4 100644 --- a/tests/jenkins/lib-testers/BuildYumRepoTester.groovy +++ b/tests/jenkins/lib-testers/BuildYumRepoTester.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/lib-testers/CreateGithubIssueLibTester.groovy b/tests/jenkins/lib-testers/CreateGithubIssueLibTester.groovy index e59e68fca3..7a109c2257 100644 --- a/tests/jenkins/lib-testers/CreateGithubIssueLibTester.groovy +++ b/tests/jenkins/lib-testers/CreateGithubIssueLibTester.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/lib-testers/CreateReleaseTagLibTester.groovy b/tests/jenkins/lib-testers/CreateReleaseTagLibTester.groovy index afed9d7044..16829fefa6 100644 --- a/tests/jenkins/lib-testers/CreateReleaseTagLibTester.groovy +++ b/tests/jenkins/lib-testers/CreateReleaseTagLibTester.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/lib-testers/CreateTestResultsMessageLibTester.groovy b/tests/jenkins/lib-testers/CreateTestResultsMessageLibTester.groovy index ff9521aa0b..034aca4a85 100644 --- a/tests/jenkins/lib-testers/CreateTestResultsMessageLibTester.groovy +++ b/tests/jenkins/lib-testers/CreateTestResultsMessageLibTester.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/lib-testers/DetectTestDockerAgentLibTester.groovy b/tests/jenkins/lib-testers/DetectTestDockerAgentLibTester.groovy index e21ea0dc55..8af510cc1c 100644 --- a/tests/jenkins/lib-testers/DetectTestDockerAgentLibTester.groovy +++ b/tests/jenkins/lib-testers/DetectTestDockerAgentLibTester.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/lib-testers/DownloadBuildManifestLibTester.groovy b/tests/jenkins/lib-testers/DownloadBuildManifestLibTester.groovy index c283e3005b..5a9fc40ece 100644 --- a/tests/jenkins/lib-testers/DownloadBuildManifestLibTester.groovy +++ b/tests/jenkins/lib-testers/DownloadBuildManifestLibTester.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/lib-testers/DownloadFromS3LibTester.groovy b/tests/jenkins/lib-testers/DownloadFromS3LibTester.groovy index 016ede9840..0220b17e7b 100644 --- a/tests/jenkins/lib-testers/DownloadFromS3LibTester.groovy +++ b/tests/jenkins/lib-testers/DownloadFromS3LibTester.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/lib-testers/PrintArtifactDownloadUrlsForStagingLibTester.groovy b/tests/jenkins/lib-testers/PrintArtifactDownloadUrlsForStagingLibTester.groovy index 76ff1899ab..add17af2ba 100644 --- a/tests/jenkins/lib-testers/PrintArtifactDownloadUrlsForStagingLibTester.groovy +++ b/tests/jenkins/lib-testers/PrintArtifactDownloadUrlsForStagingLibTester.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/lib-testers/PublishNotificationLibTester.groovy b/tests/jenkins/lib-testers/PublishNotificationLibTester.groovy index 84e10a0dbd..9bc5637e86 100644 --- a/tests/jenkins/lib-testers/PublishNotificationLibTester.groovy +++ b/tests/jenkins/lib-testers/PublishNotificationLibTester.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/lib-testers/RpmDashboardsDistValidationLibTester.groovy b/tests/jenkins/lib-testers/RpmDashboardsDistValidationLibTester.groovy index 9b20596171..d0b59e6f17 100644 --- a/tests/jenkins/lib-testers/RpmDashboardsDistValidationLibTester.groovy +++ b/tests/jenkins/lib-testers/RpmDashboardsDistValidationLibTester.groovy @@ -1,5 +1,5 @@ - /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/lib-testers/RpmMetaValidationLibTester.groovy b/tests/jenkins/lib-testers/RpmMetaValidationLibTester.groovy index b5a71226ea..5bf899a3b7 100644 --- a/tests/jenkins/lib-testers/RpmMetaValidationLibTester.groovy +++ b/tests/jenkins/lib-testers/RpmMetaValidationLibTester.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/lib-testers/RpmOpenSearchDistValidationLibTester.groovy b/tests/jenkins/lib-testers/RpmOpenSearchDistValidationLibTester.groovy index 435d5e3fdb..eb524cdd6e 100644 --- a/tests/jenkins/lib-testers/RpmOpenSearchDistValidationLibTester.groovy +++ b/tests/jenkins/lib-testers/RpmOpenSearchDistValidationLibTester.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/lib-testers/RunBwcTestScriptLibTest.groovy b/tests/jenkins/lib-testers/RunBwcTestScriptLibTest.groovy index 42519e1f20..a8e86ce04a 100644 --- a/tests/jenkins/lib-testers/RunBwcTestScriptLibTest.groovy +++ b/tests/jenkins/lib-testers/RunBwcTestScriptLibTest.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/lib-testers/RunGradleCheckLibTester.groovy b/tests/jenkins/lib-testers/RunGradleCheckLibTester.groovy index e639854c33..267d1cbe6c 100644 --- a/tests/jenkins/lib-testers/RunGradleCheckLibTester.groovy +++ b/tests/jenkins/lib-testers/RunGradleCheckLibTester.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/lib-testers/RunIntegTestScriptLibTest.groovy b/tests/jenkins/lib-testers/RunIntegTestScriptLibTest.groovy index 98799ae63a..eddbc70d63 100644 --- a/tests/jenkins/lib-testers/RunIntegTestScriptLibTest.groovy +++ b/tests/jenkins/lib-testers/RunIntegTestScriptLibTest.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/lib-testers/RunPerfTestScriptLibTest.groovy b/tests/jenkins/lib-testers/RunPerfTestScriptLibTest.groovy index 963da32209..5ec162592c 100644 --- a/tests/jenkins/lib-testers/RunPerfTestScriptLibTest.groovy +++ b/tests/jenkins/lib-testers/RunPerfTestScriptLibTest.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/lib-testers/ScanDockerImageLibTester.groovy b/tests/jenkins/lib-testers/ScanDockerImageLibTester.groovy index aa196dcfc8..b89f64210c 100644 --- a/tests/jenkins/lib-testers/ScanDockerImageLibTester.groovy +++ b/tests/jenkins/lib-testers/ScanDockerImageLibTester.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/lib-testers/SignArtifactsLibTester.groovy b/tests/jenkins/lib-testers/SignArtifactsLibTester.groovy index c15f40d562..6195f0c9cd 100644 --- a/tests/jenkins/lib-testers/SignArtifactsLibTester.groovy +++ b/tests/jenkins/lib-testers/SignArtifactsLibTester.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/lib-testers/UploadIndexFileLibTester.groovy b/tests/jenkins/lib-testers/UploadIndexFileLibTester.groovy index 7c9e825ecf..5d00325a40 100644 --- a/tests/jenkins/lib-testers/UploadIndexFileLibTester.groovy +++ b/tests/jenkins/lib-testers/UploadIndexFileLibTester.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/lib-testers/UploadMinSnapshotsToS3LibTester.groovy b/tests/jenkins/lib-testers/UploadMinSnapshotsToS3LibTester.groovy index ecfafeb880..75f0897f70 100644 --- a/tests/jenkins/lib-testers/UploadMinSnapshotsToS3LibTester.groovy +++ b/tests/jenkins/lib-testers/UploadMinSnapshotsToS3LibTester.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/lib-testers/UploadTestResultsLibTester.groovy b/tests/jenkins/lib-testers/UploadTestResultsLibTester.groovy index a446dde5a0..58d85f050b 100644 --- a/tests/jenkins/lib-testers/UploadTestResultsLibTester.groovy +++ b/tests/jenkins/lib-testers/UploadTestResultsLibTester.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/jenkins/lib-testers/UploadToS3LibTester.groovy b/tests/jenkins/lib-testers/UploadToS3LibTester.groovy index e1c9cef387..cd266ec1ae 100644 --- a/tests/jenkins/lib-testers/UploadToS3LibTester.groovy +++ b/tests/jenkins/lib-testers/UploadToS3LibTester.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/tests/test_run_assemble.py b/tests/test_run_assemble.py index ad71769a54..0149f21fa5 100644 --- a/tests/test_run_assemble.py +++ b/tests/test_run_assemble.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/test_run_build.py b/tests/test_run_build.py index dbc77469df..583493808f 100644 --- a/tests/test_run_build.py +++ b/tests/test_run_build.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/test_run_checkout.py b/tests/test_run_checkout.py index dd60b671de..bbfc5036a0 100644 --- a/tests/test_run_checkout.py +++ b/tests/test_run_checkout.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/test_run_ci.py b/tests/test_run_ci.py index f0f4b8e729..b5b7b59ce5 100644 --- a/tests/test_run_ci.py +++ b/tests/test_run_ci.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/test_run_manifests.py b/tests/test_run_manifests.py index 05d8f29a82..e2116a90bd 100644 --- a/tests/test_run_manifests.py +++ b/tests/test_run_manifests.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/test_run_perf_test.py b/tests/test_run_perf_test.py index 006e1aa635..d86c542c09 100644 --- a/tests/test_run_perf_test.py +++ b/tests/test_run_perf_test.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/test_run_releasenotes_check.py b/tests/test_run_releasenotes_check.py index 3a8ebb6de8..e4b473ec7f 100644 --- a/tests/test_run_releasenotes_check.py +++ b/tests/test_run_releasenotes_check.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/test_run_sign.py b/tests/test_run_sign.py index 606a1fea5d..6b209866a5 100644 --- a/tests/test_run_sign.py +++ b/tests/test_run_sign.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_assemble_workflow/__init__.py b/tests/tests_assemble_workflow/__init__.py index 71cb6978dc..9cf03e4e4e 100644 --- a/tests/tests_assemble_workflow/__init__.py +++ b/tests/tests_assemble_workflow/__init__.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_assemble_workflow/test_assemble_args.py b/tests/tests_assemble_workflow/test_assemble_args.py index e7dbe4f9e8..4288449a1f 100644 --- a/tests/tests_assemble_workflow/test_assemble_args.py +++ b/tests/tests_assemble_workflow/test_assemble_args.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_assemble_workflow/test_bundle.py b/tests/tests_assemble_workflow/test_bundle.py index 478b5832b1..a3170fd612 100644 --- a/tests/tests_assemble_workflow/test_bundle.py +++ b/tests/tests_assemble_workflow/test_bundle.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_assemble_workflow/test_bundle_file_location.py b/tests/tests_assemble_workflow/test_bundle_file_location.py index c80de7e6f0..1bdb5bc05a 100644 --- a/tests/tests_assemble_workflow/test_bundle_file_location.py +++ b/tests/tests_assemble_workflow/test_bundle_file_location.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_assemble_workflow/test_bundle_locations.py b/tests/tests_assemble_workflow/test_bundle_locations.py index 63ad85433f..f77a37b0d7 100644 --- a/tests/tests_assemble_workflow/test_bundle_locations.py +++ b/tests/tests_assemble_workflow/test_bundle_locations.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_assemble_workflow/test_bundle_opensearch.py b/tests/tests_assemble_workflow/test_bundle_opensearch.py index 814bce4d2b..97833d95a2 100644 --- a/tests/tests_assemble_workflow/test_bundle_opensearch.py +++ b/tests/tests_assemble_workflow/test_bundle_opensearch.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_assemble_workflow/test_bundle_opensearch_dashboards.py b/tests/tests_assemble_workflow/test_bundle_opensearch_dashboards.py index a2e9a12cda..8a7cc062c9 100644 --- a/tests/tests_assemble_workflow/test_bundle_opensearch_dashboards.py +++ b/tests/tests_assemble_workflow/test_bundle_opensearch_dashboards.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_assemble_workflow/test_bundle_recorder.py b/tests/tests_assemble_workflow/test_bundle_recorder.py index 74913652e8..6601a3aafd 100644 --- a/tests/tests_assemble_workflow/test_bundle_recorder.py +++ b/tests/tests_assemble_workflow/test_bundle_recorder.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_assemble_workflow/test_bundle_rpm.py b/tests/tests_assemble_workflow/test_bundle_rpm.py index a22b2dd8d7..b2c4ecc5cc 100644 --- a/tests/tests_assemble_workflow/test_bundle_rpm.py +++ b/tests/tests_assemble_workflow/test_bundle_rpm.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_assemble_workflow/test_bundle_url_location.py b/tests/tests_assemble_workflow/test_bundle_url_location.py index f7c218e5f5..cbfafb8107 100644 --- a/tests/tests_assemble_workflow/test_bundle_url_location.py +++ b/tests/tests_assemble_workflow/test_bundle_url_location.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_assemble_workflow/test_bundles.py b/tests/tests_assemble_workflow/test_bundles.py index 4f8ee58bff..d243e96339 100644 --- a/tests/tests_assemble_workflow/test_bundles.py +++ b/tests/tests_assemble_workflow/test_bundles.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_assemble_workflow/test_dist.py b/tests/tests_assemble_workflow/test_dist.py index 035c5ee8d9..f44e357948 100644 --- a/tests/tests_assemble_workflow/test_dist.py +++ b/tests/tests_assemble_workflow/test_dist.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_assemble_workflow/test_dists.py b/tests/tests_assemble_workflow/test_dists.py index ef762805a0..081c6508e0 100644 --- a/tests/tests_assemble_workflow/test_dists.py +++ b/tests/tests_assemble_workflow/test_dists.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_build_workflow/__init__.py b/tests/tests_build_workflow/__init__.py index b71099c9e2..560eb045ca 100644 --- a/tests/tests_build_workflow/__init__.py +++ b/tests/tests_build_workflow/__init__.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_build_workflow/opensearch/__init__.py b/tests/tests_build_workflow/opensearch/__init__.py index 797fe03b57..8ab21956e4 100644 --- a/tests/tests_build_workflow/opensearch/__init__.py +++ b/tests/tests_build_workflow/opensearch/__init__.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_build_workflow/opensearch/test_build_artifact_opensearch_check_maven.py b/tests/tests_build_workflow/opensearch/test_build_artifact_opensearch_check_maven.py index 264ddb475f..c1208046fc 100644 --- a/tests/tests_build_workflow/opensearch/test_build_artifact_opensearch_check_maven.py +++ b/tests/tests_build_workflow/opensearch/test_build_artifact_opensearch_check_maven.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_build_workflow/opensearch/test_build_artifact_opensearch_check_plugin.py b/tests/tests_build_workflow/opensearch/test_build_artifact_opensearch_check_plugin.py index fc5740f8ef..fb7981c0f3 100644 --- a/tests/tests_build_workflow/opensearch/test_build_artifact_opensearch_check_plugin.py +++ b/tests/tests_build_workflow/opensearch/test_build_artifact_opensearch_check_plugin.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_build_workflow/opensearch_dashboards/__init__.py b/tests/tests_build_workflow/opensearch_dashboards/__init__.py index 797fe03b57..8ab21956e4 100644 --- a/tests/tests_build_workflow/opensearch_dashboards/__init__.py +++ b/tests/tests_build_workflow/opensearch_dashboards/__init__.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_build_workflow/opensearch_dashboards/test_build_artifact_opensearch_dashboards_check_plugin.py b/tests/tests_build_workflow/opensearch_dashboards/test_build_artifact_opensearch_dashboards_check_plugin.py index 30b40d2dd6..a6d58f26e8 100644 --- a/tests/tests_build_workflow/opensearch_dashboards/test_build_artifact_opensearch_dashboards_check_plugin.py +++ b/tests/tests_build_workflow/opensearch_dashboards/test_build_artifact_opensearch_dashboards_check_plugin.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_build_workflow/test_build_args.py b/tests/tests_build_workflow/test_build_args.py index 18c32c58ed..9f85873af6 100644 --- a/tests/tests_build_workflow/test_build_args.py +++ b/tests/tests_build_workflow/test_build_args.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_build_workflow/test_build_artifact_checks.py b/tests/tests_build_workflow/test_build_artifact_checks.py index a3dbd57698..5861308dee 100644 --- a/tests/tests_build_workflow/test_build_artifact_checks.py +++ b/tests/tests_build_workflow/test_build_artifact_checks.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_build_workflow/test_build_recorder.py b/tests/tests_build_workflow/test_build_recorder.py index 4118e9519d..24011ce2e0 100644 --- a/tests/tests_build_workflow/test_build_recorder.py +++ b/tests/tests_build_workflow/test_build_recorder.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_build_workflow/test_build_target.py b/tests/tests_build_workflow/test_build_target.py index 9062e769d5..5a00e407ad 100644 --- a/tests/tests_build_workflow/test_build_target.py +++ b/tests/tests_build_workflow/test_build_target.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_build_workflow/test_builder.py b/tests/tests_build_workflow/test_builder.py index ca4761c741..bd77c26171 100644 --- a/tests/tests_build_workflow/test_builder.py +++ b/tests/tests_build_workflow/test_builder.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_build_workflow/test_builder_from_dist.py b/tests/tests_build_workflow/test_builder_from_dist.py index 96148e5800..796908a81b 100644 --- a/tests/tests_build_workflow/test_builder_from_dist.py +++ b/tests/tests_build_workflow/test_builder_from_dist.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_build_workflow/test_builder_from_source.py b/tests/tests_build_workflow/test_builder_from_source.py index e6eeee78be..1d05229553 100644 --- a/tests/tests_build_workflow/test_builder_from_source.py +++ b/tests/tests_build_workflow/test_builder_from_source.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_checkout_workflow/__init__.py b/tests/tests_checkout_workflow/__init__.py index 71cb6978dc..9cf03e4e4e 100644 --- a/tests/tests_checkout_workflow/__init__.py +++ b/tests/tests_checkout_workflow/__init__.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_checkout_workflow/test_checkout_args.py b/tests/tests_checkout_workflow/test_checkout_args.py index 56074cc457..e9377bfb9f 100644 --- a/tests/tests_checkout_workflow/test_checkout_args.py +++ b/tests/tests_checkout_workflow/test_checkout_args.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_ci_workflow/__init__.py b/tests/tests_ci_workflow/__init__.py index 71cb6978dc..9cf03e4e4e 100644 --- a/tests/tests_ci_workflow/__init__.py +++ b/tests/tests_ci_workflow/__init__.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_ci_workflow/test_ci_args.py b/tests/tests_ci_workflow/test_ci_args.py index 12185c3163..65332d68b9 100644 --- a/tests/tests_ci_workflow/test_ci_args.py +++ b/tests/tests_ci_workflow/test_ci_args.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_ci_workflow/test_ci_check.py b/tests/tests_ci_workflow/test_ci_check.py index 6e731d9481..9183c273a4 100644 --- a/tests/tests_ci_workflow/test_ci_check.py +++ b/tests/tests_ci_workflow/test_ci_check.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_ci_workflow/test_ci_check_gradle_dependencies.py b/tests/tests_ci_workflow/test_ci_check_gradle_dependencies.py index 1bc61ad864..808fbd3813 100644 --- a/tests/tests_ci_workflow/test_ci_check_gradle_dependencies.py +++ b/tests/tests_ci_workflow/test_ci_check_gradle_dependencies.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_ci_workflow/test_ci_check_gradle_dependencies_opensearch.py b/tests/tests_ci_workflow/test_ci_check_gradle_dependencies_opensearch.py index 6c5c41fb57..46c54e8571 100644 --- a/tests/tests_ci_workflow/test_ci_check_gradle_dependencies_opensearch.py +++ b/tests/tests_ci_workflow/test_ci_check_gradle_dependencies_opensearch.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_ci_workflow/test_ci_check_gradle_properties.py b/tests/tests_ci_workflow/test_ci_check_gradle_properties.py index 1bf54a90b2..16c3a91842 100644 --- a/tests/tests_ci_workflow/test_ci_check_gradle_properties.py +++ b/tests/tests_ci_workflow/test_ci_check_gradle_properties.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_ci_workflow/test_ci_check_gradle_properties_version.py b/tests/tests_ci_workflow/test_ci_check_gradle_properties_version.py index 8751c03e8d..043976960b 100644 --- a/tests/tests_ci_workflow/test_ci_check_gradle_properties_version.py +++ b/tests/tests_ci_workflow/test_ci_check_gradle_properties_version.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_ci_workflow/test_ci_check_gradle_publish_to_maven_local.py b/tests/tests_ci_workflow/test_ci_check_gradle_publish_to_maven_local.py index d0cd3f21c2..0991e0f98c 100644 --- a/tests/tests_ci_workflow/test_ci_check_gradle_publish_to_maven_local.py +++ b/tests/tests_ci_workflow/test_ci_check_gradle_publish_to_maven_local.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_ci_workflow/test_ci_check_lists.py b/tests/tests_ci_workflow/test_ci_check_lists.py index 60e0da1633..c4bbdf59d7 100644 --- a/tests/tests_ci_workflow/test_ci_check_lists.py +++ b/tests/tests_ci_workflow/test_ci_check_lists.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_ci_workflow/test_ci_check_lists_dist.py b/tests/tests_ci_workflow/test_ci_check_lists_dist.py index bc6200e042..8d3cc1f9cd 100644 --- a/tests/tests_ci_workflow/test_ci_check_lists_dist.py +++ b/tests/tests_ci_workflow/test_ci_check_lists_dist.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_ci_workflow/test_ci_check_lists_source.py b/tests/tests_ci_workflow/test_ci_check_lists_source.py index 5f248096f8..fee7dc690f 100644 --- a/tests/tests_ci_workflow/test_ci_check_lists_source.py +++ b/tests/tests_ci_workflow/test_ci_check_lists_source.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_ci_workflow/test_ci_check_lists_source_ref.py b/tests/tests_ci_workflow/test_ci_check_lists_source_ref.py index 2e14866cba..2e434f1202 100644 --- a/tests/tests_ci_workflow/test_ci_check_lists_source_ref.py +++ b/tests/tests_ci_workflow/test_ci_check_lists_source_ref.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_ci_workflow/test_ci_check_manifest_component.py b/tests/tests_ci_workflow/test_ci_check_manifest_component.py index 759546731c..a033bb6199 100644 --- a/tests/tests_ci_workflow/test_ci_check_manifest_component.py +++ b/tests/tests_ci_workflow/test_ci_check_manifest_component.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_ci_workflow/test_ci_check_npm_package_version.py b/tests/tests_ci_workflow/test_ci_check_npm_package_version.py index 29c0da1ffa..b7d22bbdf0 100644 --- a/tests/tests_ci_workflow/test_ci_check_npm_package_version.py +++ b/tests/tests_ci_workflow/test_ci_check_npm_package_version.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_ci_workflow/test_ci_check_package.py b/tests/tests_ci_workflow/test_ci_check_package.py index 64c171a567..2c053c7134 100644 --- a/tests/tests_ci_workflow/test_ci_check_package.py +++ b/tests/tests_ci_workflow/test_ci_check_package.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_ci_workflow/test_ci_target.py b/tests/tests_ci_workflow/test_ci_target.py index 34cf497ebb..435c50a622 100644 --- a/tests/tests_ci_workflow/test_ci_target.py +++ b/tests/tests_ci_workflow/test_ci_target.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_git/__init__.py b/tests/tests_git/__init__.py index 71cb6978dc..9cf03e4e4e 100644 --- a/tests/tests_git/__init__.py +++ b/tests/tests_git/__init__.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_git/test_git_repository.py b/tests/tests_git/test_git_repository.py index 6924fa9321..73cdd48a3a 100644 --- a/tests/tests_git/test_git_repository.py +++ b/tests/tests_git/test_git_repository.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_manifests/__init__.py b/tests/tests_manifests/__init__.py index 71cb6978dc..9cf03e4e4e 100644 --- a/tests/tests_manifests/__init__.py +++ b/tests/tests_manifests/__init__.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_manifests/test_build_manifest.py b/tests/tests_manifests/test_build_manifest.py index 5cc9369087..3475ae9e0f 100644 --- a/tests/tests_manifests/test_build_manifest.py +++ b/tests/tests_manifests/test_build_manifest.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_manifests/test_bundle_manifest.py b/tests/tests_manifests/test_bundle_manifest.py index 3b73ea75f0..7152a4ab7c 100644 --- a/tests/tests_manifests/test_bundle_manifest.py +++ b/tests/tests_manifests/test_bundle_manifest.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_manifests/test_component_manifest.py b/tests/tests_manifests/test_component_manifest.py index a75ccec03f..46e86e1b1e 100644 --- a/tests/tests_manifests/test_component_manifest.py +++ b/tests/tests_manifests/test_component_manifest.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_manifests/test_input_manifest.py b/tests/tests_manifests/test_input_manifest.py index ccbeb0ef84..01c5533b5d 100644 --- a/tests/tests_manifests/test_input_manifest.py +++ b/tests/tests_manifests/test_input_manifest.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_manifests/test_input_manifests.py b/tests/tests_manifests/test_input_manifests.py index b61c5ab7fe..54aa80b077 100644 --- a/tests/tests_manifests/test_input_manifests.py +++ b/tests/tests_manifests/test_input_manifests.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_manifests/test_manifest.py b/tests/tests_manifests/test_manifest.py index 942908340d..68b3a72ddc 100644 --- a/tests/tests_manifests/test_manifest.py +++ b/tests/tests_manifests/test_manifest.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_manifests/test_manifests.py b/tests/tests_manifests/test_manifests.py index da7fd253ea..aed2375d20 100644 --- a/tests/tests_manifests/test_manifests.py +++ b/tests/tests_manifests/test_manifests.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_manifests/test_test_manifest.py b/tests/tests_manifests/test_test_manifest.py index cdc3d3cdcc..6e0978f139 100644 --- a/tests/tests_manifests/test_test_manifest.py +++ b/tests/tests_manifests/test_test_manifest.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_manifests/test_test_manifest_with_ci_image.py b/tests/tests_manifests/test_test_manifest_with_ci_image.py index db59b4292c..636de0c44c 100644 --- a/tests/tests_manifests/test_test_manifest_with_ci_image.py +++ b/tests/tests_manifests/test_test_manifest_with_ci_image.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_manifests_workflow/__init__.py b/tests/tests_manifests_workflow/__init__.py index 71cb6978dc..9cf03e4e4e 100644 --- a/tests/tests_manifests_workflow/__init__.py +++ b/tests/tests_manifests_workflow/__init__.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_manifests_workflow/test_component.py b/tests/tests_manifests_workflow/test_component.py index 73a1e83114..c1a811718b 100644 --- a/tests/tests_manifests_workflow/test_component.py +++ b/tests/tests_manifests_workflow/test_component.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_manifests_workflow/test_component_opensearch.py b/tests/tests_manifests_workflow/test_component_opensearch.py index cad8a28e23..c5f0618f0b 100644 --- a/tests/tests_manifests_workflow/test_component_opensearch.py +++ b/tests/tests_manifests_workflow/test_component_opensearch.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_manifests_workflow/test_component_opensearch_dashboards_min.py b/tests/tests_manifests_workflow/test_component_opensearch_dashboards_min.py index 1a59498d33..8cf46135da 100644 --- a/tests/tests_manifests_workflow/test_component_opensearch_dashboards_min.py +++ b/tests/tests_manifests_workflow/test_component_opensearch_dashboards_min.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_manifests_workflow/test_component_opensearch_min.py b/tests/tests_manifests_workflow/test_component_opensearch_min.py index 8761968c3c..8bd8b4ad72 100644 --- a/tests/tests_manifests_workflow/test_component_opensearch_min.py +++ b/tests/tests_manifests_workflow/test_component_opensearch_min.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_manifests_workflow/test_input_manifests.py b/tests/tests_manifests_workflow/test_input_manifests.py index 36c09cc1a2..ed89e0579f 100644 --- a/tests/tests_manifests_workflow/test_input_manifests.py +++ b/tests/tests_manifests_workflow/test_input_manifests.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_manifests_workflow/test_input_manifests_opensearch.py b/tests/tests_manifests_workflow/test_input_manifests_opensearch.py index bb378e0602..124b22899b 100644 --- a/tests/tests_manifests_workflow/test_input_manifests_opensearch.py +++ b/tests/tests_manifests_workflow/test_input_manifests_opensearch.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_manifests_workflow/test_input_manifests_opensearch_dashboards.py b/tests/tests_manifests_workflow/test_input_manifests_opensearch_dashboards.py index 005e1a7da7..9741ea4048 100644 --- a/tests/tests_manifests_workflow/test_input_manifests_opensearch_dashboards.py +++ b/tests/tests_manifests_workflow/test_input_manifests_opensearch_dashboards.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_manifests_workflow/test_manifests_args.py b/tests/tests_manifests_workflow/test_manifests_args.py index d35f9352a2..608a501ac3 100644 --- a/tests/tests_manifests_workflow/test_manifests_args.py +++ b/tests/tests_manifests_workflow/test_manifests_args.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_paths/__init__.py b/tests/tests_paths/__init__.py index 71cb6978dc..9cf03e4e4e 100644 --- a/tests/tests_paths/__init__.py +++ b/tests/tests_paths/__init__.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_paths/data/git/component-with-scripts-folder/scripts/build.sh b/tests/tests_paths/data/git/component-with-scripts-folder/scripts/build.sh index bdd0c714d1..a260a78764 100644 --- a/tests/tests_paths/data/git/component-with-scripts-folder/scripts/build.sh +++ b/tests/tests_paths/data/git/component-with-scripts-folder/scripts/build.sh @@ -1,5 +1,6 @@ # SPDX-License-Identifier: Apache-2.0 # +# Copyright OpenSearch Contributors # The OpenSearch Contributors require contributions made to # this file be licensed under the Apache-2.0 license or a # compatible open source license. diff --git a/tests/tests_paths/data/git/component-with-scripts-folder/scripts/bwctest.sh b/tests/tests_paths/data/git/component-with-scripts-folder/scripts/bwctest.sh index bdd0c714d1..a260a78764 100644 --- a/tests/tests_paths/data/git/component-with-scripts-folder/scripts/bwctest.sh +++ b/tests/tests_paths/data/git/component-with-scripts-folder/scripts/bwctest.sh @@ -1,5 +1,6 @@ # SPDX-License-Identifier: Apache-2.0 # +# Copyright OpenSearch Contributors # The OpenSearch Contributors require contributions made to # this file be licensed under the Apache-2.0 license or a # compatible open source license. diff --git a/tests/tests_paths/data/git/component-with-scripts-folder/scripts/install.sh b/tests/tests_paths/data/git/component-with-scripts-folder/scripts/install.sh index bdd0c714d1..a260a78764 100644 --- a/tests/tests_paths/data/git/component-with-scripts-folder/scripts/install.sh +++ b/tests/tests_paths/data/git/component-with-scripts-folder/scripts/install.sh @@ -1,5 +1,6 @@ # SPDX-License-Identifier: Apache-2.0 # +# Copyright OpenSearch Contributors # The OpenSearch Contributors require contributions made to # this file be licensed under the Apache-2.0 license or a # compatible open source license. diff --git a/tests/tests_paths/data/git/component-with-scripts-folder/scripts/integtest.sh b/tests/tests_paths/data/git/component-with-scripts-folder/scripts/integtest.sh index bdd0c714d1..a260a78764 100644 --- a/tests/tests_paths/data/git/component-with-scripts-folder/scripts/integtest.sh +++ b/tests/tests_paths/data/git/component-with-scripts-folder/scripts/integtest.sh @@ -1,5 +1,6 @@ # SPDX-License-Identifier: Apache-2.0 # +# Copyright OpenSearch Contributors # The OpenSearch Contributors require contributions made to # this file be licensed under the Apache-2.0 license or a # compatible open source license. diff --git a/tests/tests_paths/data/git/component-with-scripts/build.sh b/tests/tests_paths/data/git/component-with-scripts/build.sh index bdd0c714d1..a260a78764 100644 --- a/tests/tests_paths/data/git/component-with-scripts/build.sh +++ b/tests/tests_paths/data/git/component-with-scripts/build.sh @@ -1,5 +1,6 @@ # SPDX-License-Identifier: Apache-2.0 # +# Copyright OpenSearch Contributors # The OpenSearch Contributors require contributions made to # this file be licensed under the Apache-2.0 license or a # compatible open source license. diff --git a/tests/tests_paths/data/git/component-with-scripts/bwctest.sh b/tests/tests_paths/data/git/component-with-scripts/bwctest.sh index bdd0c714d1..a260a78764 100644 --- a/tests/tests_paths/data/git/component-with-scripts/bwctest.sh +++ b/tests/tests_paths/data/git/component-with-scripts/bwctest.sh @@ -1,5 +1,6 @@ # SPDX-License-Identifier: Apache-2.0 # +# Copyright OpenSearch Contributors # The OpenSearch Contributors require contributions made to # this file be licensed under the Apache-2.0 license or a # compatible open source license. diff --git a/tests/tests_paths/data/git/component-with-scripts/install.sh b/tests/tests_paths/data/git/component-with-scripts/install.sh index bdd0c714d1..a260a78764 100644 --- a/tests/tests_paths/data/git/component-with-scripts/install.sh +++ b/tests/tests_paths/data/git/component-with-scripts/install.sh @@ -1,5 +1,6 @@ # SPDX-License-Identifier: Apache-2.0 # +# Copyright OpenSearch Contributors # The OpenSearch Contributors require contributions made to # this file be licensed under the Apache-2.0 license or a # compatible open source license. diff --git a/tests/tests_paths/data/git/component-with-scripts/integtest.sh b/tests/tests_paths/data/git/component-with-scripts/integtest.sh index bdd0c714d1..a260a78764 100644 --- a/tests/tests_paths/data/git/component-with-scripts/integtest.sh +++ b/tests/tests_paths/data/git/component-with-scripts/integtest.sh @@ -1,5 +1,6 @@ # SPDX-License-Identifier: Apache-2.0 # +# Copyright OpenSearch Contributors # The OpenSearch Contributors require contributions made to # this file be licensed under the Apache-2.0 license or a # compatible open source license. diff --git a/tests/tests_paths/test_assemble_output_dir.py b/tests/tests_paths/test_assemble_output_dir.py index 76ab374e05..0ec649ebf8 100644 --- a/tests/tests_paths/test_assemble_output_dir.py +++ b/tests/tests_paths/test_assemble_output_dir.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_paths/test_build_output_dir.py b/tests/tests_paths/test_build_output_dir.py index ca1813fa52..6d1350fd73 100644 --- a/tests/tests_paths/test_build_output_dir.py +++ b/tests/tests_paths/test_build_output_dir.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_paths/test_script_finder.py b/tests/tests_paths/test_script_finder.py index c96898423f..18e59d4c3b 100644 --- a/tests/tests_paths/test_script_finder.py +++ b/tests/tests_paths/test_script_finder.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_paths/test_tree_walker.py b/tests/tests_paths/test_tree_walker.py index da171312cc..3aa8f5eb34 100644 --- a/tests/tests_paths/test_tree_walker.py +++ b/tests/tests_paths/test_tree_walker.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_release_notes_workflow/__init__.py b/tests/tests_release_notes_workflow/__init__.py index 71cb6978dc..9cf03e4e4e 100644 --- a/tests/tests_release_notes_workflow/__init__.py +++ b/tests/tests_release_notes_workflow/__init__.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_release_notes_workflow/test_release_notes.py b/tests/tests_release_notes_workflow/test_release_notes.py index 08c6629242..cfd925ce6c 100644 --- a/tests/tests_release_notes_workflow/test_release_notes.py +++ b/tests/tests_release_notes_workflow/test_release_notes.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_release_notes_workflow/test_release_notes_component.py b/tests/tests_release_notes_workflow/test_release_notes_component.py index 28f073999f..aaf2165f8a 100644 --- a/tests/tests_release_notes_workflow/test_release_notes_component.py +++ b/tests/tests_release_notes_workflow/test_release_notes_component.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_release_notes_workflow/test_releasenotes_check_args.py b/tests/tests_release_notes_workflow/test_releasenotes_check_args.py index 38ef9d8f83..a9a654c4f8 100644 --- a/tests/tests_release_notes_workflow/test_releasenotes_check_args.py +++ b/tests/tests_release_notes_workflow/test_releasenotes_check_args.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_sign_workflow/__init__.py b/tests/tests_sign_workflow/__init__.py index 71cb6978dc..9cf03e4e4e 100644 --- a/tests/tests_sign_workflow/__init__.py +++ b/tests/tests_sign_workflow/__init__.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_sign_workflow/test_sign_args.py b/tests/tests_sign_workflow/test_sign_args.py index b67b6c74be..b574645d85 100644 --- a/tests/tests_sign_workflow/test_sign_args.py +++ b/tests/tests_sign_workflow/test_sign_args.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_sign_workflow/test_sign_artifacts.py b/tests/tests_sign_workflow/test_sign_artifacts.py index 5dffa37489..970d2e7ca5 100644 --- a/tests/tests_sign_workflow/test_sign_artifacts.py +++ b/tests/tests_sign_workflow/test_sign_artifacts.py @@ -1,3 +1,11 @@ +# Copyright OpenSearch Contributors +# SPDX-License-Identifier: Apache-2.0 +# +# The OpenSearch Contributors require contributions made to +# this file be licensed under the Apache-2.0 license or a +# compatible open source license. + + import os import unittest from pathlib import Path diff --git a/tests/tests_sign_workflow/test_signer.py b/tests/tests_sign_workflow/test_signer.py index 00ad5ad4c2..8b831b91d4 100644 --- a/tests/tests_sign_workflow/test_signer.py +++ b/tests/tests_sign_workflow/test_signer.py @@ -1,3 +1,11 @@ +# Copyright OpenSearch Contributors +# SPDX-License-Identifier: Apache-2.0 +# +# The OpenSearch Contributors require contributions made to +# this file be licensed under the Apache-2.0 license or a +# compatible open source license. + + import os import unittest from pathlib import Path diff --git a/tests/tests_sign_workflow/test_signer_pgp.py b/tests/tests_sign_workflow/test_signer_pgp.py index 08153fa114..6b8fe56053 100644 --- a/tests/tests_sign_workflow/test_signer_pgp.py +++ b/tests/tests_sign_workflow/test_signer_pgp.py @@ -1,3 +1,11 @@ +# Copyright OpenSearch Contributors +# SPDX-License-Identifier: Apache-2.0 +# +# The OpenSearch Contributors require contributions made to +# this file be licensed under the Apache-2.0 license or a +# compatible open source license. + + import os import unittest from pathlib import Path diff --git a/tests/tests_sign_workflow/test_signer_windows.py b/tests/tests_sign_workflow/test_signer_windows.py index 2a1ea77013..8ce45c9c35 100644 --- a/tests/tests_sign_workflow/test_signer_windows.py +++ b/tests/tests_sign_workflow/test_signer_windows.py @@ -1,3 +1,11 @@ +# Copyright OpenSearch Contributors +# SPDX-License-Identifier: Apache-2.0 +# +# The OpenSearch Contributors require contributions made to +# this file be licensed under the Apache-2.0 license or a +# compatible open source license. + + import os import unittest from pathlib import Path diff --git a/tests/tests_sign_workflow/test_signers.py b/tests/tests_sign_workflow/test_signers.py index 57b63b88ed..a026dbbb9c 100644 --- a/tests/tests_sign_workflow/test_signers.py +++ b/tests/tests_sign_workflow/test_signers.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_system/__init__.py b/tests/tests_system/__init__.py index 71cb6978dc..9cf03e4e4e 100644 --- a/tests/tests_system/__init__.py +++ b/tests/tests_system/__init__.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_system/data/executable.sh b/tests/tests_system/data/executable.sh index ed2c8dbd5d..eae377652a 100755 --- a/tests/tests_system/data/executable.sh +++ b/tests/tests_system/data/executable.sh @@ -1,5 +1,6 @@ #!/bin/bash +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_system/data/wait_for_input.sh b/tests/tests_system/data/wait_for_input.sh index 012e97dc3a..067c694cc2 100755 --- a/tests/tests_system/data/wait_for_input.sh +++ b/tests/tests_system/data/wait_for_input.sh @@ -1,5 +1,6 @@ #!/bin/bash +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_system/test_config_file.py b/tests/tests_system/test_config_file.py index fba21e44cf..baccd1a927 100644 --- a/tests/tests_system/test_config_file.py +++ b/tests/tests_system/test_config_file.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_system/test_execute.py b/tests/tests_system/test_execute.py index f0266a63d6..f48f674d82 100644 --- a/tests/tests_system/test_execute.py +++ b/tests/tests_system/test_execute.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_system/test_os.py b/tests/tests_system/test_os.py index f27eefc3a3..6593831f63 100644 --- a/tests/tests_system/test_os.py +++ b/tests/tests_system/test_os.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_system/test_process.py b/tests/tests_system/test_process.py index ab9b32a12f..869abf6b8b 100644 --- a/tests/tests_system/test_process.py +++ b/tests/tests_system/test_process.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_system/test_properties_file.py b/tests/tests_system/test_properties_file.py index a30f102843..61ab9ed956 100644 --- a/tests/tests_system/test_properties_file.py +++ b/tests/tests_system/test_properties_file.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_system/test_temporary_directory.py b/tests/tests_system/test_temporary_directory.py index 1907c20dfd..6c3f2461c3 100644 --- a/tests/tests_system/test_temporary_directory.py +++ b/tests/tests_system/test_temporary_directory.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_system/test_thread_safe_counter.py b/tests/tests_system/test_thread_safe_counter.py index 99afe3e38a..179674c785 100644 --- a/tests/tests_system/test_thread_safe_counter.py +++ b/tests/tests_system/test_thread_safe_counter.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_system/test_zip_file.py b/tests/tests_system/test_zip_file.py index 8a9ec57133..c92d2e780b 100644 --- a/tests/tests_system/test_zip_file.py +++ b/tests/tests_system/test_zip_file.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_test_workflow/__init__.py b/tests/tests_test_workflow/__init__.py index 71cb6978dc..9cf03e4e4e 100644 --- a/tests/tests_test_workflow/__init__.py +++ b/tests/tests_test_workflow/__init__.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_test_workflow/test_bwc_workflow/bwc_test/__init__.py b/tests/tests_test_workflow/test_bwc_workflow/bwc_test/__init__.py index 5f4fa9acce..a8f697880b 100644 --- a/tests/tests_test_workflow/test_bwc_workflow/bwc_test/__init__.py +++ b/tests/tests_test_workflow/test_bwc_workflow/bwc_test/__init__.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_test_workflow/test_bwc_workflow/bwc_test/test_bwc_test_runner_opensearch.py b/tests/tests_test_workflow/test_bwc_workflow/bwc_test/test_bwc_test_runner_opensearch.py index 2bbad28dbc..fdc541f87b 100644 --- a/tests/tests_test_workflow/test_bwc_workflow/bwc_test/test_bwc_test_runner_opensearch.py +++ b/tests/tests_test_workflow/test_bwc_workflow/bwc_test/test_bwc_test_runner_opensearch.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_test_workflow/test_bwc_workflow/bwc_test/test_bwc_test_runner_opensearch_dashboards.py b/tests/tests_test_workflow/test_bwc_workflow/bwc_test/test_bwc_test_runner_opensearch_dashboards.py index 75a5100dae..6b7b1477de 100644 --- a/tests/tests_test_workflow/test_bwc_workflow/bwc_test/test_bwc_test_runner_opensearch_dashboards.py +++ b/tests/tests_test_workflow/test_bwc_workflow/bwc_test/test_bwc_test_runner_opensearch_dashboards.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_test_workflow/test_bwc_workflow/bwc_test/test_bwc_test_runners.py b/tests/tests_test_workflow/test_bwc_workflow/bwc_test/test_bwc_test_runners.py index f69a792179..6e08e77dbe 100644 --- a/tests/tests_test_workflow/test_bwc_workflow/bwc_test/test_bwc_test_runners.py +++ b/tests/tests_test_workflow/test_bwc_workflow/bwc_test/test_bwc_test_runners.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_test_workflow/test_bwc_workflow/bwc_test/test_bwc_test_start_properties_opensearch.py b/tests/tests_test_workflow/test_bwc_workflow/bwc_test/test_bwc_test_start_properties_opensearch.py index 2fab01759a..f14bac8fe1 100644 --- a/tests/tests_test_workflow/test_bwc_workflow/bwc_test/test_bwc_test_start_properties_opensearch.py +++ b/tests/tests_test_workflow/test_bwc_workflow/bwc_test/test_bwc_test_start_properties_opensearch.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_test_workflow/test_bwc_workflow/bwc_test/test_bwc_test_start_properties_opensearch_dashboards.py b/tests/tests_test_workflow/test_bwc_workflow/bwc_test/test_bwc_test_start_properties_opensearch_dashboards.py index fd8317d769..c9067bfb13 100644 --- a/tests/tests_test_workflow/test_bwc_workflow/bwc_test/test_bwc_test_start_properties_opensearch_dashboards.py +++ b/tests/tests_test_workflow/test_bwc_workflow/bwc_test/test_bwc_test_start_properties_opensearch_dashboards.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_test_workflow/test_bwc_workflow/bwc_test/test_bwc_test_suite_opensearch.py b/tests/tests_test_workflow/test_bwc_workflow/bwc_test/test_bwc_test_suite_opensearch.py index 7d34c851a6..0c32f9fea9 100644 --- a/tests/tests_test_workflow/test_bwc_workflow/bwc_test/test_bwc_test_suite_opensearch.py +++ b/tests/tests_test_workflow/test_bwc_workflow/bwc_test/test_bwc_test_suite_opensearch.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_test_workflow/test_bwc_workflow/bwc_test/test_bwc_test_suite_opensearch_dashboards.py b/tests/tests_test_workflow/test_bwc_workflow/bwc_test/test_bwc_test_suite_opensearch_dashboards.py index cd7b0bf045..e25a1af0c4 100644 --- a/tests/tests_test_workflow/test_bwc_workflow/bwc_test/test_bwc_test_suite_opensearch_dashboards.py +++ b/tests/tests_test_workflow/test_bwc_workflow/bwc_test/test_bwc_test_suite_opensearch_dashboards.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_test_workflow/test_bwc_workflow/bwc_test/test_run_bwc_test.py b/tests/tests_test_workflow/test_bwc_workflow/bwc_test/test_run_bwc_test.py index ed62ae5488..779b675506 100644 --- a/tests/tests_test_workflow/test_bwc_workflow/bwc_test/test_run_bwc_test.py +++ b/tests/tests_test_workflow/test_bwc_workflow/bwc_test/test_run_bwc_test.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_test_workflow/test_dependency_installer_opensearch.py b/tests/tests_test_workflow/test_dependency_installer_opensearch.py index 8bdbcea593..9554686fb2 100644 --- a/tests/tests_test_workflow/test_dependency_installer_opensearch.py +++ b/tests/tests_test_workflow/test_dependency_installer_opensearch.py @@ -1,3 +1,11 @@ +# Copyright OpenSearch Contributors +# SPDX-License-Identifier: Apache-2.0 +# +# The OpenSearch Contributors require contributions made to +# this file be licensed under the Apache-2.0 license or a +# compatible open source license. + + import os import unittest from unittest.mock import Mock, call, patch diff --git a/tests/tests_test_workflow/test_dependency_installer_opensearch_dashboards.py b/tests/tests_test_workflow/test_dependency_installer_opensearch_dashboards.py index 25e515cfbc..9a2efc6f93 100644 --- a/tests/tests_test_workflow/test_dependency_installer_opensearch_dashboards.py +++ b/tests/tests_test_workflow/test_dependency_installer_opensearch_dashboards.py @@ -1,3 +1,11 @@ +# Copyright OpenSearch Contributors +# SPDX-License-Identifier: Apache-2.0 +# +# The OpenSearch Contributors require contributions made to +# this file be licensed under the Apache-2.0 license or a +# compatible open source license. + + import unittest from unittest.mock import MagicMock diff --git a/tests/tests_test_workflow/test_integ_workflow/integ_test/__init__.py b/tests/tests_test_workflow/test_integ_workflow/integ_test/__init__.py index 5f4fa9acce..a8f697880b 100644 --- a/tests/tests_test_workflow/test_integ_workflow/integ_test/__init__.py +++ b/tests/tests_test_workflow/test_integ_workflow/integ_test/__init__.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_test_workflow/test_integ_workflow/integ_test/test_distribution_rpm.py b/tests/tests_test_workflow/test_integ_workflow/integ_test/test_distribution_rpm.py index 4a32dbc4fa..966af6d6d6 100644 --- a/tests/tests_test_workflow/test_integ_workflow/integ_test/test_distribution_rpm.py +++ b/tests/tests_test_workflow/test_integ_workflow/integ_test/test_distribution_rpm.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_test_workflow/test_integ_workflow/integ_test/test_distribution_tar.py b/tests/tests_test_workflow/test_integ_workflow/integ_test/test_distribution_tar.py index 0f1f2ee39e..bb987e642d 100644 --- a/tests/tests_test_workflow/test_integ_workflow/integ_test/test_distribution_tar.py +++ b/tests/tests_test_workflow/test_integ_workflow/integ_test/test_distribution_tar.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_test_workflow/test_integ_workflow/integ_test/test_distributions.py b/tests/tests_test_workflow/test_integ_workflow/integ_test/test_distributions.py index 3bebb7fce7..be8da2ec49 100644 --- a/tests/tests_test_workflow/test_integ_workflow/integ_test/test_distributions.py +++ b/tests/tests_test_workflow/test_integ_workflow/integ_test/test_distributions.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_test_workflow/test_integ_workflow/integ_test/test_integ_test_runner_opensearch.py b/tests/tests_test_workflow/test_integ_workflow/integ_test/test_integ_test_runner_opensearch.py index 538468aa9c..6b47f030da 100644 --- a/tests/tests_test_workflow/test_integ_workflow/integ_test/test_integ_test_runner_opensearch.py +++ b/tests/tests_test_workflow/test_integ_workflow/integ_test/test_integ_test_runner_opensearch.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_test_workflow/test_integ_workflow/integ_test/test_integ_test_runner_opensearch_dashboards.py b/tests/tests_test_workflow/test_integ_workflow/integ_test/test_integ_test_runner_opensearch_dashboards.py index 2e0026db3c..1f9a36d1c3 100644 --- a/tests/tests_test_workflow/test_integ_workflow/integ_test/test_integ_test_runner_opensearch_dashboards.py +++ b/tests/tests_test_workflow/test_integ_workflow/integ_test/test_integ_test_runner_opensearch_dashboards.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_test_workflow/test_integ_workflow/integ_test/test_integ_test_runners.py b/tests/tests_test_workflow/test_integ_workflow/integ_test/test_integ_test_runners.py index d550eb1794..67d95affa5 100644 --- a/tests/tests_test_workflow/test_integ_workflow/integ_test/test_integ_test_runners.py +++ b/tests/tests_test_workflow/test_integ_workflow/integ_test/test_integ_test_runners.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_test_workflow/test_integ_workflow/integ_test/test_integ_test_start_properties_opensearch.py b/tests/tests_test_workflow/test_integ_workflow/integ_test/test_integ_test_start_properties_opensearch.py index a53d2a1d32..b040a26a99 100644 --- a/tests/tests_test_workflow/test_integ_workflow/integ_test/test_integ_test_start_properties_opensearch.py +++ b/tests/tests_test_workflow/test_integ_workflow/integ_test/test_integ_test_start_properties_opensearch.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_test_workflow/test_integ_workflow/integ_test/test_integ_test_start_properties_opensearch_dashboards.py b/tests/tests_test_workflow/test_integ_workflow/integ_test/test_integ_test_start_properties_opensearch_dashboards.py index 54d538a4ca..1c98ab4fab 100644 --- a/tests/tests_test_workflow/test_integ_workflow/integ_test/test_integ_test_start_properties_opensearch_dashboards.py +++ b/tests/tests_test_workflow/test_integ_workflow/integ_test/test_integ_test_start_properties_opensearch_dashboards.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_test_workflow/test_integ_workflow/integ_test/test_integ_test_suite_opensearch.py b/tests/tests_test_workflow/test_integ_workflow/integ_test/test_integ_test_suite_opensearch.py index adc617af8b..e9ddc6d7b8 100644 --- a/tests/tests_test_workflow/test_integ_workflow/integ_test/test_integ_test_suite_opensearch.py +++ b/tests/tests_test_workflow/test_integ_workflow/integ_test/test_integ_test_suite_opensearch.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_test_workflow/test_integ_workflow/integ_test/test_integ_test_suite_opensearch_dashboards.py b/tests/tests_test_workflow/test_integ_workflow/integ_test/test_integ_test_suite_opensearch_dashboards.py index 92417b101f..1c109d453b 100644 --- a/tests/tests_test_workflow/test_integ_workflow/integ_test/test_integ_test_suite_opensearch_dashboards.py +++ b/tests/tests_test_workflow/test_integ_workflow/integ_test/test_integ_test_suite_opensearch_dashboards.py @@ -1,3 +1,9 @@ +# Copyright OpenSearch Contributors +# SPDX-License-Identifier: Apache-2.0 +# +# The OpenSearch Contributors require contributions made to +# this file be licensed under the Apache-2.0 license or a +# compatible open source license. import logging import os diff --git a/tests/tests_test_workflow/test_integ_workflow/integ_test/test_local_test_cluster.py b/tests/tests_test_workflow/test_integ_workflow/integ_test/test_local_test_cluster.py index f46c25bf97..a35878d62b 100644 --- a/tests/tests_test_workflow/test_integ_workflow/integ_test/test_local_test_cluster.py +++ b/tests/tests_test_workflow/test_integ_workflow/integ_test/test_local_test_cluster.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_test_workflow/test_integ_workflow/integ_test/test_local_test_cluster_opensearch_dashboards.py b/tests/tests_test_workflow/test_integ_workflow/integ_test/test_local_test_cluster_opensearch_dashboards.py index ec626f905f..de770cb8fe 100644 --- a/tests/tests_test_workflow/test_integ_workflow/integ_test/test_local_test_cluster_opensearch_dashboards.py +++ b/tests/tests_test_workflow/test_integ_workflow/integ_test/test_local_test_cluster_opensearch_dashboards.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_test_workflow/test_integ_workflow/integ_test/test_run_integ_test.py b/tests/tests_test_workflow/test_integ_workflow/integ_test/test_run_integ_test.py index 36cbbd36b9..9cf178fade 100644 --- a/tests/tests_test_workflow/test_integ_workflow/integ_test/test_run_integ_test.py +++ b/tests/tests_test_workflow/test_integ_workflow/integ_test/test_run_integ_test.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_test_workflow/test_integ_workflow/integ_test/test_service_opensearch.py b/tests/tests_test_workflow/test_integ_workflow/integ_test/test_service_opensearch.py index 6a0496667f..693e2e58c8 100644 --- a/tests/tests_test_workflow/test_integ_workflow/integ_test/test_service_opensearch.py +++ b/tests/tests_test_workflow/test_integ_workflow/integ_test/test_service_opensearch.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_test_workflow/test_integ_workflow/integ_test/test_service_opensearch_dashboards.py b/tests/tests_test_workflow/test_integ_workflow/integ_test/test_service_opensearch_dashboards.py index 3c32eed6fb..f07658635b 100644 --- a/tests/tests_test_workflow/test_integ_workflow/integ_test/test_service_opensearch_dashboards.py +++ b/tests/tests_test_workflow/test_integ_workflow/integ_test/test_service_opensearch_dashboards.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_test_workflow/test_perf_workflow/perf_test/__init__.py b/tests/tests_test_workflow/test_perf_workflow/perf_test/__init__.py index 5f4fa9acce..a8f697880b 100644 --- a/tests/tests_test_workflow/test_perf_workflow/perf_test/__init__.py +++ b/tests/tests_test_workflow/test_perf_workflow/perf_test/__init__.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_test_workflow/test_perf_workflow/perf_test/test_perf_multi_node_cluster.py b/tests/tests_test_workflow/test_perf_workflow/perf_test/test_perf_multi_node_cluster.py index a886e38505..d3799c227f 100644 --- a/tests/tests_test_workflow/test_perf_workflow/perf_test/test_perf_multi_node_cluster.py +++ b/tests/tests_test_workflow/test_perf_workflow/perf_test/test_perf_multi_node_cluster.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_test_workflow/test_perf_workflow/perf_test/test_perf_single_node_cluster.py b/tests/tests_test_workflow/test_perf_workflow/perf_test/test_perf_single_node_cluster.py index 97c55fd0df..c8e94e9bf1 100644 --- a/tests/tests_test_workflow/test_perf_workflow/perf_test/test_perf_single_node_cluster.py +++ b/tests/tests_test_workflow/test_perf_workflow/perf_test/test_perf_single_node_cluster.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_test_workflow/test_perf_workflow/perf_test/test_perf_test_cluster.py b/tests/tests_test_workflow/test_perf_workflow/perf_test/test_perf_test_cluster.py index 4d3e0b525c..632a772c9a 100644 --- a/tests/tests_test_workflow/test_perf_workflow/perf_test/test_perf_test_cluster.py +++ b/tests/tests_test_workflow/test_perf_workflow/perf_test/test_perf_test_cluster.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_test_workflow/test_perf_workflow/perf_test/test_perf_test_cluster_config.py b/tests/tests_test_workflow/test_perf_workflow/perf_test/test_perf_test_cluster_config.py index 300bdac006..ef18694596 100644 --- a/tests/tests_test_workflow/test_perf_workflow/perf_test/test_perf_test_cluster_config.py +++ b/tests/tests_test_workflow/test_perf_workflow/perf_test/test_perf_test_cluster_config.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_test_workflow/test_perf_workflow/perf_test/test_perf_test_runner_opensearch.py b/tests/tests_test_workflow/test_perf_workflow/perf_test/test_perf_test_runner_opensearch.py index c4be499e46..8807325ba2 100644 --- a/tests/tests_test_workflow/test_perf_workflow/perf_test/test_perf_test_runner_opensearch.py +++ b/tests/tests_test_workflow/test_perf_workflow/perf_test/test_perf_test_runner_opensearch.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_test_workflow/test_perf_workflow/perf_test/test_perf_test_runner_opensearch_plugins.py b/tests/tests_test_workflow/test_perf_workflow/perf_test/test_perf_test_runner_opensearch_plugins.py index 98e3bdcdd0..316c4221c4 100644 --- a/tests/tests_test_workflow/test_perf_workflow/perf_test/test_perf_test_runner_opensearch_plugins.py +++ b/tests/tests_test_workflow/test_perf_workflow/perf_test/test_perf_test_runner_opensearch_plugins.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_test_workflow/test_perf_workflow/perf_test/test_perf_test_suite.py b/tests/tests_test_workflow/test_perf_workflow/perf_test/test_perf_test_suite.py index f8ff3b1ed5..a2bec81c42 100644 --- a/tests/tests_test_workflow/test_perf_workflow/perf_test/test_perf_test_suite.py +++ b/tests/tests_test_workflow/test_perf_workflow/perf_test/test_perf_test_suite.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_test_workflow/test_perf_workflow/perf_test/test_run_perf_test.py b/tests/tests_test_workflow/test_perf_workflow/perf_test/test_run_perf_test.py index 58a8636bda..6137718588 100644 --- a/tests/tests_test_workflow/test_perf_workflow/perf_test/test_run_perf_test.py +++ b/tests/tests_test_workflow/test_perf_workflow/perf_test/test_run_perf_test.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_test_workflow/test_recorder/__init__.py b/tests/tests_test_workflow/test_recorder/__init__.py index 71cb6978dc..9cf03e4e4e 100644 --- a/tests/tests_test_workflow/test_recorder/__init__.py +++ b/tests/tests_test_workflow/test_recorder/__init__.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_test_workflow/test_recorder/test_local_cluster_logs.py b/tests/tests_test_workflow/test_recorder/test_local_cluster_logs.py index 15ddafbe2e..70ada83819 100644 --- a/tests/tests_test_workflow/test_recorder/test_local_cluster_logs.py +++ b/tests/tests_test_workflow/test_recorder/test_local_cluster_logs.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_test_workflow/test_test_args.py b/tests/tests_test_workflow/test_test_args.py index 15c2b74f03..70c23ad096 100644 --- a/tests/tests_test_workflow/test_test_args.py +++ b/tests/tests_test_workflow/test_test_args.py @@ -1,3 +1,11 @@ +# Copyright OpenSearch Contributors +# SPDX-License-Identifier: Apache-2.0 +# +# The OpenSearch Contributors require contributions made to +# this file be licensed under the Apache-2.0 license or a +# compatible open source license. + + import logging import os import unittest diff --git a/tests/tests_test_workflow/test_test_args_path_validator.py b/tests/tests_test_workflow/test_test_args_path_validator.py index 249ffbb383..08c3b21270 100644 --- a/tests/tests_test_workflow/test_test_args_path_validator.py +++ b/tests/tests_test_workflow/test_test_args_path_validator.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_test_workflow/test_test_component.py b/tests/tests_test_workflow/test_test_component.py index bb3d0fb7fc..96c9193433 100644 --- a/tests/tests_test_workflow/test_test_component.py +++ b/tests/tests_test_workflow/test_test_component.py @@ -1,3 +1,11 @@ +# Copyright OpenSearch Contributors +# SPDX-License-Identifier: Apache-2.0 +# +# The OpenSearch Contributors require contributions made to +# this file be licensed under the Apache-2.0 license or a +# compatible open source license. + + import os import unittest from unittest.mock import Mock, patch diff --git a/tests/tests_test_workflow/test_test_kwargs.py b/tests/tests_test_workflow/test_test_kwargs.py index 0c540fb8ff..48c008443f 100644 --- a/tests/tests_test_workflow/test_test_kwargs.py +++ b/tests/tests_test_workflow/test_test_kwargs.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_test_workflow/test_test_result/__init__.py b/tests/tests_test_workflow/test_test_result/__init__.py index 71cb6978dc..9cf03e4e4e 100644 --- a/tests/tests_test_workflow/test_test_result/__init__.py +++ b/tests/tests_test_workflow/test_test_result/__init__.py @@ -1,3 +1,4 @@ +# Copyright OpenSearch Contributors # SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to diff --git a/tests/tests_test_workflow/test_test_result/test_test_component_results.py b/tests/tests_test_workflow/test_test_result/test_test_component_results.py index 98c4de0299..9fa70ce34e 100644 --- a/tests/tests_test_workflow/test_test_result/test_test_component_results.py +++ b/tests/tests_test_workflow/test_test_result/test_test_component_results.py @@ -1,3 +1,11 @@ +# Copyright OpenSearch Contributors +# SPDX-License-Identifier: Apache-2.0 +# +# The OpenSearch Contributors require contributions made to +# this file be licensed under the Apache-2.0 license or a +# compatible open source license. + + import unittest from test_workflow.test_result.test_component_results import TestComponentResults diff --git a/tests/tests_test_workflow/test_test_result/test_test_result.py b/tests/tests_test_workflow/test_test_result/test_test_result.py index 79d3496938..92224123e9 100644 --- a/tests/tests_test_workflow/test_test_result/test_test_result.py +++ b/tests/tests_test_workflow/test_test_result/test_test_result.py @@ -1,3 +1,11 @@ +# Copyright OpenSearch Contributors +# SPDX-License-Identifier: Apache-2.0 +# +# The OpenSearch Contributors require contributions made to +# this file be licensed under the Apache-2.0 license or a +# compatible open source license. + + import unittest from unittest.mock import MagicMock diff --git a/tests/tests_test_workflow/test_test_result/test_test_suite_results.py b/tests/tests_test_workflow/test_test_result/test_test_suite_results.py index 80ca1945b3..d291c8e098 100644 --- a/tests/tests_test_workflow/test_test_result/test_test_suite_results.py +++ b/tests/tests_test_workflow/test_test_result/test_test_suite_results.py @@ -1,3 +1,11 @@ +# Copyright OpenSearch Contributors +# SPDX-License-Identifier: Apache-2.0 +# +# The OpenSearch Contributors require contributions made to +# this file be licensed under the Apache-2.0 license or a +# compatible open source license. + + import unittest from test_workflow.test_result.test_suite_results import TestSuiteResults diff --git a/tools/vulnerability-scan/wss-scan.sh b/tools/vulnerability-scan/wss-scan.sh index 4c960fd322..45220acd66 100755 --- a/tools/vulnerability-scan/wss-scan.sh +++ b/tools/vulnerability-scan/wss-scan.sh @@ -1,5 +1,13 @@ #!/bin/bash ###### Information ############################################################################ +# Copyright OpenSearch Contributors +# SPDX-License-Identifier: Apache-2.0 +# +# The OpenSearch Contributors require contributions made to +# this file be licensed under the Apache-2.0 license or a +# compatible open source license. + + # Name: wss-scan.sh # Language: Shell # diff --git a/vars/archiveAssembleUpload.groovy b/vars/archiveAssembleUpload.groovy index 1d20df9a77..ef6e9aa39a 100644 --- a/vars/archiveAssembleUpload.groovy +++ b/vars/archiveAssembleUpload.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/vars/assembleManifest.groovy b/vars/assembleManifest.groovy index f46ac64f69..b6f3f44e5a 100644 --- a/vars/assembleManifest.groovy +++ b/vars/assembleManifest.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/vars/assembleUpload.groovy b/vars/assembleUpload.groovy index 4c51df7281..979c502110 100644 --- a/vars/assembleUpload.groovy +++ b/vars/assembleUpload.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/vars/buildArchive.groovy b/vars/buildArchive.groovy index e33e22bba3..1879474536 100644 --- a/vars/buildArchive.groovy +++ b/vars/buildArchive.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/vars/buildAssembleUpload.groovy b/vars/buildAssembleUpload.groovy index 6114d4bdb5..a44d9e7197 100644 --- a/vars/buildAssembleUpload.groovy +++ b/vars/buildAssembleUpload.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/vars/buildDockerImage.groovy b/vars/buildDockerImage.groovy index 5d57e8c281..6f092d5a65 100644 --- a/vars/buildDockerImage.groovy +++ b/vars/buildDockerImage.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/vars/buildFailureMessage.groovy b/vars/buildFailureMessage.groovy index c85b1d2fd7..2887f86975 100644 --- a/vars/buildFailureMessage.groovy +++ b/vars/buildFailureMessage.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/vars/buildInfoYaml.groovy b/vars/buildInfoYaml.groovy index 499456b308..fc7ced7aa1 100644 --- a/vars/buildInfoYaml.groovy +++ b/vars/buildInfoYaml.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/vars/buildManifest.groovy b/vars/buildManifest.groovy index d69bd80c73..17f19f7fc8 100644 --- a/vars/buildManifest.groovy +++ b/vars/buildManifest.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/vars/buildUploadManifestSHA.groovy b/vars/buildUploadManifestSHA.groovy index c3adbf10d6..9aae65a155 100644 --- a/vars/buildUploadManifestSHA.groovy +++ b/vars/buildUploadManifestSHA.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/vars/buildYumRepo.groovy b/vars/buildYumRepo.groovy index bfdfaf9c43..58fcb8fe58 100644 --- a/vars/buildYumRepo.groovy +++ b/vars/buildYumRepo.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/vars/copyContainer.groovy b/vars/copyContainer.groovy index e7d92302c2..b3c34ccaad 100644 --- a/vars/copyContainer.groovy +++ b/vars/copyContainer.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/vars/createGithubIssue.groovy b/vars/createGithubIssue.groovy index 9498a7a4c5..b0df064925 100644 --- a/vars/createGithubIssue.groovy +++ b/vars/createGithubIssue.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/vars/createReleaseTag.groovy b/vars/createReleaseTag.groovy index 7dd3700e3c..ec346a3982 100644 --- a/vars/createReleaseTag.groovy +++ b/vars/createReleaseTag.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/vars/createSha512Checksums.groovy b/vars/createSha512Checksums.groovy index 0fc2d2edc4..2370e715c3 100644 --- a/vars/createSha512Checksums.groovy +++ b/vars/createSha512Checksums.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/vars/createSignatureFiles.groovy b/vars/createSignatureFiles.groovy index 6725cceba2..499121ff19 100644 --- a/vars/createSignatureFiles.groovy +++ b/vars/createSignatureFiles.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/vars/createTestResultsMessage.groovy b/vars/createTestResultsMessage.groovy index e44b15d75d..28ffa5dde7 100644 --- a/vars/createTestResultsMessage.groovy +++ b/vars/createTestResultsMessage.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/vars/detectDockerAgent.groovy b/vars/detectDockerAgent.groovy index dd382d7689..ea80340652 100644 --- a/vars/detectDockerAgent.groovy +++ b/vars/detectDockerAgent.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/vars/detectTestDockerAgent.groovy b/vars/detectTestDockerAgent.groovy index e4eaa1d47d..26237bbd43 100644 --- a/vars/detectTestDockerAgent.groovy +++ b/vars/detectTestDockerAgent.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/vars/downloadBuildManifest.groovy b/vars/downloadBuildManifest.groovy index 6604f953a8..28c5b7b60c 100644 --- a/vars/downloadBuildManifest.groovy +++ b/vars/downloadBuildManifest.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/vars/downloadFromS3.groovy b/vars/downloadFromS3.groovy index bf614f6eb2..0257205cff 100644 --- a/vars/downloadFromS3.groovy +++ b/vars/downloadFromS3.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/vars/getManifestSHA.groovy b/vars/getManifestSHA.groovy index ebe176e268..85786ffdbc 100644 --- a/vars/getManifestSHA.groovy +++ b/vars/getManifestSHA.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/vars/postCleanup.groovy b/vars/postCleanup.groovy index cabddcf54f..7db576ca8e 100644 --- a/vars/postCleanup.groovy +++ b/vars/postCleanup.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/vars/printArtifactDownloadUrlsForStaging.groovy b/vars/printArtifactDownloadUrlsForStaging.groovy index df9ceeb0d8..47143da00a 100644 --- a/vars/printArtifactDownloadUrlsForStaging.groovy +++ b/vars/printArtifactDownloadUrlsForStaging.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/vars/promoteArtifacts.groovy b/vars/promoteArtifacts.groovy index 67f06873a9..61ca1d56e0 100644 --- a/vars/promoteArtifacts.groovy +++ b/vars/promoteArtifacts.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/vars/promoteContainer.groovy b/vars/promoteContainer.groovy index 5dbcd903de..d6d9b35ae8 100644 --- a/vars/promoteContainer.groovy +++ b/vars/promoteContainer.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/vars/promoteYumRepos.groovy b/vars/promoteYumRepos.groovy index f1e1614b8c..ab305a91df 100644 --- a/vars/promoteYumRepos.groovy +++ b/vars/promoteYumRepos.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/vars/publishNotification.groovy b/vars/publishNotification.groovy index 7369a16dac..b87818dd80 100644 --- a/vars/publishNotification.groovy +++ b/vars/publishNotification.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/vars/rpmCommands.groovy b/vars/rpmCommands.groovy index ae12fc52af..42ff56e744 100644 --- a/vars/rpmCommands.groovy +++ b/vars/rpmCommands.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/vars/rpmDashboardsDistValidation.groovy b/vars/rpmDashboardsDistValidation.groovy index 0234663c29..3add49fc51 100644 --- a/vars/rpmDashboardsDistValidation.groovy +++ b/vars/rpmDashboardsDistValidation.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/vars/rpmDistValidation.groovy b/vars/rpmDistValidation.groovy index 307312d856..79ef200b99 100644 --- a/vars/rpmDistValidation.groovy +++ b/vars/rpmDistValidation.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/vars/rpmMetaValidation.groovy b/vars/rpmMetaValidation.groovy index 0f407699d1..a642fa8663 100644 --- a/vars/rpmMetaValidation.groovy +++ b/vars/rpmMetaValidation.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/vars/rpmOpenSearchDistValidation.groovy b/vars/rpmOpenSearchDistValidation.groovy index c195445fc2..8cad00fdae 100644 --- a/vars/rpmOpenSearchDistValidation.groovy +++ b/vars/rpmOpenSearchDistValidation.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/vars/runBwcTestScript.groovy b/vars/runBwcTestScript.groovy index a22072be71..4fcd6e6e8d 100644 --- a/vars/runBwcTestScript.groovy +++ b/vars/runBwcTestScript.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/vars/runGradleCheck.groovy b/vars/runGradleCheck.groovy index ab7e9c6870..bd7f1dee14 100644 --- a/vars/runGradleCheck.groovy +++ b/vars/runGradleCheck.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/vars/runIntegTestScript.groovy b/vars/runIntegTestScript.groovy index 5437a51929..c90c2865cb 100644 --- a/vars/runIntegTestScript.groovy +++ b/vars/runIntegTestScript.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/vars/runPerfTestScript.groovy b/vars/runPerfTestScript.groovy index fa2bf3e982..7ebf4d85af 100644 --- a/vars/runPerfTestScript.groovy +++ b/vars/runPerfTestScript.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/vars/scanDockerImage.groovy b/vars/scanDockerImage.groovy index 52c2237d88..24fa052766 100644 --- a/vars/scanDockerImage.groovy +++ b/vars/scanDockerImage.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/vars/signArtifacts.groovy b/vars/signArtifacts.groovy index 792a178616..60e0f4a048 100644 --- a/vars/signArtifacts.groovy +++ b/vars/signArtifacts.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/vars/systemdCommands.groovy b/vars/systemdCommands.groovy index e6def3cff2..f09703556a 100644 --- a/vars/systemdCommands.groovy +++ b/vars/systemdCommands.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/vars/uploadArtifacts.groovy b/vars/uploadArtifacts.groovy index a44c3a4583..a35230af13 100644 --- a/vars/uploadArtifacts.groovy +++ b/vars/uploadArtifacts.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/vars/uploadIndexFile.groovy b/vars/uploadIndexFile.groovy index aef01857f6..9c856ba633 100644 --- a/vars/uploadIndexFile.groovy +++ b/vars/uploadIndexFile.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/vars/uploadMinSnapshotsToS3.groovy b/vars/uploadMinSnapshotsToS3.groovy index a9524ff9ae..13a0747610 100644 --- a/vars/uploadMinSnapshotsToS3.groovy +++ b/vars/uploadMinSnapshotsToS3.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/vars/uploadTestResults.groovy b/vars/uploadTestResults.groovy index dbd450dd55..ee236e31d6 100644 --- a/vars/uploadTestResults.groovy +++ b/vars/uploadTestResults.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to diff --git a/vars/uploadToS3.groovy b/vars/uploadToS3.groovy index 16d4f69ddf..4158efc53d 100644 --- a/vars/uploadToS3.groovy +++ b/vars/uploadToS3.groovy @@ -1,4 +1,5 @@ /* + * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to