Code Monkey home page Code Monkey logo

apispots-bdd's People

Contributors

muescha avatar xrysanthos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

apispots-bdd's Issues

Trouble configuring on OS X

Chef --

I love this project, but I'm having trouble configuring this for use on OS X. I'm a newbie to Docker, which is probably the issue.

It appears I can get the app running in a Docker VM, but I have no idea how to find it in my browser. I can find other Docker apps in my browser but this one is elusive.

Are there any special OS X instructions? What LOG information can I attach that will help you help me?

Thanks in advance.

/Hunt

api spot service do not start

Followed the instruction on getting started page,
parag@parag1:~$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
apispots/bdd-api-testing latest 90f79be615a1 12 weeks ago 550.2 MB

docker run -d -p 3000:3000 --name="apispots-bdd" apispots/bdd-api-testing

docker logs show following error -

docker logs -f apispots-bdd

/app/node_modules/hapi/lib/index.js:5
const Server = require('./server');
^^^^^
SyntaxError: Use of const in strict mode.
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/app/rest/services/BootstrapService.js:11:12)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)

Cannot execute test we invoked by rest service but workd on portal

  1. When is execute test to check weather using portal http://192.168.1.92:3000/docs we get right output but when executed using curl it as follows -

parag@parag1:~/dev/test$ curl -i -F [email protected] -F tags=%40dev http://localhost:3000/tests/run

HTTP/1.1 100 Continue

HTTP/1.1 400 Bad Request
content-type: application/json; charset=utf-8
cache-control: no-cache
content-length: 160
Date: Sat, 11 Jun 2016 16:35:04 GMT
Connection: keep-alive

{"statusCode":400,"error":"Bad Request","message":"child "format" fails becaus e ["format" is required]","validation":{"source":"payload","keys":["format"]}}

the following feature file (taken from project website) was used-

Feature: OpenWeatherMap API - Current weather data

As a client of the OpenWeatherMap API
I want to run tests
In order to validate 'Current weather data' operations

Background:
Given a "REST" API definition at "http://api.openweathermap.org/data/2.5"

Scenario: Get current weather data for one location and by city name

Given endpoint "/weather" and method "get"
And request query param "q" equals "London,UK"
And request type "application/json"
When the request is executed
Then response status is "ok"

response on website
I want to run tests
In order to validate 'Current weather data' operations

Scenario: Get current weather data for one location and by city name
Given a "REST" API definition at "http://api.openweathermap.org/data/2.5"
Given endpoint "/weather" and method "get"
And request query param "q" equals "London,UK"
And request type "application/json"
When the request is executed
Then response status is "ok"

1 scenario (1 passed)
6 steps (6 passed)
0m00.047s

Bute

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.