blob: 21323d8770a8330faa64fd806e63e30fd31912d7 (
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
|
*** 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 ${INVALID_ENV_FILE_EXTENSION} 1
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 ${INVALID_ENV_FILE_EMPTY_PASSWORDS} 1
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 ${INVALID_ENV_FILE_EMPTY} 2
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 ${INVALID_ENV_FILE_LIST_SIZE} 2
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 ${INVALID_ENV_FILE_TRUSTSTORE_PATHS} 3
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 ${INVALID_ENV_FILE_PASSWORD_PATHS} 4
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 ${INVALID_ENV_FILE_PASSWORD} 7
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 ${INVALID_ENV_FILE_EMPTY_CERTS} 9
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 ${INVALID_ENV_FILE_DUPLICATED_ALIASES} 10
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 ${VALID_ENV_FILE_JKS_PEM_P12} 0 ${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 ${VALID_ENV_FILE_PEM_P12} 0 ${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 ${VALID_ENV_FILE_SINGLE_TRUSTSTORE} 0 ${JKS_TRUSTSTORE_MOUNT_PATH} ${TRUSTSTORE_JKS_PASS} ${TRUSTSTORE_JKS}
|