Skip to content

Commit

Permalink
Update Bach to the latest unreleased version
Browse files Browse the repository at this point in the history
  • Loading branch information
chaifeng committed Sep 29, 2024
1 parent 6cdd4df commit 3d6896c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions test/ufw-docker.test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ source "$working_dir"/bach/bach.sh
@mocktrue docker -v
@mock docker -v === @stdout Docker version 0.0.0, build dummy

@ignore remove_blank_lines
@mockpipe remove_blank_lines
@ignore echo
@ignore err

Expand Down Expand Up @@ -465,7 +465,7 @@ test-ufw-docker--instance-name-found-a-name() {
}
test-ufw-docker--instance-name-found-a-name-assert() {
docker inspect --format="{{.Name}}" foo
echo -n foo
@dryrun echo -n foo
}


Expand Down Expand Up @@ -557,7 +557,7 @@ test-ufw-docker--list-number-assert() {

test-ufw-docker--delete-empty-result() {
@mock ufw-docker--list-number webapp 80 tcp === @stdout ""
@mock sort -rn
@mockpipe sort -rn

load-ufw-docker-function ufw-docker--delete
ufw-docker--delete webapp 80 tcp
Expand All @@ -569,7 +569,7 @@ test-ufw-docker--delete-empty-result-assert() {

test-ufw-docker--delete-all() {
@mock ufw-docker--list-number webapp 80 tcp === @stdout 5 8 9
@mock sort -rn
@mockpipe sort -rn

load-ufw-docker-function ufw-docker--delete
ufw-docker--delete webapp 80 tcp
Expand Down

0 comments on commit 3d6896c

Please sign in to comment.