autotest/autotest-docker — pull request #93 by xhe123 (2014-04-22 10:51:59+00:00)
Title: Negative test for docker run

Test output of docker run command with invalid charactors

A. Run a container using invalid charactor in "docker run [OPTIONS] IMAGE [COMMAND] [ARG...] "
A1. subtest-option: the invalid charactor occurs in [OPTIONS]
1a. the invalid charactor occurs in parameter
(e.g. -b). In fact, '-b' is invalid.
1b. the invalid charactor occurs in parameter value
(e.g. -p 10.66.13.175:8000:9900).In fact '-p' is available, but behind value is invalid.
A2. subtest-image: the invalid charactor occurs in IMAGE
2a. the image name are not allowed, It contains the charactors which are not belong to [a-z-0-9_.]
2b. the image name are avalibled, but It's not existing in docker repo
A3. subtest-command:the invalid charactor occurs in [COMMAND]
3a. the command parameter is invalid.(e.g. -@, -^)
3b. the command parameter is availble, but the behind value is invalid.
A4. subtest-arg: the invalid charactor occurs in [ARG...]
4a. the arg option is invalid
4b. the arg option is available, but the behind value is invalid
B. Execute docker run command, different subtest has different subargs and subargs order.
C. Check test result:
What we expected is the all of the test results are failed in both *a. and *b.
B1. check subtest items, what we expected is the all items of subtest are failed.
B2. check the all subtests, what we expected is all subtests are failure.
D. Clean the test environment and remove the container generated in testing.