Skip to content

Commit

Permalink
updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TakoB222 committed Aug 27, 2024
1 parent 9ea5140 commit b3d7c03
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
9 changes: 5 additions & 4 deletions katib-ui-rock/rockcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ parts:
override-prime: |
mkdir -p $CRAFT_PRIME/app/build
cp -r $CRAFT_PART_BUILD/dist/static $CRAFT_PRIME/app/build
cp -r $CRAFT_PART_BUILD/dist/static $CRAFT_PRIME/app/build/static
backend:
plugin: go
Expand All @@ -77,7 +77,7 @@ parts:
build-snaps:
# Use go version that satisfies requirements in
# https://github.com/kubeflow/katib/blob/v0.17.0/docs/developer-guide.md#requirements
- go/1.22/stable
- go/1.21/stable
build-environment:
- CGO_ENABLED: 0
- GOOS: linux
Expand All @@ -102,8 +102,9 @@ parts:
security-team-requirement:
plugin: nil
override-build: |
# security requirement
# there are no packages installed in `bare` base which is used in this rock
mkdir -p ${CRAFT_PART_INSTALL}/usr/share/rocks
(echo "# os-release" && cat /etc/os-release && echo "# dpkg-query" && \
dpkg-query --root=${CRAFT_PROJECT_DIR}/../bundles/ubuntu-22.04/rootfs/ -f '${db:Status-Abbrev},${binary:Package},${Version},${source:Package},${Source:Version}\n' -W) \
(echo "# os-release" && cat /etc/os-release && echo "# dpkg-query") \
> ${CRAFT_PART_INSTALL}/usr/share/rocks/dpkg.query
3 changes: 2 additions & 1 deletion katib-ui-rock/tests/test_rock.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ def test_rock(rock_test_env):
"run",
LOCAL_ROCK_IMAGE,
"exec",
"cat",
"ls",
"-la"
"/app/build/static",
],
check=True,
Expand Down

0 comments on commit b3d7c03

Please sign in to comment.