2020-05-29 17:01:46 +08:00
*** Settings ***
Force Tags tsg-ui settings Decryption Profile
Resource ../../../03-Variable/bifangapivariable.txt
2020-05-29 17:08:22 +08:00
Resource ../../../02-Keyword/tsg_ui/setting/Settings.robot
2020-05-29 17:01:46 +08:00
Library OperatingSystem
*** Test Cases ***
2020-12-29 14:02:57 +08:00
CreateDecryptionProfileNameMinSize
[Tags] PositiveTestCase name Settings DecryptionProfile
2020-05-29 17:01:46 +08:00
${dict} Create Dictionary Common Name=1 Issuer=1 Self-signed=1 Expiry Date=1 EV Certificat=1
... Certificate Transparency=1 Mutual Authentication=1 On Protocol Errors=1 Certificate Pinning=1 Certificate Not Installed=1 Mirror Client Versions=1
... Allow HTTP/2=1
2020-12-29 14:02:57 +08:00
CreateDecryptionProfile 1 name ${dict}
2020-12-07 18:15:14 +08:00
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span
2020-08-18 18:02:07 +08:00
Delete
2020-12-29 14:02:57 +08:00
CreateDecryptionProfileNameMaxSize
[Tags] PositiveTestCase name Settings DecryptionProfile
${dict} Create Dictionary Common Name=1 Issuer=1 Self-signed=1 Expiry Date=1 EV Certificat=1
... Certificate Transparency=1 Mutual Authentication=1 On Protocol Errors=1 Certificate Pinning=1 Certificate Not Installed=1 Mirror Client Versions=1
... Allow HTTP/2=1
CreateDecryptionProfile CreateDecryptionProfileNameMaxSizeCreateDecryptionProfileNameMaxSizeCreateDecryptionProfileNameMaxSizeCreateDecryptionProfileNam name ${dict}
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span
Delete
CreateDecryptionProfileAllOpen
[Tags] PositiveTestCase AllOpen Settings DecryptionProfile
${dict} Create Dictionary Common Name=1 Issuer=1 Self-signed=1 Expiry Date=1 EV Certificat=1
... Certificate Transparency=1 Mutual Authentication=1 On Protocol Errors=1 Certificate Pinning=1 Certificate Not Installed=1 Mirror Client Versions=1
... Allow HTTP/2=1
CreateDecryptionProfile lyf-test-1 name ${dict}
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span
Delete
CreateDecryptionProfileAllClose
[Tags] PositiveTestCase AllClose Settings DecryptionProfile
2020-05-29 17:01:46 +08:00
${dict} Create Dictionary Common Name=0 Issuer=0 Self-signed=0 Expiry Date=0 EV Certificat=0e
... Certificate Transparency=0 Mutual Authentication=0 On Protocol Errors=0 Certificate Pinning=0 Certificate Not Installed=0 Mirror Client Versions=0
... Allow HTTP/2=0
2020-12-29 14:02:57 +08:00
CreateDecryptionProfile lyf-test-2 name ${dict}
2020-12-07 18:15:14 +08:00
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span
2020-08-18 18:02:07 +08:00
Delete
2020-12-29 14:02:57 +08:00
CreateDecryptionProfileFail-closeAllOpen
[Tags] PositiveTestCase AllOpen Fail-close Settings DecryptionProfile
2020-05-29 17:01:46 +08:00
${dict} Create Dictionary Common Name=1 Issuer=1 Self-signed=1 Expiry Date=1 EV Certificat=1
... Certificate Transparency=1 Mutual Authentication=1 On Protocol Errors=1 Certificate Pinning=1 Certificate Not Installed=1 Mirror Client Versions=1
... Allow HTTP/2=1
2020-12-29 14:02:57 +08:00
CreateDecryptionProfile lyf-test-3 name ${dict} fail1=Fail-close
2020-12-07 18:15:14 +08:00
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span
2020-08-18 18:02:07 +08:00
Delete
2020-12-29 14:02:57 +08:00
CreateDecryptionProfilePass-throughAllOpen
[Tags] PositiveTestCase AllOpen Pass-through Settings DecryptionProfile
2020-05-29 17:01:46 +08:00
${dict} Create Dictionary Common Name=1 Issuer=1 Self-signed=1 Expiry Date=1 EV Certificat=1
... Certificate Transparency=1 Mutual Authentication=1 On Protocol Errors=1 Certificate Pinning=1 Certificate Not Installed=1 Mirror Client Versions=1
... Allow HTTP/2=1
2020-12-29 14:02:57 +08:00
CreateDecryptionProfile lyf-test-3 name ${dict} fail1=Pass-through
2020-12-07 18:15:14 +08:00
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span
2020-08-18 18:02:07 +08:00
Delete
2020-12-29 14:02:57 +08:00
CreateDecryptionProfileAllCloseSSLv3.0
[Tags] PositiveTestCase AllClose SSLv3.0 Settings DecryptionProfile
2020-05-29 17:01:46 +08:00
${dict} Create Dictionary Common Name=0 Issuer=0 Self-signed=0 Expiry Date=0 EV Certificat=0
... Certificate Transparency=0 Mutual Authentication=0 On Protocol Errors=0 Certificate Pinning=0 Certificate Not Installed=0 Mirror Client Versions=0
... Allow HTTP/2=0
2020-12-29 14:02:57 +08:00
CreateDecryptionProfile lyf-test-5 name ${dict} min1=SSLv3.0 max1=SSLv3.0
2020-12-07 18:15:14 +08:00
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span
2020-08-18 18:02:07 +08:00
Delete
2020-12-29 14:02:57 +08:00
CreateDecryptionProfileAllCloseTLSv1.0
[Tags] PositiveTestCase AllClose TLSv1.0 Settings DecryptionProfile
2020-05-29 17:01:46 +08:00
${dict} Create Dictionary Common Name=0 Issuer=0 Self-signed=0 Expiry Date=0 EV Certificat=0
... Certificate Transparency=0 Mutual Authentication=0 On Protocol Errors=0 Certificate Pinning=0 Certificate Not Installed=0 Mirror Client Versions=0
... Allow HTTP/2=0
2020-12-29 14:02:57 +08:00
CreateDecryptionProfile lyf-test-6 name ${dict} min1=TLSv1.0 max1=TLSv1.0
2020-12-07 18:15:14 +08:00
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span
2020-08-18 18:02:07 +08:00
Delete
2020-12-29 14:02:57 +08:00
CreateDecryptionProfileAllCloseTLSv1.1
[Tags] PositiveTestCase AllClose TLSv1.1 Settings DecryptionProfile
2020-05-29 17:01:46 +08:00
${dict} Create Dictionary Common Name=0 Issuer=0 Self-signed=0 Expiry Date=0 EV Certificat=0
... Certificate Transparency=0 Mutual Authentication=0 On Protocol Errors=0 Certificate Pinning=0 Certificate Not Installed=0 Mirror Client Versions=0
... Allow HTTP/2=0
2020-12-29 14:02:57 +08:00
CreateDecryptionProfile lyf-test-7 name ${dict} min1=TLSv1.1 max1=TLSv1.1
2020-12-07 18:15:14 +08:00
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span
2020-08-18 18:02:07 +08:00
Delete
2020-12-29 14:02:57 +08:00
CreateDecryptionProfileAllCloseTLSv1.2
[Tags] PositiveTestCase AllClose TLSv1.2 Settings DecryptionProfile
2020-05-29 17:01:46 +08:00
${dict} Create Dictionary Common Name=0 Issuer=0 Self-signed=0 Expiry Date=0 EV Certificat=0
... Certificate Transparency=0 Mutual Authentication=0 On Protocol Errors=0 Certificate Pinning=0 Certificate Not Installed=0 Mirror Client Versions=0
... Allow HTTP/2=0
2020-12-29 14:02:57 +08:00
CreateDecryptionProfile lyf-test-8 name ${dict} min1=TLSv1.2 max1=TLSv1.2
2020-12-07 18:15:14 +08:00
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span
2020-08-18 18:02:07 +08:00
Delete
2020-12-29 14:02:57 +08:00
CreateDecryptionProfileAllCloseTLSv1.3
[Tags] PositiveTestCase AllClose TLSv1.3 Settings DecryptionProfile
2020-05-29 17:01:46 +08:00
${dict} Create Dictionary Common Name=0 Issuer=0 Self-signed=0 Expiry Date=0 EV Certificat=0
... Certificate Transparency=0 Mutual Authentication=0 On Protocol Errors=0 Certificate Pinning=0 Certificate Not Installed=0 Mirror Client Versions=0
... Allow HTTP/2=0
2020-12-29 14:02:57 +08:00
CreateDecryptionProfile lyf-test-9 name ${dict} min1=TLSv1.3 max1=TLSv1.3
2020-12-07 18:15:14 +08:00
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span
2020-08-18 18:02:07 +08:00
Delete
2020-12-29 14:02:57 +08:00
CreateDecryptionProfileCertCKSAllClose
[Tags] PositiveTestCase Settings DecryptionProfile
2020-05-29 17:01:46 +08:00
${dict} Create Dictionary Common Name=0 Issuer=0 Self-signed=0 Expiry Date=0 EV Certificat=0
... Certificate Transparency=0 Mutual Authentication=1 On Protocol Errors=1 Certificate Pinning=1 Certificate Not Installed=0 Mirror Client Versions=1
... Allow HTTP/2=1
2020-12-29 14:02:57 +08:00
CreateDecryptionProfile lyf-test-10 name ${dict}
2020-12-07 18:15:14 +08:00
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span
2020-08-18 18:02:07 +08:00
Delete
2020-12-29 14:02:57 +08:00
CreateDecryptionProfileFail-close
[Tags] PositiveTestCase Fail-close Settings DecryptionProfile
2020-05-29 17:01:46 +08:00
${dict} Create Dictionary Common Name=1 Issuer=1 Self-signed=1 Expiry Date=1 EV Certificat=0
... Certificate Transparency=0 Mutual Authentication=1 On Protocol Errors=1 Certificate Pinning=1 Certificate Not Installed=0 Mirror Client Versions=1
... Allow HTTP/2=1
2020-12-29 14:02:57 +08:00
CreateDecryptionProfile lyf-test-11 name ${dict} fail1=Fail-close
2020-12-07 18:15:14 +08:00
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span
2020-08-18 18:02:07 +08:00
Delete
2020-12-29 14:02:57 +08:00
CreateDecryptionProfilePass-through
[Tags] PositiveTestCase Pass-through Settings DecryptionProfile
2020-05-29 17:01:46 +08:00
${dict} Create Dictionary Common Name=1 Issuer=1 Self-signed=1 Expiry Date=1 EV Certificat=0
... Certificate Transparency=0 Mutual Authentication=1 On Protocol Errors=1 Certificate Pinning=1 Certificate Not Installed=0 Mirror Client Versions=1
... Allow HTTP/2=1
2020-12-29 14:02:57 +08:00
CreateDecryptionProfile lyf-test-12 name ${dict} fail1=Pass-through
2020-12-07 18:15:14 +08:00
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span
2020-08-18 18:02:07 +08:00
Delete
2020-12-29 14:02:57 +08:00
CreateDecryptionProfileCertCKSCloseDBAndPVOpen
[Tags] PositiveTestCase Settings DecryptionProfile
2020-05-29 17:01:46 +08:00
${dict} Create Dictionary Common Name=0 Issuer=0 Self-signed=0 Expiry Date=0 EV Certificat=1
... Certificate Transparency=1 Mutual Authentication=1 On Protocol Errors=1 Certificate Pinning=1 Certificate Not Installed=1 Mirror Client Versions=1
... Allow HTTP/2=1
2020-12-29 14:02:57 +08:00
CreateDecryptionProfile lyf-test-13 name ${dict}
2020-12-07 18:15:14 +08:00
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span
2020-08-18 18:02:07 +08:00
Delete
2020-12-29 14:02:57 +08:00
CreateDecryptionProfileProtocolVersionOpen
[Tags] PositiveTestCase Settings DecryptionProfile
2020-05-29 17:01:46 +08:00
${dict} Create Dictionary Common Name=0 Issuer=0 Self-signed=0 Expiry Date=0 EV Certificat=0
... Certificate Transparency=0 Mutual Authentication=0 On Protocol Errors=0 Certificate Pinning=0 Certificate Not Installed=0 Mirror Client Versions=1
... Allow HTTP/2=1
2020-12-29 14:02:57 +08:00
CreateDecryptionProfile lyf-test-14 name ${dict}
2020-12-07 18:15:14 +08:00
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span
2020-08-18 18:02:07 +08:00
Delete
2020-12-29 14:02:57 +08:00
CreateDecryptionProfileAllow HTTP/2Open
[Tags] PositiveTestCase Settings DecryptionProfile
2020-05-29 17:01:46 +08:00
${dict} Create Dictionary Common Name=0 Issuer=0 Self-signed=0 Expiry Date=0 EV Certificat=0
... Certificate Transparency=0 Mutual Authentication=0 On Protocol Errors=0 Certificate Pinning=0 Certificate Not Installed=0 Mirror Client Versions=0
... Allow HTTP/2=1
2020-12-29 14:02:57 +08:00
CreateDecryptionProfile lyf-test-15 name ${dict}
2020-12-07 18:15:14 +08:00
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span
2020-08-18 18:02:07 +08:00
Delete
2020-12-29 14:02:57 +08:00
EditDercryptionProfileSearchID
[Tags] PositiveTestCase ID Settings DecryptionProfile
2020-05-29 17:01:46 +08:00
${dict} Create Dictionary Common Name=1 Issuer=1 Self-signed=1 Expiry Date=1 EV Certificat=1
... Certificate Transparency=1 Mutual Authentication=1 On Protocol Errors=1 Certificate Pinning=1 Certificate Not Installed=1 Mirror Client Versions=0
... Allow HTTP/2=0
2020-12-29 14:02:57 +08:00
CreateDecryptionProfile lyf-test-16 name ${dict} fail1=Pass-through min1=SSLv3.0 max1=SSLv3.0
2020-05-29 17:01:46 +08:00
Sleep 1
2020-12-07 18:15:14 +08:00
${id} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[1]/div/div/span
2020-05-29 17:01:46 +08:00
sleep 1
${dict1} Create Dictionary Common Name=0 Issuer=0 Self-signed=1 Expiry Date=1 EV Certificat=0
... Certificate Transparency=0 Mutual Authentication=0 On Protocol Errors=0 Certificate Pinning=0 Certificate Not Installed=0 Mirror Client Versions=0
... Allow HTTP/2=0
2020-12-29 14:02:57 +08:00
EditDecryptionProfile ${id} EditDercryptionProfile id ${dict1} fail1=Fail-close min1=TLSv1.2
2020-05-29 17:01:46 +08:00
... max1=TLSv1.2
2020-08-18 18:02:07 +08:00