Skip to content

Commit

Permalink
RHINENG-1363: more developer script to check APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelMraka committed Aug 1, 2023
1 parent 9a22132 commit 64dbbfc
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dev/scripts/advisory_systems.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

IDENTITY="$($(dirname "$0")/identity.sh)"
ADVISORY=${1:-RH-1}

curl -v -H "x-rh-identity: $IDENTITY" http://localhost:8080/api/patch/v1/advisories/$ADVISORY/systems | python3 -m json.tool
6 changes: 6 additions & 0 deletions dev/scripts/kafka-send-message.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh

# send message from stdin to kafka topic

TOPIC=${1:-platform.inventory.events}
podman exec -i kafka sh -c " tr '\n' ' ' | kafka-console-producer --topic $TOPIC --broker-list localhost:9092 "
6 changes: 6 additions & 0 deletions dev/scripts/system_packages.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

IDENTITY="$($(dirname "$0")/identity.sh)"
UUID=${1:-00000000-0000-0000-0000-000000000002}

curl -v -H "x-rh-identity: $IDENTITY" http://localhost:8080/api/patch/v2/systems/$UUID/packages | python3 -m json.tool

0 comments on commit 64dbbfc

Please sign in to comment.