REST is an orthogonal concern within the Broker. It should be possible for developers of the Broker to easily exclude REST tests from test runs whilst developing other parts of the Broker. To allow for this, the REST test suite should be separate.
Also many of the current tests are very repetitious in nature. Currently each model object is subjected to its own REST test merely testing that model attributes are available over REST, pointlessly retesting the same piece of common mechanism code over and over again. Such tests should be eliminated.
Tests that remain should focus on REST concerns such as:
- CRUD model access
- Model operations
- SASL and Preemptive Authentication