Test
To test a provider, we can run it in a local wasmCloud environment, interacting with a real host and real components. To set up the environment:
-
Start a new local OCI registry. You can download the Docker Compose YAML file and run
docker compose up -d registry
. You'll also need to allow unauthenticated OCI registry access before starting the wasmCloud host. -
Upload the newly-created provider archive to the local OCI registry (You can use
wash push ...
, or if you have one of the provider project Makefiles,make push
)make start
to start it. -
Upload a component that utilizes the provider to the local OCI registry (
wash build
from the component source folder to compile it, sign it, and then usewash reg push
to upload it to the registry). Then, usewash start
to start the actor from the local registry. -
Link the component in your Wadm manifest.
-
Invoke the component.
To see an example of this, refer to the create section for capability providers.