You are on page 1of 4

Test_specification_Integ_API

Test specification Integration Test API

TC-ID Testcase Description Manual test steps


TXR-2059 INT_DGCG_upload_dsc Upload a DSC of a country Step Input/Data Expected Results
1 create a valid dsc
2 upload dsc dsc is in trustlist
TXR-2060 INT_DGCG_neg_upload_dsc_with_unauthorize Upload a DSC of a country with an unauthorized client Step Input/Data Expected Results
d_client_certificate certificate. The response should be with the status code 401 1 create a valid DSC
Unauthorized 2 create custom authentication certificate
3 upload DSC with custom client certificate Error 401 Unauthorized
TXR-2061 INT_DGCG_neg_upload_dsc_with_mismatched Upload a DSC signed with CSCA certificate of a different Step Input/Data Expected Results
_Certificates country. The response code should be 400 1 create a valid DSC for another country
2 upload DSC Error 400 Bad Request
TXR-2062 INT_DGCG_neg_upload_dsc_wrong_format Upload a DSC of a country with the wrong format to trigger Error Step Input/Data Expected Results
Code 406 1 upload text instead of DSC Error 406 Content is not acceptable
TXR-2063 INT_DGCG_neg_upload_dublicate_dsc Upload a DSC of a country with a UUID which is already in the Step Input/Data Expected Results
database. The API should respond with the error Code 409 1 create DSC
2 upload DSC DSC is in trustlist
3 upload DSC (again) Error 409 Conflict
TXR-2065 INT_DGCG_delete_a_dsc delete DSC of a country Step Input/Data Expected Results
1 create a valid DSC
2 upload DSC DSC is in trustlist
3 delete public key created public key is deleted in trustlist
TXR-2066 INT_DGCG_neg_delete_a_dsc_not_in_databas delete a dsc of a country which is not in the database Step Input/Data Expected Results
e 1 create a valid DSC
2 sign DSC with UPLOAD certificate
3 delete DSC created error 400
TXR-2069 INT_DGCG_neg_delete_a_dsc_with_unauthoriz delete a dscof a country with a client certificate which is not Step Input/Data Expected Results
ed_client_certificate authorized. The Error code should be 401 "unauthorized" 1 get trustlist of DSCs
2 delete dsc of the own country Http Error 401 Unauthorized
TXR-2070 INT_DGCG_neg_delete_a_dsc_with_client_cert delete a DSC of another country with the client certificate not Step Input/Data Expected Results
ificate_of_another_country authorized to change DSCs of that country. The error Code 1 get trustlist of type "DSC" trustlist with all DSCs
should be 403 "Forbidden" 2 get random dsc from trustlist from another
country
3 delete dsc from another country http error 403 forbidden
TXR-2071 INT_DGCG_get_trustlist Get all trusted certificates Step Input/Data Expected Results
1 create a valid DSC
2 sign DSC with UPLOAD certificate
3 check that DSC is not in trustlist DSC is not in trustlist
4 upload DSC
5 check stat DSC is in trustlist DSC is in trustlist
6 delete DSC created
7 check that DSC is not in trustlist DSC is not in trustlist
TXR-2072 INT_DGCG_get_trustlist_with_specific_type Get all trusted public keys of a specific type Step Input/Data Expected Results
1 get the trustList just with a specific typetype = CSCA only certificates with that type should be present
or type =
UPLOAD
or type = DSC
TXR-2073 INT_DGCG_get_trustlist_with_specific_type_an Get trusted public keys with a specific type (for example CSCA) Step Input/Data Expected Results
d_country and country. 1 get trustList with spedific type and country type=csca only the trustList data with the type and country
country=de is present
TXR-2860 INT_DGCG_upload_valid_Rule Upload a valid invalidation Rule Step Input/Data Expected Results
1 create a valid Invalidation Rule

Testspec_DGC_Integration_API_Rel_1.1_V1.00.xlsx Seite 1
Test_specification_Integ_API

2 upload Rule Status Code 200


3 check that Rule is in Rulelist Rule is in Rulelist
4 delete Rule created
TXR-2861 INT_DGCG_neg_upload_rule_with_unauthentic Upload a Rule with an unauthenticated certificate. There should Step Input/Data Expected Results
ated_certificate be an error and the Response Code should be 401. 1 create a valid Invalidation Rule
2 upload Rule with unauthenticated Response should have status code 401
certificate
3 check that Rule is not in Rulelist Rule should not be in Rulelist
TXR-2862 INT_DGCG_neg_upload_rule_with_authenticati Upload a Rule with a NBTLS certificate of another country. Step Input/Data Expected Results
on_certificate_of_another_country There should be an error and the status code should be 400. 1 create a valid Invalidation Rule
2 upload Rule with certificate from another Error with status Code 400
country
3 check that Rule is not in Rulelist Rule is not in Rulelist
TXR-2863 INT_DGCG_update_Rule_to_a_new_version Update a Rule created to a new version. Step Input/Data Expected Results
1 create a valid Invalidation Rule
2 upload Rule
3 update Rule to new version Status Code 200
4 get Rules of own Country
5 check that Rule has the new version rule has the new Version
6 delete rule created
TXR-2864 INT_DGCG_neg_update_Rule_with_lower_vers Update a Rule with a Rule lower than the current version. There Step Input/Data Expected Results
ion_than_the_old_rule should be an error. 1 create a valid Invalidation Rule
2 upload Rule
3 update Rule to new version with lower Response Status Code 400
version number
4 delete Rule created
TXR-2865 INT_DGCG_neg_update_Rule_with_version_no Update a Rule without following the semantic versioning scheme Step Input/Data Expected Results
t_using_semver (e.g. 1.3 instead of 1.3.0) 1 create a valid Invalidation Rule
2 upload Rule
3 update Rule with version in wrong format Response Status Code 400
4 delete Rule created
TXR-2866 INT_DGCG_get_list_of_onboarded_countries Get all onboarded countries. Should have at least the own Step Input/Data Expected Results
country in the list. 1 get all onboarded countries Response Status Code 200
2 check that own country is in onboared Own Country is in the list
countries list
TXR-2867 INT_DGCG_download_all_Rules Download Rules of all Countries. Step Input/Data Expected Results
1 get all onboarded countries
2 download rules of all countries All Responses have status code 200
TXR-2868 INT_DGCG_neg_get_list_of_onboarded_countri Get all onboarded countries with unauthenticated certificate. Step Input/Data Expected Results
es_with_unauthenticated_certificate Should lead to an error. 1 create custom authentication certificate
2 get all onboarded countries with custom Response Status Code 400
certificate
TXR-2869 INT_DGCG_download_Rules_with_unauthentic Get Rules from any country with an unauthenticated NBTLS. Step Input/Data Expected Results
ated_certificate Should lead to an error. 1 get all onboarded countries
2 create custom authentication certificate
3 download rules of all countries with custom all Responses had the status code 400
certificate
TXR-2870 INT_DGCG_delete_invalidation_Rule Delete an Invalidation Rule. This should be no problem as Step Input/Data Expected Results
Invalidation Rules can be deleted. 1 create a valid Invalidation Rule
2 upload Rule
3 check that Rule is in Rulelist Rule is in Rulelist
4 delete Rule created Response had no errors
5 check that Rule is not in Rulelist Rule is not in Rulelist

Testspec_DGC_Integration_API_Rel_1.1_V1.00.xlsx Seite 2
Test_specification_Integ_API

TXR-2871 INT_DGCG_neg_delete_acceptance_Rule Delete an Acceptance Rule. This should be an error because Step Input/Data Expected Results
Acceptance Rules cannot be deleted. 1 get acceptance Rule from Rule list of own
country
2 delete Rule Response has an error
3 check that Rule is in Rulelist Rule is in Rulelist
TXR-2872 INT_DGCG_neg_delete_invalidation_Rule_of_a Delete an Invalidation Rule of another country. This should not Step Input/Data Expected Results
nother_country be possible. 1 create a valid Invalidation Rule
2 upload Rule
3 check that Rule is in Rulelist Rule is in Rulelist
4 delete Rule created with certificate of Response should have an error status code
another country
5 check that Rule is in Rulelist Rule is in Rulelist
6 delete Rule
TXR-2873 INT_DGCG_neg_delete_invalidation_Rule_with Delete an Invalidation Rule with unauthenticated certificate. This Step Input/Data Expected Results
_unauthenticated_NBTLS should not be possible. 1 create a valid Invalidation Rule
2 upload Rule
3 check that Rule is in Rulelist rule is in Rulelist
4 create custom authentication certificate
5 delete Rule created with custom client response status code should be an error status
certificate code
6 check that Rule is in Rulelist Rule is in Rulelist
7 delete Rule created
TXR-2874 INT_DGCG_delete_Rule_not_in_database Step Input/Data Expected Results
1 delete Rule not in rulelist Response status code should be an error status
code
TXR-2875 INT_DGCG_neg_upload_Rule_with_uploader_c Country attribute in a Rule should be like "en". Otherwise there Step Input/Data Expected Results
ountry_in_wrong_format should be an error 1 create a valid Invalidation Rule
2 change countrycode to a wrong format
3 upload Rule response Code should be 400
4 check that Rule is not in Rulelist Rule is not in Rulelist
TXR-2876 INT_DGCG_neg_upload_rule_with_wrong_uplo Upload a Rule from another country. There should be an error. Step Input/Data Expected Results
ader_country 1 create a valid Invalidation Rule
2 change countrycode to a wrong country
3 upload Rule Response Code should be 400
4 check that Rule is not in Rulelist
TXR-2877 INT_DGCG_neg_upload_rule_with_ValidFrom_l Upload a Rule which is valid ealier than 48h. There should be an Step Input/Data Expected Results
ess_than_48h_in_the_future error. 1 create a valid Invalidation Rule
2 change ValidFrom less than "48"h
3 upload Rule Error with the http status code "400"
4 check that Rule is not in Rulelist
TXR-2878 INT_DGCG_neg_upload_rule_with_ValidTo_les Upload a Rule which is valid less than 72h. There should be an Step Input/Data Expected Results
s_than_72h_in_the_future error. 1 create a valid Invalidation Rule
2 change ValidTo less than "72"h
3 upload Rule Error with http status code "400"
4 check that Rule is not in Rulelist Rule is not in Rulelist
TXR-2879 INT_DGCG_neg_upload_rule_with_description_ A Rule must have a description. An empty description should be Step Input/Data Expected Results
not_available an error. 1 create a valid Invalidation Rule
2 remove description of the Rule
3 upload Rule Response http status code should be "400"
4 check that Rule is not in Rulelist Rule is not in Rulelist
TXR-2880 INT_DGCG_neg_upload_rule_with_description_ A Rule must have a description in english. Only having a Step Input/Data Expected Results
filled_with_one_language_without_english description in another language should be an error 1 create a valid Invalidation Rule

Testspec_DGC_Integration_API_Rel_1.1_V1.00.xlsx Seite 3
Test_specification_Integ_API

2 use only german in the description of the


Rule
3 upload Rule Response should have status code "400"
4 check that Rule is not in Rulelist Rule should not be in Rulelist
TXR-2881 INT_DGCG_neg_upload_rule_with_description_ Languages of a Rule should have the formatting like "en" or "en- Step Input/Data Expected Results
having_an_invalid_language uk". Otherwise there should be an error. 1 create a valid Invalidation Rule
2 add language "en-" in description
3 upload Rule Response http status code should be "400"
4 check that Rule is not in Rulelist Rule is not in Rulelist
TXR-2882 INT_DGCG_neg_upload_rule_which_version_d Rule Version should be created with semantic versioning (like Step Input/Data Expected Results
oesn't_follow_semVer "1.2.3" and not like "1.2"). Otherwise there should be an error. 1 create a valid Invalidation Rule
2 set version of the Rule to "10"
3 upload Rule Response status code should be "400"
4 check that Rule is not in Rulelist Rule should not be in Rulelist
TXR-2883 INT_DGCG_neg_upload_rule_which_schema_v Rule Schema Version should be created with semantic Step Input/Data Expected Results
ersion_doesn't_follow_semVer versioning (like "1.2.3" and not like "1.2"). Otherwise there 1 create a valid Invalidation Rule
should be an error. 2 set version of the schema to "10"
3 Upload Rule Response http status code should be "400"
4 check that Rule is not in Rulelist Rule is not in Rulelist
TXR-2884 INT_DGCG_delete_Rule_automaticlly A Rule should be deleted after it is not valid anymore. Step Input/Data Expected Results
1 create a valid Invalidation Rule
This Test cannot be automated because a Rule should be valid 2 upload Rule Response doesn't have errors
for at least 5 days.
3 wait for 5 days Rule is no longer in Rulelist
TXR-2885 INT_DGCG_get_all_valuesets Get All Valuesets. Response code should be 200. Step Input/Data Expected Results
1 get all valuesets Check that Response is not Empty and has
Response Code 200
TXR-2886 INT_DGCG_get_specifig_Valueset Get data of a specific Valueset. The test first downloads all Step Input/Data Expected Results
Valuesets and then checks if it can download the specirif 1 get all valuesets
Valueset. 2 get details of first Valueset in list Response is not empty and has no errors
TXR-2887 INT_DGCG_get_valueset_with_unauthenticated Step Input/Data Expected Results
_NBTLS 1 create custom authentication certificate
2 get all valuesets with custom certificate Response http status code should be "401"

Testspec_DGC_Integration_API_Rel_1.1_V1.00.xlsx Seite 4

You might also like