cybertk / cybertk/abao

Test with POST data

Open
#149 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
CoffeeScript
Stars
352
Forks
57
PR merge metrics
No merged PRs in 30d

Description

I'm trying to test a simple API that takes an email in the POST data and return something else.
So I defined my raml file like this:

```
/abao-check/:
post:
body:
application/x-www-form-urlencoded:
example: |
{"email": "email@mail.com"}

responses:
201:
body:
application/json:
schema: |
{
"$schema": "http://json-schema.org/draft-03/schema",
"type": "object",
"required": ["email"],
"properties": {"email": {"type": "string"}}
}
```

but no matter what I do it doesn't seem it's never putting any body in request.POST.
Any idea why?

Am I missing something obvious?
by the way I think it would be great to have some examples of RAML files to test in this project, would make it easy to see what it can be done..
Thanks a lot!

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue provides a RAML POST definition and reports that the request body is absent from request.POST. Start by reproducing this form-data request and trace how the tool handles the declared POST body; done means identifying whether the RAML or request handling is responsible and confirming the expected behavior with a test or example.

Written by the indexing model from the issue text.

Assessment

Domain
api, testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.