Skip to content

Solar-Punk-Ltd/act-integration-tests

Repository files navigation

ACT Integration Tests

Usage

Start Bee (with ACT) in dev mode:

./bee dev 

Or run Bee on any host or in a container, possibly one connecting to the Sepolia test network (make sure the configuration is correct).

Bash

Uploading a file then downloading it with and without ACT:

Execute the shell script with the file name to upload as an argument:

./updown.sh README.md

Hurl

Hurl test

Uploading a file then downloading it with and without ACT:

Execute the Hurl script with the file name to upload as the file_name variable:

hurl updown.hurl --test --variable file_name=README.md

For debug mode simply add -v to the command:

hurl -v --test test.hurl

To generate an HTML test report, you can use the --report-html option with a target directory specified (in this example 'report'):

hurl updown.hurl --report-html report

Docker Testing with test_suite.sh

To create a custom bee with ACT, checkout the act-ctrl branch and build bee using the Dockerfile.

  1. Build the Docker image:

    docker build --progress=plain --no-cache -t bee-act .

    If you want to build the image with a specific version of Bee, you can use the --build-arg option, but the BEE_REPO and BEE_BRANCH arguments have a default value as well in the Dockerfile:

    docker build --build-arg BEE_REPO=https://github.com/Solar-Punk-Ltd/bee.git --build-arg BEE_BRANCH=master --progress=plain --no-cache -t bee-act .
  2. Run the container (bee with act in dev mode):

    docker run -it --rm --network=host --name bee-act bee-act
  3. Execute the updown.hurl test:

    hurl updown.hurl --test --variable file_name=README.md
  4. Run the test_suite.sh script:

    ./test_suite.sh

Run tests in docker build phase

.docker build --progress=plain --no-cache -t bee-act -f test.Dockerfile .

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published