Skip to content

Commit 09bf5e1

Browse files
committed
Add license to integration tests
Right? [#121307413]
1 parent 673a682 commit 09bf5e1

File tree

6 files changed

+258
-1
lines changed

6 files changed

+258
-1
lines changed

RMQClientIntegrationTests/ConnectionRecoveryIntegrationTest.swift

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,54 @@
1+
// This source code is dual-licensed under the Mozilla Public License ("MPL"),
2+
// version 1.1 and the Apache License ("ASL"), version 2.0.
3+
//
4+
// The ASL v2.0:
5+
//
6+
// ---------------------------------------------------------------------------
7+
// Copyright 2016 Pivotal Software, Inc.
8+
//
9+
// Licensed under the Apache License, Version 2.0 (the "License");
10+
// you may not use this file except in compliance with the License.
11+
// You may obtain a copy of the License at
12+
//
13+
// http://www.apache.org/licenses/LICENSE-2.0
14+
//
15+
// Unless required by applicable law or agreed to in writing, software
16+
// distributed under the License is distributed on an "AS IS" BASIS,
17+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18+
// See the License for the specific language governing permissions and
19+
// limitations under the License.
20+
// ---------------------------------------------------------------------------
21+
//
22+
// The MPL v1.1:
23+
//
24+
// ---------------------------------------------------------------------------
25+
// The contents of this file are subject to the Mozilla Public License
26+
// Version 1.1 (the "License"); you may not use this file except in
27+
// compliance with the License. You may obtain a copy of the License at
28+
// https://www.mozilla.org/MPL/
29+
//
30+
// Software distributed under the License is distributed on an "AS IS"
31+
// basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
32+
// License for the specific language governing rights and limitations
33+
// under the License.
34+
//
35+
// The Original Code is RabbitMQ
36+
//
37+
// The Initial Developer of the Original Code is Pivotal Software, Inc.
38+
// All Rights Reserved.
39+
//
40+
// Alternatively, the contents of this file may be used under the terms
41+
// of the Apache Standard license (the "ASL License"), in which case the
42+
// provisions of the ASL License are applicable instead of those
43+
// above. If you wish to allow use of your version of this file only
44+
// under the terms of the ASL License and not to allow others to use
45+
// your version of this file under the MPL, indicate your decision by
46+
// deleting the provisions above and replace them with the notice and
47+
// other provisions required by the ASL License. If you do not delete
48+
// the provisions above, a recipient may use your version of this file
49+
// under either the MPL or the ASL License.
50+
// ---------------------------------------------------------------------------
51+
152
import XCTest
253

354
enum RecoveryTestError : ErrorType {

RMQClientIntegrationTests/IntegrationTests.swift

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,54 @@
1+
// This source code is dual-licensed under the Mozilla Public License ("MPL"),
2+
// version 1.1 and the Apache License ("ASL"), version 2.0.
3+
//
4+
// The ASL v2.0:
5+
//
6+
// ---------------------------------------------------------------------------
7+
// Copyright 2016 Pivotal Software, Inc.
8+
//
9+
// Licensed under the Apache License, Version 2.0 (the "License");
10+
// you may not use this file except in compliance with the License.
11+
// You may obtain a copy of the License at
12+
//
13+
// http://www.apache.org/licenses/LICENSE-2.0
14+
//
15+
// Unless required by applicable law or agreed to in writing, software
16+
// distributed under the License is distributed on an "AS IS" BASIS,
17+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18+
// See the License for the specific language governing permissions and
19+
// limitations under the License.
20+
// ---------------------------------------------------------------------------
21+
//
22+
// The MPL v1.1:
23+
//
24+
// ---------------------------------------------------------------------------
25+
// The contents of this file are subject to the Mozilla Public License
26+
// Version 1.1 (the "License"); you may not use this file except in
27+
// compliance with the License. You may obtain a copy of the License at
28+
// https://www.mozilla.org/MPL/
29+
//
30+
// Software distributed under the License is distributed on an "AS IS"
31+
// basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
32+
// License for the specific language governing rights and limitations
33+
// under the License.
34+
//
35+
// The Original Code is RabbitMQ
36+
//
37+
// The Initial Developer of the Original Code is Pivotal Software, Inc.
38+
// All Rights Reserved.
39+
//
40+
// Alternatively, the contents of this file may be used under the terms
41+
// of the Apache Standard license (the "ASL License"), in which case the
42+
// provisions of the ASL License are applicable instead of those
43+
// above. If you wish to allow use of your version of this file only
44+
// under the terms of the ASL License and not to allow others to use
45+
// your version of this file under the MPL, indicate your decision by
46+
// deleting the provisions above and replace them with the notice and
47+
// other provisions required by the ASL License. If you do not delete
48+
// the provisions above, a recipient may use your version of this file
49+
// under either the MPL or the ASL License.
50+
// ---------------------------------------------------------------------------
51+
152
import XCTest
253

354
// see https://github.com/rabbitmq/rabbitmq-objc-client#running-tests

RMQClientIntegrationTests/PublisherConfirmationIntegrationTest.swift

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,54 @@
1+
// This source code is dual-licensed under the Mozilla Public License ("MPL"),
2+
// version 1.1 and the Apache License ("ASL"), version 2.0.
3+
//
4+
// The ASL v2.0:
5+
//
6+
// ---------------------------------------------------------------------------
7+
// Copyright 2016 Pivotal Software, Inc.
8+
//
9+
// Licensed under the Apache License, Version 2.0 (the "License");
10+
// you may not use this file except in compliance with the License.
11+
// You may obtain a copy of the License at
12+
//
13+
// http://www.apache.org/licenses/LICENSE-2.0
14+
//
15+
// Unless required by applicable law or agreed to in writing, software
16+
// distributed under the License is distributed on an "AS IS" BASIS,
17+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18+
// See the License for the specific language governing permissions and
19+
// limitations under the License.
20+
// ---------------------------------------------------------------------------
21+
//
22+
// The MPL v1.1:
23+
//
24+
// ---------------------------------------------------------------------------
25+
// The contents of this file are subject to the Mozilla Public License
26+
// Version 1.1 (the "License"); you may not use this file except in
27+
// compliance with the License. You may obtain a copy of the License at
28+
// https://www.mozilla.org/MPL/
29+
//
30+
// Software distributed under the License is distributed on an "AS IS"
31+
// basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
32+
// License for the specific language governing rights and limitations
33+
// under the License.
34+
//
35+
// The Original Code is RabbitMQ
36+
//
37+
// The Initial Developer of the Original Code is Pivotal Software, Inc.
38+
// All Rights Reserved.
39+
//
40+
// Alternatively, the contents of this file may be used under the terms
41+
// of the Apache Standard license (the "ASL License"), in which case the
42+
// provisions of the ASL License are applicable instead of those
43+
// above. If you wish to allow use of your version of this file only
44+
// under the terms of the ASL License and not to allow others to use
45+
// your version of this file under the MPL, indicate your decision by
46+
// deleting the provisions above and replace them with the notice and
47+
// other provisions required by the ASL License. If you do not delete
48+
// the provisions above, a recipient may use your version of this file
49+
// under either the MPL or the ASL License.
50+
// ---------------------------------------------------------------------------
51+
152
import XCTest
253

354
class PublisherConfirmationIntegrationTest: XCTestCase {
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,52 @@
1+
// This source code is dual-licensed under the Mozilla Public License ("MPL"),
2+
// version 1.1 and the Apache License ("ASL"), version 2.0.
3+
//
4+
// The ASL v2.0:
5+
//
6+
// ---------------------------------------------------------------------------
7+
// Copyright 2016 Pivotal Software, Inc.
8+
//
9+
// Licensed under the Apache License, Version 2.0 (the "License");
10+
// you may not use this file except in compliance with the License.
11+
// You may obtain a copy of the License at
12+
//
13+
// http://www.apache.org/licenses/LICENSE-2.0
14+
//
15+
// Unless required by applicable law or agreed to in writing, software
16+
// distributed under the License is distributed on an "AS IS" BASIS,
17+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18+
// See the License for the specific language governing permissions and
19+
// limitations under the License.
20+
// ---------------------------------------------------------------------------
21+
//
22+
// The MPL v1.1:
23+
//
24+
// ---------------------------------------------------------------------------
25+
// The contents of this file are subject to the Mozilla Public License
26+
// Version 1.1 (the "License"); you may not use this file except in
27+
// compliance with the License. You may obtain a copy of the License at
28+
// https://www.mozilla.org/MPL/
29+
//
30+
// Software distributed under the License is distributed on an "AS IS"
31+
// basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
32+
// License for the specific language governing rights and limitations
33+
// under the License.
34+
//
35+
// The Original Code is RabbitMQ
36+
//
37+
// The Initial Developer of the Original Code is Pivotal Software, Inc.
38+
// All Rights Reserved.
39+
//
40+
// Alternatively, the contents of this file may be used under the terms
41+
// of the Apache Standard license (the "ASL License"), in which case the
42+
// provisions of the ASL License are applicable instead of those
43+
// above. If you wish to allow use of your version of this file only
44+
// under the terms of the ASL License and not to allow others to use
45+
// your version of this file under the MPL, indicate your decision by
46+
// deleting the provisions above and replace them with the notice and
47+
// other provisions required by the ASL License. If you do not delete
48+
// the provisions above, a recipient may use your version of this file
49+
// under either the MPL or the ASL License.
50+
// ---------------------------------------------------------------------------
51+
152
#import "RMQClient.h"

RMQClientIntegrationTests/RMQTCPSocketTransportTest.swift

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,54 @@
1+
// This source code is dual-licensed under the Mozilla Public License ("MPL"),
2+
// version 1.1 and the Apache License ("ASL"), version 2.0.
3+
//
4+
// The ASL v2.0:
5+
//
6+
// ---------------------------------------------------------------------------
7+
// Copyright 2016 Pivotal Software, Inc.
8+
//
9+
// Licensed under the Apache License, Version 2.0 (the "License");
10+
// you may not use this file except in compliance with the License.
11+
// You may obtain a copy of the License at
12+
//
13+
// http://www.apache.org/licenses/LICENSE-2.0
14+
//
15+
// Unless required by applicable law or agreed to in writing, software
16+
// distributed under the License is distributed on an "AS IS" BASIS,
17+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18+
// See the License for the specific language governing permissions and
19+
// limitations under the License.
20+
// ---------------------------------------------------------------------------
21+
//
22+
// The MPL v1.1:
23+
//
24+
// ---------------------------------------------------------------------------
25+
// The contents of this file are subject to the Mozilla Public License
26+
// Version 1.1 (the "License"); you may not use this file except in
27+
// compliance with the License. You may obtain a copy of the License at
28+
// https://www.mozilla.org/MPL/
29+
//
30+
// Software distributed under the License is distributed on an "AS IS"
31+
// basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
32+
// License for the specific language governing rights and limitations
33+
// under the License.
34+
//
35+
// The Original Code is RabbitMQ
36+
//
37+
// The Initial Developer of the Original Code is Pivotal Software, Inc.
38+
// All Rights Reserved.
39+
//
40+
// Alternatively, the contents of this file may be used under the terms
41+
// of the Apache Standard license (the "ASL License"), in which case the
42+
// provisions of the ASL License are applicable instead of those
43+
// above. If you wish to allow use of your version of this file only
44+
// under the terms of the ASL License and not to allow others to use
45+
// your version of this file under the MPL, indicate your decision by
46+
// deleting the provisions above and replace them with the notice and
47+
// other provisions required by the ASL License. If you do not delete
48+
// the provisions above, a recipient may use your version of this file
49+
// under either the MPL or the ASL License.
50+
// ---------------------------------------------------------------------------
51+
152
import XCTest
253
import CocoaAsyncSocket
354

codegen/Rakefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ require_relative 'generate_basic_properties'
66

77
code_dir = Pathname(File.absolute_path('../RMQClient', __dir__))
88
tests_dir = Pathname(File.absolute_path('../RMQClientTests', __dir__))
9+
integration_tests_dir = Pathname(File.absolute_path('../RMQClientIntegrationTests', __dir__))
910
this_dir = Pathname(__dir__)
1011
xml = Nokogiri::XML(File.open(this_dir.join("amqp0-9-1.extended.xml")))
1112

@@ -38,7 +39,8 @@ task license_and_generate: :generate do
3839
command = [this_dir.join("../bin/add-license"),
3940
this_dir.join("../license-header.txt"),
4041
code_dir,
41-
tests_dir].join(" ")
42+
tests_dir,
43+
integration_tests_dir].join(" ")
4244
system(command)
4345
end
4446

0 commit comments

Comments
 (0)