shfmt -w globally
This commit is contained in:
parent
4e207414d4
commit
d5f66e4c0a
27 changed files with 378 additions and 375 deletions
|
@ -9,20 +9,20 @@ function star_count() {
|
|||
local host_port=$2
|
||||
local count=$3
|
||||
|
||||
$curl api_json http://$host_port/api/v1/repos/root/test > $TMPDIR/count.json
|
||||
if test $count != $(jq -r .stars_count < $TMPDIR/count.json) ; then
|
||||
jq . < $TMPDIR/count.json
|
||||
return 1
|
||||
$curl api_json http://$host_port/api/v1/repos/root/test >$TMPDIR/count.json
|
||||
if test $count != $(jq -r .stars_count <$TMPDIR/count.json); then
|
||||
jq . <$TMPDIR/count.json
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
#
|
||||
# create a repo on each instance
|
||||
#
|
||||
$ONE_CURL api_json --data '{"name":"test","auto_init":true}' $ONE_HOST_PORT/api/v1/user/repos > $TMPDIR/one-repo.json
|
||||
one_repo_id=$(jq -r .id < $TMPDIR/one-repo.json)
|
||||
$TWO_CURL api_json --data '{"name":"test","auto_init":true}' $TWO_HOST_PORT/api/v1/user/repos > $TMPDIR/two-repo.json
|
||||
two_repo_id=$(jq -r .id < $TMPDIR/two-repo.json)
|
||||
$ONE_CURL api_json --data '{"name":"test","auto_init":true}' $ONE_HOST_PORT/api/v1/user/repos >$TMPDIR/one-repo.json
|
||||
one_repo_id=$(jq -r .id <$TMPDIR/one-repo.json)
|
||||
$TWO_CURL api_json --data '{"name":"test","auto_init":true}' $TWO_HOST_PORT/api/v1/user/repos >$TMPDIR/two-repo.json
|
||||
two_repo_id=$(jq -r .id <$TMPDIR/two-repo.json)
|
||||
|
||||
#
|
||||
# the repo in instance two is federated with the repo in instance one
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
|
|
@ -0,0 +1 @@
|
|||
|
Loading…
Add table
Reference in a new issue