Skip to content

Commit

Permalink
DRAFT: Prepare CI for tang operator
Browse files Browse the repository at this point in the history
  • Loading branch information
Koncpa committed Oct 10, 2023
1 parent d7a37e1 commit ebd44d9
Show file tree
Hide file tree
Showing 11 changed files with 108 additions and 447 deletions.
13 changes: 13 additions & 0 deletions .packit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
jobs:
- job: tests
trigger: pull_request
branch: main
targets:
- fedora-all
skip_build: true
tf_extra_params:
environments:
- tmt:
context:
target_PR_branch: "main"

4 changes: 3 additions & 1 deletion Sanity/main.fmf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
summary: Deployment and basic functionality of the tang operator
summary: Basic functionality of the tang operator
description: ''
contact: Martin Zelený <[email protected]>
component:
Expand All @@ -7,6 +7,8 @@ test: ./runtest.sh
recommend:
- tang
- clevis
require:
- jq
duration: 30m
enabled: true
tag:
Expand Down
38 changes: 0 additions & 38 deletions Sanity/runnotest.sh

This file was deleted.

4 changes: 2 additions & 2 deletions Sanity/runtest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ getVersion() {
analyzeVersion() {
dumpVerbose "DETECTING MALWARE ON VERSION:[${1}]"
"${CONTAINER_MGR}" pull "${1}"
dir_mount=$("${CONTAINER_MGR}" unshare ./mount_image.sh -v "${1}" -c "${CONTAINER_MGR}")
dir_mount=$("${CONTAINER_MGR}" unshare ./scripts/mount_image.sh -v "${1}" -c "${CONTAINER_MGR}")
rlAssertEquals "Checking image could be mounted appropriately" "$?" "0"
analyzed_dir=$(echo "${dir_mount}" | sed -e 's@/merged@@g')
dumpVerbose "Analyzing directory:[${analyzed_dir}]"
Expand All @@ -763,7 +763,7 @@ analyzeVersion() {
rlLogWarning "${infected_files} Infected Files Detected!"
rlLogWarning "Please, review Malware Detection log file: ${tmpdir}/${prefix}_malware.log"
fi
"${CONTAINER_MGR}" unshare ./umount_image.sh -v "${1}" -c "${CONTAINER_MGR}"
"${CONTAINER_MGR}" unshare ./scripts/umount_image.sh -v "${1}" -c "${CONTAINER_MGR}"
rlAssertEquals "Checking image could be umounted appropriately" "$?" "0"
}

Expand Down
File renamed without changes.
File renamed without changes.
49 changes: 0 additions & 49 deletions Sanity/tang_operator_test.sh

This file was deleted.

Loading

0 comments on commit ebd44d9

Please sign in to comment.