Skip to content

Commit

Permalink
Added test for actions file API
Browse files Browse the repository at this point in the history
  • Loading branch information
akclace committed Dec 1, 2024
1 parent 627e195 commit a179235
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/commander/test_misc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,17 @@ tests:
static0600:
command: curl -su "admin:qwerty" localhost:25222/static_app2/test_certs.yaml
stdout: 404 page not found

# Test actions file handling
actions0100: # Create app
command: ../clace app create --approve github.com/claceio/apps/misc/num_lines /numlines
actions0200:
command: curl -su "admin:qwerty" localhost:25222/numlines
stdout: type="file"
actions0300:
command: echo "abc" > action_inp.txt
actions0400:
command: curl -su "admin:qwerty" -vX POST -F "file=@action_inp.txt" localhost:25222/numlines
stdout: /numlines/_clace_app/file/usr_file_
actions0500:
command: rm action_inp.txt

0 comments on commit a179235

Please sign in to comment.