{"id":46689756,"url":"https://github.com/iambaim/xk6-ibmmq","last_synced_at":"2026-03-09T03:31:02.448Z","repository":{"id":247780198,"uuid":"826820588","full_name":"iambaim/xk6-ibmmq","owner":"iambaim","description":"A k6 extension for IBM MQ. Supports send/receive operations, SSL connections, RFH2 headers, and non-text payloads.","archived":false,"fork":false,"pushed_at":"2026-02-28T10:52:21.000Z","size":153,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-28T11:34:30.584Z","etag":null,"topics":["ibm-mq","k6","k6-extension","load-testing","mq","xk6"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iambaim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-07-10T12:49:32.000Z","updated_at":"2026-02-28T10:52:21.000Z","dependencies_parsed_at":"2024-08-21T19:12:44.027Z","dependency_job_id":"6b612772-be53-476d-9072-14db49c6a92e","html_url":"https://github.com/iambaim/xk6-ibmmq","commit_stats":null,"previous_names":["iambaim/xk6-ibmmq"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/iambaim/xk6-ibmmq","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iambaim%2Fxk6-ibmmq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iambaim%2Fxk6-ibmmq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iambaim%2Fxk6-ibmmq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iambaim%2Fxk6-ibmmq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iambaim","download_url":"https://codeload.github.com/iambaim/xk6-ibmmq/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iambaim%2Fxk6-ibmmq/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30281479,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T02:57:19.223Z","status":"ssl_error","status_checked_at":"2026-03-09T02:56:26.373Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ibm-mq","k6","k6-extension","load-testing","mq","xk6"],"created_at":"2026-03-09T03:31:01.786Z","updated_at":"2026-03-09T03:31:02.415Z","avatar_url":"https://github.com/iambaim.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# xk6-ibmmq\n\n[k6](https://go.k6.io/k6) extension for [IBM MQ](https://www.ibm.com/products/mq) using the [xk6](https://github.com/grafana/xk6)\nsystem.\n\n| :exclamation: This is still a very rudimentary implementation. Breaking changes are expected. USE AT YOUR OWN RISK! |\n|------|\n\n## Prerequisites\n\nIBM MQ client (Linux/Win) or toolkit (Mac) installation is required to build and run this extension. \n\n1. Linux/Windows:\n\n   Download the client installer from: https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/messaging/mqdev/redist\n\n   More information: https://www.ibm.com/docs/en/ibm-mq/9.4?topic=overview-redistributable-mq-clients\n\n2. MacOS:\n\n   Download the client installer from: https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/messaging/mqdev/mactoolkit\n\n   More information: https://ibm.biz/mqdevmacclient\n\nOr take advantage of this: https://github.com/marketplace/actions/setup-mq-client, to build and run using Github Actions.\n\n## Build\n\nTo build a `k6` binary with this extension, first ensure you have the prerequisites:\n\n- [Go toolchain](https://go101.org/article/go-toolchain.html)\n- Git\n\nThen, install [xk6](https://github.com/grafana/xk6) and build your custom k6 binary with the IBM MQ extension:\n\n1. Install `xk6`:\n\n  ```shell\n  go install go.k6.io/xk6/cmd/xk6@latest\n  ```\n\n2. Build the binary:\n\n  ```shell\n  export CGO_ENABLED=1\n  export XK6_RACE_DETECTOR=1\n  xk6 build --with github.com/iambaim/xk6-ibmmq=.\n  ```\n\n## IBM MQ settings\n\nThis plugin uses the IBM MQ Golang package (https://github.com/ibm-messaging/mq-golang).\nTo configure the MQ connection factory, you need to set these environment variables:\n\n1. `MQ_QMGR`. Queue manager name (e.g., \"QM1\").\n2. `MQ_CHANNEL`. Channel name (e.g., \"DEV.APP.SVRCONN\").\n3. `MQ_HOST`. Host name to connect to (e.g., \"localhost\").\n4. `MQ_PORT`. Port number to connect to (e.g., 1414).\n5. `MQ_USERID`. User ID to use.\n6. `MQ_PASSWORD`. User password to use.\n7. `MQ_TLS_KEYSTORE`. TLS keystore to use. Usage example: [local-test-ssl.sh](./local-test-ssl.sh).\n8. `MQ_TLS_CIPHER_SPEC`. TLS CipherSpec to use. Usage example: [local-test-ssl.sh](./local-test-ssl.sh).\n\n## Run local test\n\nFirst build the extension by running the `./build.sh` and then\nuse the provided `./local-test.sh` and `./local-test-ssl.sh` (for SSL). \nThese test files are the self-contained test script that will spin \nup a local MQ container using docker and run an example k6 test with\nIBM MQ in `./example/localtest.js` file.\n\n## Example test\n\n```bash\n$ export MQ_QMGR=\"QM1\"\n$ export MQ_CHANNEL=\"DEV.APP.SVRCONN\"\n$ export MQ_HOST=\"localhost\"\n$ export MQ_PORT=1414\n$ export MQ_USERID=\"app\"\n$ export MQ_PASSWORD=\"password\"\n\n$ ./k6 run --vus 2 --duration 5s example/localtest.js\n```\n\n```javascript\nimport ibmmq from 'k6/x/ibmmq';\n\nconst client = ibmmq.newClient()\n\nexport default function () {\n    const sourceQueue = \"DEV.QUEUE.1\"\n    const replyQueue = \"DEV.QUEUE.2\"\n    const sourceMessage = \"My Message\"\n    const replyMessage = \"ReplyMsg\"\n    // Below is the extra properties that we want to set\n    // Leave it as null or an empty map if no extra properties are needed\n    const extraProperties = new Map([\n        [\"apiVersion\", 2],\n        [\"extraText\", \"extra\"]\n    ])\n    // The below parameter enable/disable a simulated application that will consume\n    // the message in the source queue and put a reply message in the reply queue\n    // and the reply message correlation ID == source message ID\n    const simulateReply = true\n\n    const msgID = ibmmq.send(client, sourceQueue, replyQueue, sourceMessage, simulateReply)\n    ibmmq.receive(client, replyQueue, msgID, replyMessage)\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiambaim%2Fxk6-ibmmq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiambaim%2Fxk6-ibmmq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiambaim%2Fxk6-ibmmq/lists"}