Skip to content

Commit ec52fba

Browse files
committed
SIVA-373 add mimetype testcases to documentation
1 parent 87d6eab commit ec52fba

File tree

1 file changed

+256
-2
lines changed

1 file changed

+256
-2
lines changed

docs/siva3/appendix/test_cases.md

Lines changed: 256 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1986,6 +1986,262 @@ All the files used in the tests can be found in [SiVa GitHub](https://github.com
19861986
* File: zip-bomb-package-zip-1gb-asics.asics
19871987

19881988

1989+
## MimetypeValidationIT.java
1990+
[Open file](https://github.com/open-eid/SiVa/tree/master/siva-parent/siva-test/src/test/java/ee/openeid/siva/integrationtest/MimetypeValidationIT.java)
1991+
1992+
1993+
**TestCaseID: Asice-mimetype-validation-1**
1994+
1995+
* TestType: Automated
1996+
* Requirement: [http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service](http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service)
1997+
* Title: ASICe container with valid mimetype.
1998+
* Expected Result: Validation report is returned without mimetype validation warnings.
1999+
* File: AsiceContainerValidMimetype.asice
2000+
2001+
2002+
**TestCaseID: Asice-mimetype-validation-2**
2003+
2004+
* TestType: Automated
2005+
* Requirement: [http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service](http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service)
2006+
* Title: Invalid ASICe container with mimetype as last in cointainer.
2007+
* Expected Result: Validation report is returned with mimetype validation warning "mimetype should be the first file in the container".
2008+
* File: AsiceContainerMimetypeAsLast.asice
2009+
2010+
2011+
**TestCaseID: Asice-mimetype-validation-3**
2012+
2013+
* TestType: Automated
2014+
* Requirement: [http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service](http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service)
2015+
* Title: Invalid ASICe container with deflated mimetype.
2016+
* Expected Result: Validation report is returned with mimetype validation warning "Container "mimetype" file must not be compressed".
2017+
* File: AsiceContainerMimetypeIsDeflated.asice
2018+
2019+
2020+
**TestCaseID: Asice-mimetype-validation-4**
2021+
2022+
* TestType: Automated
2023+
* Requirement: [http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service](http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service)
2024+
* Title: Invalid ASICe container without mimetype.
2025+
* Expected Result: Validation report is returned with mimetype validation warning "mimetype should be the first file in the container".
2026+
* File: AsiceContainerNoMimetype.asice
2027+
2028+
2029+
**TestCaseID: Asice-mimetype-validation-5**
2030+
2031+
* TestType: Automated
2032+
* Requirement: [http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service](http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service)
2033+
* Title: Invalid ASICe container mimetype filename with capital letter (Mimetype).
2034+
* Expected Result: Validation report is returned with mimetype validation warning "mimetype should be the first file in the container".
2035+
* File: AsiceContainerMimetypeWithCapitalLetter.asice
2036+
2037+
2038+
**TestCaseID: Asice-mimetype-validation-6**
2039+
2040+
* TestType: Automated
2041+
* Requirement: [http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service](http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service)
2042+
* Title: Invalid ASICe container, where mimetype filename is with extra space in the end ("mimetype ").
2043+
* Expected Result: Validation report is returned with mimetype validation warning "mimetype should be the first file in the container".
2044+
* File: AsiceContainerMimetypeFilenameWithExtraSpace.asice
2045+
2046+
2047+
**TestCaseID: Asice-mimetype-validation-7**
2048+
2049+
* TestType: Automated
2050+
* Requirement: [http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service](http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service)
2051+
* Title: Invalid ASICe container with extra byte in the beginning of the container.
2052+
* Expected Result: Validation report is returned with mimetype validation warning "mimetype should be the first file in the container".
2053+
* File: AsiceContainerMimetypeWithCapitalLetter.asice
2054+
2055+
2056+
**TestCaseID: Asice-mimetype-validation-8**
2057+
2058+
* TestType: Automated
2059+
* Requirement: [http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service](http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service)
2060+
* Title: ASICe container with invalid mimetype as "text/plain".
2061+
* Expected Result: Validation report is returned with mimetype validation warning "Container should have one of the expected mimetypes: "application/vnd.etsi.asic-e+zip", "application/vnd.etsi.asic-s+zip"".
2062+
* File: AsiceInvalidMimetypeAsText.asice
2063+
2064+
2065+
**TestCaseID: Bdoc-mimetype-validation-1**
2066+
2067+
* TestType: Automated
2068+
* Requirement: [http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service](http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service)
2069+
* Title: BDOC container with valid mimetype.
2070+
* Expected Result: Validation report is returned without mimetype validation warnings.
2071+
* File: BdocContainerValidMimetype.bdoc
2072+
2073+
2074+
**TestCaseID: Bdoc-mimetype-validation-2**
2075+
2076+
* TestType: Automated
2077+
* Requirement: [http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service](http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service)
2078+
* Title: Invalid BDOC container with mimetype as last.
2079+
* Expected Result: Validation report is returned with mimetype validation warning "mimetype should be the first file in the container".
2080+
* File: BdocContainerMimetypeAsLast.bdoc
2081+
2082+
2083+
**TestCaseID: Bdoc-mimetype-validation-3**
2084+
2085+
* TestType: Automated
2086+
* Requirement: [http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service](http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service)
2087+
* Title: Invalid BDOC container with deflated mimetype.
2088+
* Expected Result: Validation report is returned with mimetype validation warning "Container "mimetype" file must not be compressed".
2089+
* File: BdocContainerMimetypeIsDeflated.bdoc
2090+
2091+
2092+
**TestCaseID: Bdoc-mimetype-validation-4**
2093+
2094+
* TestType: Automated
2095+
* Requirement: [http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service](http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service)
2096+
* Title: Invalid BDOC container without mimetype.
2097+
* Expected Result: HTTP 400 is returned with error message "Document malformed or not matching documentType".
2098+
* File: BdocContainerNoMimetype.bdoc
2099+
2100+
2101+
**TestCaseID: Bdoc-mimetype-validation-5**
2102+
2103+
* TestType: Automated
2104+
* Requirement: [http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service](http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service)
2105+
* Title: Invalid BDOC container, where mimetype filename is with extra space in the end ("mimetype ").
2106+
* Expected Result: HTTP 400 is returned with error message "Document malformed or not matching documentType".
2107+
* File: BdocContainerMimetypeFilenameWithExtraSpace.bdoc
2108+
2109+
2110+
**TestCaseID: Bdoc-mimetype-validation-6**
2111+
2112+
* TestType: Automated
2113+
* Requirement: [http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service](http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service)
2114+
* Title: BDOC container with invalid mimetype as "application/zip".
2115+
* Expected Result: HTTP 400 is returned with error message "Document malformed or not matching documentType".
2116+
* File: BdocInvalidMimetypeAsZip.bdoc
2117+
2118+
2119+
**TestCaseID: Asics-mimetype-validation-1**
2120+
2121+
* TestType: Automated
2122+
* Requirement: [http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service](http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service)
2123+
* Title: ASICs container with valid mimetype and Tmp file inside.
2124+
* Expected Result: Validation report is returned without mimetype validation warnings.
2125+
* File: AsicsContainerValidMimetype.asics
2126+
2127+
2128+
**TestCaseID: Asics-mimetype-validation-2**
2129+
2130+
* TestType: Automated
2131+
* Requirement: [http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service](http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service)
2132+
* Title: ASICs container with valid mimetype and DDOC inside.
2133+
* Expected Result: Validation report is returned without mimetype validation warnings.
2134+
* File: Ddoc_as_AsicsContainerValidMimetype.asics
2135+
2136+
2137+
**TestCaseID: Asics-mimetype-validation-3**
2138+
2139+
* TestType: Automated
2140+
* Requirement: [http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service](http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service)
2141+
* Title: Invalid ASICs container with mimetype as last and Tmp file inside.
2142+
* Expected Result: Validation report is returned with mimetype validation warning "mimetype should be the first file in the container".
2143+
* File: AsicsContainerMimetypeAsLast.asics
2144+
2145+
2146+
**TestCaseID: Asics-mimetype-validation-4**
2147+
2148+
* TestType: Automated
2149+
* Requirement: [http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service](http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service)
2150+
* Title: Invalid ASICs container with mimetype as last and DDOC inside.
2151+
* Expected Result: Validation report is returned with mimetype validation warning "mimetype should be the first file in the container".
2152+
* File: Ddoc_as_AsicsContainerMimetypeAsLast.asics
2153+
2154+
2155+
**TestCaseID: Asics-mimetype-validation-5**
2156+
2157+
* TestType: Automated
2158+
* Requirement: [http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service](http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service)
2159+
* Title: Invalid ASICs container with deflated mimetype and Tmp file inside.
2160+
* Expected Result: Validation report is returned with mimetype validation warning "Container "mimetype" file must not be compressed".
2161+
* File: AsicsContainerMimetypeIsDeflated.asics
2162+
2163+
2164+
**TestCaseID: Asics-mimetype-validation-6**
2165+
2166+
* TestType: Automated
2167+
* Requirement: [http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service](http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service)
2168+
* Title: Invalid ASICs container with deflated mimetype and DDOC inside.
2169+
* Expected Result: Validation report is returned with mimetype validation warning "Container "mimetype" file must not be compressed".
2170+
* File: Ddoc_as_AsicsContainerMimetypeIsDeflated.asics
2171+
2172+
2173+
**TestCaseID: Asics-mimetype-validation-7**
2174+
2175+
* TestType: Automated
2176+
* Requirement: [http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service](http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service)
2177+
* Title: Invalid ASICs container without mimetype and Tmp file inside.
2178+
* Expected Result: Validation report is returned with mimetype validation warning "mimetype should be the first file in the container".
2179+
* File: AsicsContainerNoMimetype.asics
2180+
2181+
2182+
**TestCaseID: Asics-mimetype-validation-8**
2183+
2184+
* TestType: Automated
2185+
* Requirement: [http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service](http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service)
2186+
* Title: Invalid ASICs container without mimetype and DDOC inside.
2187+
* Expected Result: Validation report is returned with mimetype validation warning "mimetype should be the first file in the container".
2188+
* File: Ddoc_as_AsicsContainerNoMimetype.asics
2189+
2190+
2191+
**TestCaseID: Asics-mimetype-validation-9**
2192+
2193+
* TestType: Automated
2194+
* Requirement: [http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service](http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service)
2195+
* Title: Invalid ASICs container, where mimetype filename is with extra space in the end ("mimetype ").
2196+
* Expected Result: Validation report is returned with mimetype validation warning "mimetype should be the first file in the container".
2197+
* File: AsicsContainerMimetypeFilenameWithExtraSpace.asics
2198+
2199+
2200+
**TestCaseID: Asics-mimetype-validation-10**
2201+
2202+
* TestType: Automated
2203+
* Requirement: [http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service](http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service)
2204+
* Title: ASICs container with invalid mimetype as "application/xml".
2205+
* Expected Result: Validation report is returned with mimetype validation warning "Container should have one of the expected mimetypes: "application/vnd.etsi.asic-e+zip", "application/vnd.etsi.asic-s+zip"".
2206+
* File: AsicsInvalidMimetypeAsXml.asics
2207+
2208+
2209+
**TestCaseID: Edoc-mimetype-validation-1**
2210+
2211+
* TestType: Automated
2212+
* Requirement: [http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service](http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service)
2213+
* Title: Valid EDOC container with valid.
2214+
* Expected Result: Validation report is returned without mimetype validation warnings.
2215+
* File: EdocContainerValidMimetype.edoc
2216+
2217+
2218+
**TestCaseID: Edoc-mimetype-validation-2**
2219+
2220+
* TestType: Automated
2221+
* Requirement: [http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service](http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service)
2222+
* Title: Invalid EDOC container with mimetype as last in cointainer.
2223+
* Expected Result: Validation report is returned with mimetype validation warning "mimetype should be the first file in the container".
2224+
* File: EdocContainerValidMimetypeAsLast.edoc
2225+
2226+
2227+
**TestCaseID: Edoc-mimetype-validation-3**
2228+
2229+
* TestType: Automated
2230+
* Requirement: [http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service](http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service)
2231+
* Title: Invalid EDOC container without mimetype.
2232+
* Expected Result: Validation report is returned with mimetype validation warning "mimetype should be the first file in the container".
2233+
* File: EdocContainerNoMimetype.edoc
2234+
2235+
2236+
**TestCaseID: Adoc-mimetype-validation-1**
2237+
2238+
* TestType: Automated
2239+
* Requirement: [http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service](http://open-eid.github.io/SiVa/siva3/overview/#main-features-of-siva-validation-service)
2240+
* Title: Valid ADOC container with mimetype.
2241+
* Expected Result: Validation report is returned with mimetype validation warning "Container "mimetype" file must not contain "Extra fields" in its ZIP header".
2242+
* File: AdocContainerMimetypeWithExtraFields.adoc
2243+
2244+
19892245
## MonitoringIT.java
19902246
[Open file](https://github.com/open-eid/SiVa/tree/master/siva-parent/siva-test/src/test/java/ee/openeid/siva/integrationtest/MonitoringIT.java)
19912247

@@ -4308,8 +4564,6 @@ All the files used in the tests can be found in [SiVa GitHub](https://github.com
43084564
* Expected Result: Error is returned stating problem in document
43094565
* File: not relevant
43104566

4311-
**Attention! This test is disabled: ("SIVA-196")
4312-
43134567

43144568
## SoapGetDataFileReportIT.java
43154569
[Open file](https://github.com/open-eid/SiVa/tree/master/siva-parent/siva-test/src/test/java/ee/openeid/siva/soaptest/SoapGetDataFileReportIT.java)

0 commit comments

Comments
 (0)