Skip to content

Commit 0304b3b

Browse files
committed
add missing licenses
Signed-off-by: Sean Chittenden <sean.chittenden@crowdstrike.com>
1 parent 9d8d490 commit 0304b3b

3 files changed

Lines changed: 64 additions & 6 deletions

File tree

opensearchtransport/discovery_integration_test.go

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,29 @@
1+
// SPDX-License-Identifier: Apache-2.0
2+
//
3+
// The OpenSearch Contributors require contributions made to
4+
// this file be licensed under the Apache-2.0 license or a
5+
// compatible open source license.
6+
//
7+
// Modifications Copyright OpenSearch Contributors. See
8+
// GitHub history for details.
9+
10+
// Licensed to Elasticsearch B.V. under one or more contributor
11+
// license agreements. See the NOTICE file distributed with
12+
// this work for additional information regarding copyright
13+
// ownership. Elasticsearch B.V. licenses this file to you under
14+
// the Apache License, Version 2.0 (the "License"); you may
15+
// not use this file except in compliance with the License.
16+
// You may obtain a copy of the License at
17+
//
18+
// http://www.apache.org/licenses/LICENSE-2.0
19+
//
20+
// Unless required by applicable law or agreed to in writing,
21+
// software distributed under the License is distributed on an
22+
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
23+
// KIND, either express or implied. See the License for the
24+
// specific language governing permissions and limitations
25+
// under the License.
26+
127
//go:build integration && (core || opensearchtransport)
228

329
package opensearchtransport

opensearchtransport/health_check_integration_test.go

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,29 @@
1+
// SPDX-License-Identifier: Apache-2.0
2+
//
3+
// The OpenSearch Contributors require contributions made to
4+
// this file be licensed under the Apache-2.0 license or a
5+
// compatible open source license.
6+
//
7+
// Modifications Copyright OpenSearch Contributors. See
8+
// GitHub history for details.
9+
10+
// Licensed to Elasticsearch B.V. under one or more contributor
11+
// license agreements. See the NOTICE file distributed with
12+
// this work for additional information regarding copyright
13+
// ownership. Elasticsearch B.V. licenses this file to you under
14+
// the Apache License, Version 2.0 (the "License"); you may
15+
// not use this file except in compliance with the License.
16+
// You may obtain a copy of the License at
17+
//
18+
// http://www.apache.org/licenses/LICENSE-2.0
19+
//
20+
// Unless required by applicable law or agreed to in writing,
21+
// software distributed under the License is distributed on an
22+
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
23+
// KIND, either express or implied. See the License for the
24+
// specific language governing permissions and limitations
25+
// under the License.
26+
127
//go:build integration && (core || opensearchtransport)
228

329
package opensearchtransport

opensearchtransport/opensearchtransport_internal_test.go

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,8 @@ func TestTransportPerformRetries(t *testing.T) {
462462
u, _ := url.Parse("http://foo.bar")
463463
tp, _ := New(
464464
Config{
465-
URLs: []*url.URL{u, u, u},
465+
URLs: []*url.URL{u, u, u},
466+
SkipConnectionShuffle: true, // Disable shuffling for predictable test results
466467
Transport: &mockTransp{
467468
RoundTripFunc: func(req *http.Request) (*http.Response, error) {
468469
i++
@@ -504,7 +505,8 @@ func TestTransportPerformRetries(t *testing.T) {
504505
u, _ := url.Parse("http://foo.bar")
505506
tp, _ := New(
506507
Config{
507-
URLs: []*url.URL{u, u, u},
508+
URLs: []*url.URL{u, u, u},
509+
SkipConnectionShuffle: true, // Disable shuffling for predictable test results
508510
Transport: &mockTransp{
509511
RoundTripFunc: func(req *http.Request) (*http.Response, error) {
510512
i++
@@ -546,7 +548,8 @@ func TestTransportPerformRetries(t *testing.T) {
546548
u, _ := url.Parse("http://foo.bar")
547549
tp, _ := New(
548550
Config{
549-
URLs: []*url.URL{u, u, u},
551+
URLs: []*url.URL{u, u, u},
552+
SkipConnectionShuffle: true, // Disable shuffling for predictable test results
550553
Transport: &mockTransp{
551554
RoundTripFunc: func(req *http.Request) (*http.Response, error) {
552555
i++
@@ -634,7 +637,8 @@ func TestTransportPerformRetries(t *testing.T) {
634637
u, _ := url.Parse("http://foo.bar")
635638
tp, _ := New(
636639
Config{
637-
URLs: []*url.URL{u, u, u},
640+
URLs: []*url.URL{u, u, u},
641+
SkipConnectionShuffle: true, // Disable shuffling for predictable test results
638642
Transport: &mockTransp{
639643
RoundTripFunc: func(req *http.Request) (*http.Response, error) {
640644
i++
@@ -789,7 +793,8 @@ func TestTransportPerformRetries(t *testing.T) {
789793
u, _ := url.Parse("http://foo.bar")
790794
tp, _ := New(
791795
Config{
792-
URLs: []*url.URL{u, u, u},
796+
URLs: []*url.URL{u, u, u},
797+
SkipConnectionShuffle: true, // Disable shuffling for predictable test results
793798
Transport: &mockTransp{
794799
RoundTripFunc: func(req *http.Request) (*http.Response, error) {
795800
i++
@@ -824,7 +829,8 @@ func TestTransportPerformRetries(t *testing.T) {
824829
u, _ := url.Parse("http://foo.bar")
825830
tp, _ := New(
826831
Config{
827-
URLs: []*url.URL{u, u, u},
832+
URLs: []*url.URL{u, u, u},
833+
SkipConnectionShuffle: true, // Disable shuffling for predictable test results
828834
Transport: &mockTransp{
829835
RoundTripFunc: func(req *http.Request) (*http.Response, error) {
830836
i++

0 commit comments

Comments
 (0)