Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Commit

Permalink
ref(blobby): Refactors blobby tests
Browse files Browse the repository at this point in the history
Adds support for running both tests simultaneously and should also
solve some of the flakiness. Also removes the need to push to
docker and uses the `file://` option instead

Signed-off-by: Taylor Thomas <taylor@cosmonic.com>
  • Loading branch information
thomastaylor312 committed Jun 21, 2023
1 parent 0b3e413 commit 5652f1d
Show file tree
Hide file tree
Showing 5 changed files with 524 additions and 351 deletions.
14 changes: 6 additions & 8 deletions actor/blobby/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ guide](https://wasmcloud.dev/overview/installation/), you can run this example a
wasmCloud providers with the following commands:

```
$ wash ctl start actor wasmcloud.azurecr.io/blobby:0.2.0
$ wash ctl start actor wasmcloud.azurecr.io/blobby:0.2.1
# If you use a locally built actor, replace the actor ID below with your own
$ wash ctl link put MBY3COMRDLQYTX2AUTNB5D2WYAH5TUKNIMELDSQ5BUFZVV7CBUUIKEDR VBBQNNCGUKIXEWLL5HL5XJE57BS3GU5DMDOKZS6ROEWPQFHEDP6NGVZM wasmcloud:blobstore "ROOT=/tmp"
$ wash ctl link put MBY3COMRDLQYTX2AUTNB5D2WYAH5TUKNIMELDSQ5BUFZVV7CBUUIKEDR VAG3QITQQ2ODAOWB5TTQSDJ53XK3SHBEIFNK4AYJ5RKAX2UNSCAPHA5M wasmcloud:httpserver "ADDRESS=0.0.0.0:8080"
$ wash ctl start provider wasmcloud.azurecr.io/blobstore_fs:0.3.1 --skip-wait
$ wash ctl start provider wasmcloud.azurecr.io/httpserver:0.17.0 --skip-wait
$ wash ctl start provider wasmcloud.azurecr.io/blobstore_fs:0.3.2 --skip-wait
$ wash ctl start provider wasmcloud.azurecr.io/httpserver:0.18.2 --skip-wait
```

Once everything is up and running, you can run through all of the operations by following the
Expand Down Expand Up @@ -169,16 +169,14 @@ $ wash build

### Testing the actor

Testing the actor is just a bit more complex, but still fairly easy
Testing the actor is also easy:

```console
$ cd testing
$ cargo test -- --test-threads 1
$ cargo test
```

This will automatically build your actor and then run the tests. The `--test-threads 1` only runs
one test at a time as a workaround until we can put in the work to automatically generate different
ports for everything that is starting up
This will automatically build your actor and then run the tests.

Please note that these tests are currently being used as a testbed for actor integration testing. It
is likely we will try to wrap this up in some sort of testing tool in the future!
Loading

0 comments on commit 5652f1d

Please sign in to comment.