Skip to content
This repository was archived by the owner on Feb 9, 2022. It is now read-only.

echo-service created to test "kubectl logs" #2

Merged
merged 3 commits into from
Apr 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@
The integration test repo contains a Stackable repository with services
used for the integration tests.

== Overview
The following services are available:

* test-service: a Shell script which just sleeps.
* link:noop-service/README.adoc[noop-service]:
Performs no operation and just sleeps.
* link:echo-service/README.adoc[echo-service]:
Prints the content of an environment variable to standard output.

== Contributing
The integration tests and the integration test repo are developed as open
Expand Down
24 changes: 24 additions & 0 deletions echo-service/README.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
= echo-service

The echo-service prints the content of the environment variable
`LOG_OUTPUT` to standard output and falls asleep.

A new line is appended so the content in `LOG_OUTPUT` should not end with
a new line character.

The capacity of environment variables depends on the system but it is safe
to store up to 120 kB in `LOG_OUTPUT`.

== Escape sequences

The following escape sequences are recognized:

* `\n` new line
* `\\` backslash

== Example

$ LOG_OUTPUT='first line\nbackslash: \\\nheart: ♥' start.sh
first line
backslash: \
heart: ♥
Binary file added echo-service/echo-service-1.0.0.tar.gz
Binary file not shown.
17 changes: 13 additions & 4 deletions metadata.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
{
"version": "1",
"packages": {
"test-service": [
"noop-service": [
{
"version": "0.1.0",
"path": "test-service/test-service-0.1.0.tar.gz",
"version": "1.0.0",
"path": "noop-service/noop-service-1.0.0.tar.gz",
"hashes": {
"SHA512": "a5b68dce3e48cd70b0f4b2d6e6371c9de9e2db81e1e546a03bbe6fac7020336bddd7d91091c29865ee6610fbbfca02fca921ccc3766c4a26e518456380d75140"
"SHA512": "1cba9a5cad05e0aa66be9185b1ed24d40b52cdd21a7638a825f7bc69b1b221250a10cd8c4b5d50faa94e79045b0eeee9b76cbc2094cc47e80084e87caead98ed"
}
}
],
"echo-service": [
{
"version": "1.0.0",
"path": "echo-service/echo-service-1.0.0.tar.gz",
"hashes": {
"SHA512": "0cd616400e83a0cbe62774bf0ccc9902503049951d187c135f7f3bd7a57e4adf2581736892543d701b12c379435e828778a9f20757e3a81d81a2cee1c03737c7"
}
}
]
Expand Down
3 changes: 3 additions & 0 deletions noop-service/README.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
= noop-service

This service performs no operation and just sleeps.
Binary file added noop-service/noop-service-1.0.0.tar.gz
Binary file not shown.
Binary file removed test-service/test-service-0.1.0.tar.gz
Binary file not shown.