Skip to content

Commit

Permalink
chore: update template file as input test case and unit test run_maca…
Browse files Browse the repository at this point in the history
…ron.sh test case to use files within the test directory

Signed-off-by: Trong Nhan Mai <trong.nhan.mai@oracle.com>
  • Loading branch information
tromai committed Jul 8, 2024
1 parent df0a4a9 commit 22c2e32
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!-- Copyright (c) 2024 - 2024, Oracle and/or its affiliates. All rights reserved. -->
<!-- Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/. -->

<!DOCTYPE html>
<html lang='en'>

<head>
<meta charset='UTF-8'>
<title>Macaron - Report</title>
</head>

<body>
<header>
<div>MACARON REPORT</div>
</header>

SAMPLE MACARON REPORT CONTENT
</body>

</html>
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ steps:
- -d
- 3fc399318edef0d5ba593723a24fff64291d6f9b
- -g
- ../../../../src/macaron/output_reporter/templates/macaron.html
- macaron.html
- --skip-deps
- name: Run verify-policy
kind: verify
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
# Copyright (c) 2024 - 2024, Oracle and/or its affiliates. All rights reserved.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/.

mkdir ./output
cp ../../../../scripts/release_scripts/run_macaron.sh ./output/run_macaron.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ tags:
- docker-only

steps:
- name: Copy the run_macaron.sh from the source repo to ./output which will eventually be cleaned up.
kind: shell
options:
cmd: ./setup.sh
- name: Run test_run_macaron_sh.py
kind: shell
options:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def test_macaron_command() -> int:

result = subprocess.run(
[ # nosec B603
"../../../../scripts/release_scripts/run_macaron.sh",
"./output/run_macaron.sh",
*script_args,
],
capture_output=True,
Expand Down

0 comments on commit 22c2e32

Please sign in to comment.