blob: f954c3ac95ad326869d428111d91fd6e813f6941 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
*** Settings ***
Documentation Truststore merger test case scenarios
Library RequestsLibrary
Resource ./resources/trust-merger-keywords.robot
*** Test Cases ***
Trust Merger fails when file extension is invalid
[Tags] OOM-TRUST-STORE-MERGER
[Documentation] Run with invalid truststore extension env and expect error code
Run Trust Merger And Expect Error ${ENV_FILE_INVALID_FILE_EXTENSION} ${EXITCODE_CERTIFICATES_PATHS_VALIDATION_EXCEPTION}
Trust Merger fails when a variable is empty
[Tags] OOM-TRUST-STORE-MERGER
[Documentation] Run with empty truststore password path env and expect error code
Run Trust Merger And Expect Error ${ENV_FILE_EMPTY_PASSWORDS} ${EXITCODE_CERTIFICATES_PATHS_VALIDATION_EXCEPTION}
Trust Merger fails when truststore and passwords envs not provided
[Tags] OOM-TRUST-STORE-MERGER
[Documentation] Run with invalid empty envs and expect error code
Run Trust Merger And Expect Error ${ENV_FILE_EMPTY} ${EXITCODE_CONFIGURATION_EXCEPTION}
Trust Merger fails when list sizes are different
[Tags] OOM-TRUST-STORE-MERGER
[Documentation] Run with different truststore and password envs size and expect error code
Run Trust Merger And Expect Error ${ENV_FILE_INVALID_FILE_LIST_SIZE} ${EXITCODE_CONFIGURATION_EXCEPTION}
Trust Merger fails when truststore paths are invalid
[Tags] OOM-TRUST-STORE-MERGER
[Documentation] Run with invalid truststore path and expect error code
Run Trust Merger And Expect Error ${ENV_FILE_INVALID_TRUSTSTORE_PATHS} ${EXITCODE_TRUSTSTORE_FILE_FACTORY_EXCEPTION}
Trust Merger fails when password path is invalid
[Tags] OOM-TRUST-STORE-MERGER
[Documentation] Run with invalid password path and expect error code
Run Trust Merger And Expect Error ${ENV_FILE_INVALID_PASSWORD_PATHS} ${EXITCODE_PASSWORD_READER_EXCEPTION}
Trust Merger fails when password file pair is invalid
[Tags] OOM-TRUST-STORE-MERGER
[Documentation] Run with incorrect password env and expect error code
Run Trust Merger And Expect Error ${ENV_FILE_INVALID_PASSWORD} ${EXITCODE_TRUSTSTORE_LOAD_FILE_EXCEPTION}
Trust Merger fails when pem does not contain cert
[Tags] OOM-TRUST-STORE-MERGER
[Documentation] Run with empty pem truststore and expect error code
Run Trust Merger And Expect Error ${ENV_FILE_EMPTY_CERTS} ${EXITCODE_MISSING_TRUSTSTORE_EXCEPTIONSUCCESS}
Trust Merger fails when aliases are duplicated
[Tags] OOM-TRUST-STORE-MERGER
[Documentation] Run with duplicated aliases in truststores and expect error code
Run Trust Merger And Expect Error ${ENV_FILE_DUPLICATED_ALIASES} ${EXITCODE_ALIAS_CONFLICT_EXCEPTION}
Trust Merger merges successfully jks pem p12
[Tags] OOM-TRUST-STORE-MERGER
[Documentation] Run with valid env file and expect merged certs from jks, pem and p12
Run Trust Merger And Merge Truststore Files To Jks ${ENV_FILE_JKS_PEM_P12} ${EXITCODE_SUCCESS} ${JKS_TRUSTSTORE_MOUNT_PATH} ${TRUSTSTORE_JKS_PASS} ${JKS_TRUSTSTORE_EXPECTED_PATH}
Trust Merger merges successfully pem p12
[Tags] OOM-TRUST-STORE-MERGER
[Documentation] Run with valid env file and expect merged certs from pem and p12
Run Trust Merger And Merge Truststore Files To Pem ${ENV_FILE_PEM_P12} ${EXITCODE_SUCCESS} ${PEM_TRUSTSTORE_MOUNT_PATH} ${PEM_TRUSTSTORE_EXPECTED_PATH}
Trust Merger ends successfully with single truststore
[Tags] OOM-TRUST-STORE-MERGER
[Documentation] Run with one truststore in env file and expect code 0
Run Trust Merger And Merge Truststore Files To Jks ${ENV_FILE_SINGLE_TRUSTSTORE} ${EXITCODE_SUCCESS} ${JKS_TRUSTSTORE_MOUNT_PATH} ${TRUSTSTORE_JKS_PASS} ${TRUSTSTORE_JKS}
Trust Merger fails when file to copy does not exist
[Tags] OOM-TRUST-STORE-MERGER
[Documentation] Run with invalid extra optional env as a path to file and expect error code
Run Trust Merger And Expect Error ${ENV_FILE_INVALID_KEYSTORE_SOURCE_PATHS} ${EXITCODE_KEYSTORE_NOT_EXIST_EXCEPTION}
Trust Merger fails when only one extra optional env is set
[Tags] OOM-TRUST-STORE-MERGER
[Documentation] Run with empty extra optional env and expect code
Run Trust Merger And Expect Error ${ENV_FILE_EMPTY_KEYSTORE_DESTINATION_PATH} ${EXITCODE_CONFIGURATION_EXCEPTION}
Trust Merger's Copier successfully backs up files
[Tags] OOM-TRUST-STORE-MERGER
[Documentation] Run with valid env file and expect successfully backed up file
Run Trust Merger And Merge Truststore Files To Jks ${ENV_FILE_EXTRA_OPTIONAL_ENVS} ${EXITCODE_SUCCESS} ${JKS_KEYSTORE_MOUNT_PATH} ${KEYSTORE_JKS_PASS} ${JKSBAK_KEYSTORE_EXPECTED_PATH}
Trust Merger's Copier successfully copies file
[Tags] OOM-TRUST-STORE-MERGER
[Documentation] Run with valid env file and expect successfully copied file
Run Trust Merger And Merge Truststore Files To Jks ${ENV_FILE_EXTRA_OPTIONAL_ENVS} ${EXITCODE_SUCCESS} ${JKS_KEYSTORE_MOUNT_PATH} ${KEYSTORE_JKS_PASS} ${JKS_KEYSTORE_EXPECTED_PATH}
|