feat: A new Varlink interface com.redhat.rhsm#438
Conversation
e13a707 to
fd7a68e
Compare
c8a8b93 to
c571532
Compare
|
BTW, when golang is used and standard |
|
How to test it? Build project with $ sudo ./rhc-serverOpen another terminal and you can run following commands: $ sudo varlinkctl call /run/rhc/com.redhat.rhsm com.redhat.rhsm.testing.Ping '{}'
$ sudo varlinkctl call /run/rhc/com.redhat.rhsm com.redhat.rhsm.testing.IsRegistered '{}'You can test it on registered or unregistered system. You can also test it on system with not valid configuration file in You can try to use $ sudo varlinkctl call /run/rhc/com.redhat.rhsm com.redhat.rhsm.testing.Ping \
'{"metadata": {"user_agent": "foo-client", "locale": "de-DE", "correlation_id": "foo-corr-id"}}'You can use any combination of |
* Card ID: CCT-2348 * The rhc-server listens on another socket: `/run/rhc/com.redhat.rhsm` * The new socket will provides only com.redhat.rhsm* interfaces * Added a new interface file .varlink com.redhat.rhsm interface * Introduced a new socket file rhsm-server.socket, because one socket file can have only one [Socket] section * Modified rhc.spec to install rhsm-server.socket to the system * The interface contains: * Two methods: * `IsRegistered()` * `Ping()` * Type `Metadata` * Two errors * Added a new file ./cmd/rhc-server/rhsm.go * It uses golang module: github.com/jirihnidek/rhsm2 * Modified one unit test Signed-off-by: Jiri Hnidek <jhnidek@redhat.com>
c571532 to
19f3d56
Compare
|
This is reason, whey integration tests fails: https://github.com/RedHatInsights/rhc/blob/main/integration-tests/test_collector_api.py#L21 The |
/run/rhc/com.redhat.rhsmIsRegistered()Ping()