scramjetorg / transform-hub

Scramjet Transform Hub (STH) is a runtime supervisor that can run data processing programs called Sequences and manage local resources on any Linux server, Docker on small edge servers, and even large-scale Kubernetes clusters in the cloud or datacenters. It connects to Scramjet Spaces in Scramjet Cloud Platform.
GNU Affero General Public License v3.0
67 stars 8 forks source link

Testing binary data in output #1033

Closed a-tylenda closed 9 months ago

a-tylenda commented 9 months ago

Scenario added:

    Scenario: PT-004 TC-002 Checksum of binary payload
        Given file in the location "data/sequences/bin-out-seq/random.bin" exists on hard drive
        And host is running
        When I execute CLI with "seq pack data/sequences/bin-out-seq/dist -o data/sequences/bin-out-seq.tar.gz"
        When sequence "data/sequences/bin-out-seq.tar.gz" loaded
        And instance started
        When wait for instance healthy is "true"
        And get runner PID
        And confirm file checksum match output checksum
        When runner has ended execution
        Then host is still running

to run test:

SCRAMJET_TEST_LOG=1 DEVELOPMENT=1 yarn test:bdd --name="PT-004 TC-002"

without docker:

SCRAMJET_TEST_LOG=1 DEVELOPMENT=1 RUNTIME_ADAPTER=process yarn test:bdd --name="PT-004 TC-002"