@testcontainers/redpanda 10.27.0 → 11.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2018 -
|
|
3
|
+
Copyright (c) 2018 - 2025 Cristian Greco
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
18
18
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://github.com/codespaces/new?hide_repo_select=true&ref=main&repo=116414510&machine=standardLinux32gb&devcontainer_path=.devcontainer%2Fdevcontainer.json&location=EastUs)
|
|
4
4
|
|
|
5
|
-
[](https://github.com/testcontainers/testcontainers-node/actions/workflows/checks.yml)
|
|
6
6
|
[](https://www.npmjs.com/package/testcontainers)
|
|
7
7
|
[](https://www.npmjs.com/package/testcontainers)
|
|
8
8
|
|
|
@@ -16,7 +16,7 @@ See [LICENSE](https://github.com/testcontainers/testcontainers-node/blob/main/LI
|
|
|
16
16
|
|
|
17
17
|
## Copyright
|
|
18
18
|
|
|
19
|
-
Copyright (c) 2018 -
|
|
19
|
+
Copyright (c) 2018 - 2025 Cristian Greco and other authors.
|
|
20
20
|
|
|
21
21
|
## Contributing
|
|
22
22
|
|
|
@@ -24,7 +24,6 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for how to contribute to this repo.
|
|
|
24
24
|
|
|
25
25
|
See [contributors](https://github.com/testcontainers/testcontainers-node/graphs/contributors/) for all contributors.
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
----
|
|
27
|
+
---
|
|
29
28
|
|
|
30
29
|
Join our [Slack workspace](https://slack.testcontainers.org/) | [Testcontainers OSS](https://java.testcontainers.org/) | [Testcontainers Cloud](https://www.testcontainers.cloud/)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AbstractStartedContainer, GenericContainer, InspectResult, StartedTestContainer } from "testcontainers";
|
|
2
2
|
export declare class RedpandaContainer extends GenericContainer {
|
|
3
3
|
private originalWaitinStrategy;
|
|
4
|
-
constructor(image
|
|
4
|
+
constructor(image: string);
|
|
5
5
|
start(): Promise<StartedRedpandaContainer>;
|
|
6
6
|
protected beforeContainerCreated(): Promise<void>;
|
|
7
7
|
protected containerStarted(container: StartedTestContainer, inspectResult: InspectResult): Promise<void>;
|
|
@@ -16,7 +16,7 @@ const STARTER_SCRIPT = "/testcontainers_start.sh";
|
|
|
16
16
|
const WAIT_FOR_SCRIPT_MESSAGE = "Waiting for script...";
|
|
17
17
|
class RedpandaContainer extends testcontainers_1.GenericContainer {
|
|
18
18
|
originalWaitinStrategy;
|
|
19
|
-
constructor(image
|
|
19
|
+
constructor(image) {
|
|
20
20
|
super(image);
|
|
21
21
|
this.withExposedPorts(REDPANDA_PORT, REDPANDA_ADMIN_PORT, SCHEMA_REGISTRY_PORT, REST_PROXY_PORT)
|
|
22
22
|
.withUser("root:root")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"redpanda-container.js","sourceRoot":"","sources":["../src/redpanda-container.ts"],"names":[],"mappings":";;;;;;AAAA,4CAAoB;AACpB,2CAAqC;AACrC,gDAAwB;AACxB,mDAUwB;AAExB,MAAM,aAAa,GAAG,IAAI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
|
"redpanda",
|
|
@@ -26,11 +26,12 @@
|
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
28
|
"prepack": "shx cp ../../../README.md . && shx cp ../../../LICENSE .",
|
|
29
|
-
"build": "tsc --project tsconfig.build.json
|
|
29
|
+
"build": "tsc --project tsconfig.build.json",
|
|
30
|
+
"postpack": "shx cp -r src/assets build/"
|
|
30
31
|
},
|
|
31
32
|
"dependencies": {
|
|
32
33
|
"handlebars": "^4.7.8",
|
|
33
|
-
"testcontainers": "^
|
|
34
|
+
"testcontainers": "^11.0.0"
|
|
34
35
|
},
|
|
35
36
|
"devDependencies": {
|
|
36
37
|
"kafkajs": "^2.2.4"
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
# Injected by testcontainers
|
|
2
|
-
# This file contains cluster properties which will only be considered when
|
|
3
|
-
# starting the cluster for the first time. Afterwards, you can configure cluster
|
|
4
|
-
# properties via the Redpanda Admi n API.
|
|
5
|
-
|
|
6
|
-
kafka_enable_authorization: false
|
|
7
|
-
auto_create_topics_enabled: true
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
# Injected by testcontainers
|
|
2
|
-
|
|
3
|
-
redpanda:
|
|
4
|
-
admin:
|
|
5
|
-
address: 0.0.0.0
|
|
6
|
-
port: 9644
|
|
7
|
-
|
|
8
|
-
kafka_api:
|
|
9
|
-
- address: 0.0.0.0
|
|
10
|
-
name: external
|
|
11
|
-
port: 9092
|
|
12
|
-
authentication_method: none
|
|
13
|
-
|
|
14
|
-
# This listener is required for the schema registry client. The schema
|
|
15
|
-
# registry client connects via an advertised listener like a normal Kafka
|
|
16
|
-
# client would do. It can't use the other listener because the mapped
|
|
17
|
-
# port is not accessible from within the Redpanda container.
|
|
18
|
-
- address: 0.0.0.0
|
|
19
|
-
name: internal
|
|
20
|
-
port: 9093
|
|
21
|
-
authentication_method: none
|
|
22
|
-
|
|
23
|
-
advertised_kafka_api:
|
|
24
|
-
- address: {{ kafkaApi.advertisedHost }}
|
|
25
|
-
name: external
|
|
26
|
-
port: {{ kafkaApi.advertisedPort }}
|
|
27
|
-
- address: 127.0.0.1
|
|
28
|
-
name: internal
|
|
29
|
-
port: 9093
|
|
30
|
-
|
|
31
|
-
schema_registry:
|
|
32
|
-
schema_registry_api:
|
|
33
|
-
- address: "0.0.0.0"
|
|
34
|
-
name: main
|
|
35
|
-
port: 8081
|
|
36
|
-
authentication_method: none
|
|
37
|
-
|
|
38
|
-
schema_registry_client:
|
|
39
|
-
brokers:
|
|
40
|
-
- address: localhost
|
|
41
|
-
port: 9093
|
|
42
|
-
|
|
43
|
-
pandaproxy:
|
|
44
|
-
pandaproxy_api:
|
|
45
|
-
- address: 0.0.0.0
|
|
46
|
-
port: 8082
|
|
47
|
-
name: proxy-internal
|
|
48
|
-
advertised_pandaproxy_api:
|
|
49
|
-
- address: 127.0.0.1
|
|
50
|
-
port: 8082
|
|
51
|
-
name: proxy-internal
|
|
52
|
-
|
|
53
|
-
pandaproxy_client:
|
|
54
|
-
brokers:
|
|
55
|
-
- address: localhost
|
|
56
|
-
port: 9093
|
|
57
|
-
|
|
58
|
-
rpk:
|
|
59
|
-
kafka_api:
|
|
60
|
-
brokers:
|
|
61
|
-
- localhost:9093
|