Fix HTTPMicro POST: attach content to request. Validate type.

This commit is contained in:
Daniel Nichter
2012-08-10 11:00:26 -06:00
parent 70c295bc0a
commit cdc51df9e6
4 changed files with 61 additions and 3 deletions

View File

@@ -174,6 +174,27 @@ ok(
"Newline stripped from OS"
);
# #############################################################################
# Validate items
# #############################################################################
my $versions = $vc->get_versions(
items => {
'Foo' => {
item => 'Foo',
type => 'perl_variable',
vars => [],
},
},
);
is_deeply(
$versions,
{},
"perl_variable is not a valid type"
);
# #############################################################################
# Done.
# #############################################################################