Skip to content

Commit

Permalink
events + container inspect test: RHEL fixes
Browse files Browse the repository at this point in the history
Primarily, add skip_if_journald_unavailable because RHEL.

Secondarily, reverse a flipped actual/expect assertion
that made it difficult to understand the RHEL failure.

Signed-off-by: Ed Santiago <[email protected]>
  • Loading branch information
edsantiago authored and vrothberg committed Feb 17, 2023
1 parent 98e4e2c commit 51f1670
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions test/system/090-events.bats
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ EOF
--stream=false \
--format="{{.ContainerInspectData}}"
events_json=$(jq -r --tab . <<< "[$output]")
assert "$inspect_json" = "$events_json" "JSON payload in event attributes is the same as the inspect one"
assert "$events_json" = "$inspect_json" "JSON payload in event attributes is the same as the inspect one"

# Make sure that the inspect data doesn't show by default in
# podman-events.
Expand All @@ -285,10 +285,16 @@ EOF
assert "$output" != ".*EffectiveCaps.*"
}

@test "events - container inspect data" {
@test "events - container inspect data - journald" {
skip_if_remote "remote does not support --events-backend"
skip_if_journald_unavailable

_events_container_create_inspect_data journald
}

@test "events - container inspect data - file" {
skip_if_remote "remote does not support --events-backend"

_events_container_create_inspect_data file
}

Expand Down

0 comments on commit 51f1670

Please sign in to comment.