Class FullTestSuite


  • public class FullTestSuite
    extends Object
    A full apiman test suite. Run this against an empty apiman installation as a smoke test. The suite will do the following:
     1) Global configuration
         a) Add policy definitions
         b) Add role definitions
         c) Create a Gateway
     2) Create a Test organization
     3) Add two Plans (Gold, Silver)
     4) Add an "Echo" API
     5) Create a client
     6) Create a contract from the client to the API via the Gold plan
     7) Create a contract from the client to the API via the Silver plan
     8) Publish and Register the API and client
     9) Send requests to the gateway
     
    The following are pre-requisites for this test suite:
     1) apiman must be running :)
     2) a valid user must exist with admin privs (role = apiadmin)
     3) no data exists yet in apiman (empty database)
     4) the echo REST API must be running somewhere (can be found in apiman-quickstarts)
     
    Author:
    eric.wittmann@redhat.com
    • Constructor Detail

      • FullTestSuite

        public FullTestSuite()
    • Method Detail

      • main

        public static void main​(String[] args)
                         throws Exception
        The test suite main entry point.
        Parameters:
        args -
        Throws:
        Exception