machinelearning.feature 736 B

123456789101112131415161718192021
  1. # language: en
  2. @machinelearning
  3. Feature: Amazon Machine Learning
  4. I want to use Amazon Machine Learning
  5. Scenario: Predict API endpoint
  6. When I attempt to call the "Predict" API without the "PredictEndpoint" parameter
  7. Then the request should fail
  8. Scenario: Predict API endpoint
  9. When I attempt to call the "Predict" API with "PredictEndpoint" parameter
  10. Then the hostname should equal the "PredictEndpoint" parameter
  11. Scenario: Predict API endpoint error handling
  12. When I attempt to call the "Predict" API with JSON:
  13. """
  14. { "MLModelId": "fake-id", Record: {}, PredictEndpoint: "realtime.machinelearning.us-east-1.amazonaws.com" }
  15. """
  16. Then the error code should be "PredictorNotMountedException"