Sha256: c2229614ae81c6b8d8bfb27786b446b0978e614d581e5ecf496b82e9742d7e2d

Contents?: true

Size: 1.6 KB

Versions: 3

Compression:

Stored size: 1.6 KB

Contents

Feature: Basic Kiosk Resource Operations
  In order to test and validate the basic operations of a resource in a kiosk
  As a kiosk client developer
  I want to be able to call a kiosk and get responses

  Note: Kiosk resource service calls always return a JSON map.
    Any exceptions thrown come from the infrastructure not working properly.

  Background:
    Given the kiosk found at 'http://localhost:9901/Toolshed'
      And the resource 'HelloWorldKiosk' in the kiosk

  Scenario: Basic List Call
    When the resource's list method is called
    Then the results include 'greeting' with value 'Hello World'

  Scenario: Error List Call
    When the resource's list method is called with input '{"attempt": "fail"}'
    Then the results include '_ERROR_' with value 'TEST ERROR'

  Scenario: Basic Read Call
    When the resource's read method is called with input '{"id": "4"}'
    Then the results include 'greeting' with value 'Hello Reader 4'

  Scenario: Basic Create Call
    When the resource's create method is called with input '{"box": "Top"}'
    Then the results include 'greeting' with value 'Hello Top'

  Scenario: Basic Update Call
    When the resource's update method is called with input '{"id": "4", "box": "Lambs"}'
    Then the results include 'greeting' with value 'Hello Lambs'

  Scenario: Basic Delete Call
    When the resource's delete method is called with input '{"id": "6"}'
    Then the results include 'status' with value 'ok'

  Scenario: Basic Custom Call
    When the resource's fix method is called with input '{"name": "Marty"}'
    Then the results include 'greeting' with value 'Hello Marty'

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
service_kiosk-0.5.6 examples/kiosk_mall/mall/kiosks/HelloWorldKiosk/features/basic-remote.feature
service_kiosk-0.5.5 examples/kiosk_mall/mall/kiosks/HelloWorldKiosk/features/basic-remote.feature
service_kiosk-0.5.4 examples/kiosk_mall/mall/kiosks/HelloWorldKiosk/features/basic-remote.feature