-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix job logs following to work with auth
Auth broke logs following because not only was there an incorrect cast the setting of headers was not done correctly on the websocket request To bring logs reading into the fold, we've had to refactor a little bit and make Dial a first class method on the client. Unfortunately there is a collision between the interface-typed Client and the generic-typed Dialler, meaning that Dial now has to return just byte slices and a utility is needed to parse these into strongly-typed objects.
- Loading branch information
Showing
6 changed files
with
116 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!bin/bashtub | ||
|
||
source bin/bacalhau.sh | ||
|
||
testcase_can_follow_job_logs() { | ||
create_node requester,compute | ||
|
||
subject bacalhau job run --follow $ROOT/testdata/jobs/wasm.yaml | ||
assert_equal 0 $status | ||
assert_match 'Hello, world!' $(echo $stdout | tail -n1) | ||
assert_equal '' $stderr | ||
} |