0chain / system_test

User Acceptance Tests (UAT) for the 0Chain blockchain and storage protocols
Other
8 stars 5 forks source link

system tests for chimney update image #957

Open boddumanohar opened 11 months ago

boddumanohar commented 11 months ago

we should have a system tests to

                "getcontainers":          GetContainers,
                "updatecontainer":        UpdateContainer,
                "searchcontainer":        SearchContainer,

https://github.com/0chain/gosdk/blob/staging/wasmsdk/proxy.go#L183-L185

boddumanohar commented 8 months ago

this should be done as a part of wasm system tests

the procedure for system_test can:

  1. deploy a blubber using chimney script

test:

  1. call the wasm function: getcontainers that should return all the containers on the chimney blobber
  2. call the wasm function: updatecontainer should successfully update the container with the latest staging image. This should update the container without failure.
  3. call the wasm function: searchcontainer with parameter: "blobber" should return blobber container.