Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use translib's new api-tests app in REST gotest #52

Merged
merged 1 commit into from
Jul 15, 2020

Commits on Jun 29, 2020

  1. Use translib's new api-tests app in REST gotest

    1) Modified ProcessXXX testcases to use new api-tests app instead of ACL
    app. This allows running end-to-end positive and negative tests without
    depending on db state and ACL logic. Added few more test cases.
    
    2) Added a new tool rest-gotest.sh to run REST server tests from source
    or already built test binary. Can be used with tparse or gotestsum too.
    
    rest-gotest.sh               /* run all tests from source */
    rest-gotest.sh -bin          /* run already built test binary */
    rest-gotest.sh -run Process  /* run only ProcessXXX tests */
    rest-gotest.sh -bin -json | tparse
    gotestsum -f testname --raw-command -- rest-gotest.sh -json
    
    Signed-off-by: Sachin Holla <sachin.holla@broadcom.com>
    sachinholla committed Jun 29, 2020
    Configuration menu
    Copy the full SHA
    d65ef8a View commit details
    Browse the repository at this point in the history