zopencommunity / wharf

A container registry
Apache License 2.0
6 stars 4 forks source link

fix: correct the implementation of test #39

Closed bluecivet closed 8 months ago

bluecivet commented 8 months ago
    modtest always passes. This is due to not passing the module path
    to the program and does not produce errors correctly. After
    handling those errors some test cases start failing.
    Also, add a few tests

    there was resource (globalpackages) shared by each run of Port function. The resource
    needs to clean up after each run. Add funtionality to enable Fails
    option for test cases that assert Wharf port is failing. Also, add
    go_version option for the tests that specify a required go version to run
    the test. If the current running go version does not meet the required
    go version, tests will be skipped