Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Jul 25, 2023
1 parent dff4fdb commit f11b819
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
1 change: 1 addition & 0 deletions testscript/testdata/help.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Usage:
Available Commands:
help Help about any command
info Show your info
jwt Generate a JSON Web Token
pubkey Manage your public keys
repo Manage repositories
set-username Set your username
Expand Down
28 changes: 14 additions & 14 deletions testscript/testdata/repo-perms.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -31,33 +31,33 @@ soft repo collab list repo1

# regular user can't access it
! usoft repo info repo1
stderr 'Unauthorized'
stderr 'unauthorized'
! usoft repo tree repo1
stderr 'Unauthorized'
stderr 'unauthorized'
! usoft repo tag list repo1
stderr 'Unauthorized'
stderr 'unauthorized'
! usoft repo tag delete repo1 v1.0.0
stderr 'Unauthorized'
stderr 'unauthorized'
! usoft repo blob repo1 README.md
stderr 'Unauthorized'
stderr 'unauthorized'
! usoft repo description repo1
stderr 'Unauthorized'
stderr 'unauthorized'
! usoft repo description repo1 'new desc'
stderr 'Unauthorized'
stderr 'unauthorized'
! usoft repo project-name repo1
stderr 'Unauthorized'
stderr 'unauthorized'
! usoft repo private repo1 true
stderr 'Unauthorized'
stderr 'unauthorized'
! usoft repo private repo1
stderr 'Unauthorized'
stderr 'unauthorized'
! usoft repo rename repo1 repo11
stderr 'Unauthorized'
stderr 'unauthorized'
! usoft repo branch default repo1
stderr 'Unauthorized'
stderr 'unauthorized'
! usoft repo branch default repo1 main
stderr 'Unauthorized'
stderr 'unauthorized'
! usoft repo delete repo1
stderr 'Unauthorized'
stderr 'unauthorized'

# add user1 as collab
soft repo collab add repo1 user1
Expand Down
2 changes: 1 addition & 1 deletion testscript/testdata/repo-tree.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ cmp stdout tree3.txt
# print tree of folder that does not exist
! soft repo tree repo1 folder2
! stdout .
stderr 'File not found'
stderr 'file not found'

# print tree of bad revision
! soft repo tree repo1 badrev folder
Expand Down

0 comments on commit f11b819

Please sign in to comment.