ocs-v1.feature 809 B

123456789101112131415161718192021222324
  1. Feature: ocs
  2. Background:
  3. Given using api version "1"
  4. Scenario: Default output is xml
  5. Given user "user0" exists
  6. And As an "user0"
  7. When sending "GET" to "/cloud/config"
  8. And the HTTP status code should be "200"
  9. And the Content-Type should be "text/xml; charset=UTF-8"
  10. Scenario: Get XML when requesting XML
  11. Given user "user0" exists
  12. And As an "user0"
  13. When sending "GET" to "/cloud/config?format=xml"
  14. And the HTTP status code should be "200"
  15. And the Content-Type should be "text/xml; charset=UTF-8"
  16. Scenario: Get JSON when requesting JSON
  17. Given user "user0" exists
  18. And As an "user0"
  19. When sending "GET" to "/cloud/config?format=json"
  20. And the HTTP status code should be "200"
  21. And the Content-Type should be "application/json; charset=utf-8"