Skip to content

Commit

Permalink
Remove non-compiling test code.
Browse files Browse the repository at this point in the history
Default parameter handling still needs to be implemented for whole-body parameters.
  • Loading branch information
s-ludwig committed Mar 25, 2017
1 parent 2b1ac44 commit 5e5aefd
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions tests/rest/source/app.d
Original file line number Diff line number Diff line change
Expand Up @@ -588,24 +588,6 @@ void runTests()
auto answer = api.postConcatBody(Example6API.FooType(42, "fortySomething", 51.42));
assert(answer == expected);
}

// suppling the whole body (default parameter)
{
// First we make sure parameters are transmitted via query.
auto res = requestHTTP("http://127.0.0.1:8080/example6_api/concat_body2",
(scope r) {
import vibe.data.json;
r.method = HTTPMethod.POST;
Json obj = serializeToJson(Example6API.FooType(42, "fortySomething", 51.42));
r.writeJsonBody(obj);
});

assert(res.statusCode == 200);
assert(res.bodyReader.readAllUTF8() == `"`~expected~`"`);
// Then we check that both can communicate together.
auto answer = api.postConcatBody2(Example6API.FooType(42, "fortySomething", 51.42));
assert(answer == expected);
}
}
}

Expand Down

0 comments on commit 5e5aefd

Please sign in to comment.