Skip to content

Commit 270d128

Browse files
committed
add id as cmd arg
1 parent 47e9d1e commit 270d128

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ help:
77
@echo "get-all-suggested-instance-types get all suggested instance types"
88
@echo "produce-no-pcp-message produce no pcp message to the HBI topic"
99
@echo "listen-report-processor-event listens to ros.events topic"
10-
@echo "produce-delete-event send delete event message to test system eraser"
10+
@echo "produce-system-delete-event send delete event message to test system eraser (use SYSTEM_ID=<id> to specify custom ID)"
1111

1212
metadata={"branch_info": {"remote_branch": -1, "remote_leaf": -1}, "bios_uuid": "25d6ad97-60fa-4d3e-b2cc-4aa437c28f71", "ip_addresses": ["10.74.255.52", "2620:52:0:4af8:21a:4aff:fe00:a8a"], "fqdn": "vm255-52.gsslab.pnq2.redhat.com", "mac_addresses": ["00:1a:4a:00:0a:8a", "00:00:00:00:00:00"], "satellite_id": -1, "subscription_manager_id": "7846d4fa-6fcc-4b84-aa13-5f12e588ecca", "insights_id": "1d42f242-3828-4a00-8009-c67656c86a51", "machine_id": "25d6ad97-60fa-4d3e-b2cc-4aa437c28f71"}
1313
identity={"identity": {"account_number": "0000001", "org_id": "000001", "auth_type": "jwt-auth", "type": "User","user": {"username": "[email protected]","email": "[email protected]","first_name": "test","last_name": "user","is_active": true,"is_org_admin": false, "locale": "en_US"}}}
@@ -36,5 +36,6 @@ produce-api-message:
3636
listen-report-processor-event:
3737
kcat -b localhost:29092 -t ros.events -C -o end
3838

39-
produce-delete-event:
40-
kcat -b localhost:9092 -t platform.inventory.events -P sample-files/delete_system_message.json
39+
produce-system-delete-event:
40+
$(eval SYSTEM_ID ?= bdc9eb93-b636-4663-a9fe-47db34cb5ca4)
41+
jq -c '.id = "$(SYSTEM_ID)"' sample-files/delete_system_message.json | kcat -b localhost:9092 -t platform.inventory.events -P

0 commit comments

Comments
 (0)