Compare commits
27 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
009cee44c2 | ||
|
|
75c2a38c01 | ||
|
|
b29fdf0b29 | ||
|
|
3ad59e41de | ||
|
|
9a6f33a22d | ||
|
|
6f13eb5e3c | ||
|
|
6adb137468 | ||
|
|
9b3d88178d | ||
|
|
3df6e275af | ||
|
|
7f5caeef81 | ||
|
|
2c9aee7dbd | ||
|
|
3df5c2f490 | ||
|
|
4521e6d3d1 | ||
|
|
b5e18f6584 | ||
|
|
1f3013a5cd | ||
|
|
98805f5688 | ||
|
|
660cac41de | ||
|
|
2205378992 | ||
|
|
cbda2f4247 | ||
|
|
0ddb38d37a | ||
|
|
24e8c56184 | ||
|
|
b26fe07caf | ||
|
|
513d0ce671 | ||
|
|
98a37f5ee1 | ||
|
|
79eee3754d | ||
|
|
0704cd2172 | ||
|
|
a5d909ff29 |
64
.gitlab-ci.yml
Normal file
64
.gitlab-ci.yml
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
stages:
|
||||||
|
- deploy #运行的类型,有
|
||||||
|
- deployagain
|
||||||
|
|
||||||
|
api: #随意填写,起标示作用
|
||||||
|
stage: deploy #和上述的类型对应
|
||||||
|
|
||||||
|
only:
|
||||||
|
- deploy #指定触发分支
|
||||||
|
tags:
|
||||||
|
- "155auto"
|
||||||
|
|
||||||
|
script:
|
||||||
|
- pwd
|
||||||
|
- docker stop auto-custom-clibrary-api || true && docker rm auto-custom-clibrary-api || true
|
||||||
|
- cd docker/api
|
||||||
|
- docker-compose build
|
||||||
|
- time=`date +%m%d` docker-compose up -d
|
||||||
|
|
||||||
|
|
||||||
|
cli: #随意填写,起标示作用
|
||||||
|
stage: deploy #和上述的类型对应
|
||||||
|
|
||||||
|
only:
|
||||||
|
- deploy #指定触发分支
|
||||||
|
tags:
|
||||||
|
- "155auto"
|
||||||
|
|
||||||
|
script:
|
||||||
|
- pwd
|
||||||
|
- docker stop auto-custom-clibrary-cli || true && docker rm auto-custom-clibrary-cli || true
|
||||||
|
- cd docker/cli
|
||||||
|
- docker-compose build
|
||||||
|
- time=`date +%m%d` docker-compose up -d
|
||||||
|
|
||||||
|
|
||||||
|
156api: #随意填写,起标示作用
|
||||||
|
stage: deployagain #和上述的类型对应
|
||||||
|
|
||||||
|
only:
|
||||||
|
- deploy #指定触发分支
|
||||||
|
tags:
|
||||||
|
- "156auto"
|
||||||
|
script:
|
||||||
|
- pwd
|
||||||
|
- docker stop auto-custom-clibrary-api || true && docker rm auto-custom-clibrary-api || true
|
||||||
|
- cd docker/api
|
||||||
|
- docker-compose build
|
||||||
|
- time=`date +%m%d` docker-compose up -d
|
||||||
|
|
||||||
|
|
||||||
|
156cli: #随意填写,起标示作用
|
||||||
|
stage: deployagain #和上述的类型对应
|
||||||
|
|
||||||
|
only:
|
||||||
|
- deploy #指定触发分支
|
||||||
|
tags:
|
||||||
|
- "156auto"
|
||||||
|
script:
|
||||||
|
- pwd
|
||||||
|
- docker stop auto-custom-clibrary-cli || true && docker rm auto-custom-clibrary-cli || true
|
||||||
|
- cd docker/cli
|
||||||
|
- docker-compose build
|
||||||
|
- time=`date +%m%d` docker-compose up -d
|
||||||
@@ -23,7 +23,8 @@ Settings-ProxyProfiles-KeyringFile_root-00001
|
|||||||
QueryPolicyFile ${url} keyringId=${keyringId}&keyringName=${keyringName}
|
QueryPolicyFile ${url} keyringId=${keyringId}&keyringName=${keyringName}
|
||||||
# 修改
|
# 修改
|
||||||
${header_edit} Set Variable {"isValid":1,"opAction":"update","returnData":1,"keyringName":"test_edit","keyringType":"end-entity","reissueExpiryHour":0,"crl":"null","publicKeyAlgo":"rsa2048","keyringId":"${keyringId}","includeRoot":0}
|
${header_edit} Set Variable {"isValid":1,"opAction":"update","returnData":1,"keyringName":"test_edit","keyringType":"end-entity","reissueExpiryHour":0,"crl":"null","publicKeyAlgo":"rsa2048","keyringId":"${keyringId}","includeRoot":0}
|
||||||
UpdatePolicyMutipartFile ${url} Keyrings/end-entity/ tang-ca-v3-www.amazon.cn-cer.pem tang-ca-v3-www.amazon.cn-key.pem ${header_edit}
|
#UpdatePolicyMutipartFile ${url} Keyrings/end-entity/ tang-ca-v3-www.amazon.cn-cer.pem tang-ca-v3-www.amazon.cn-key.pem ${header_edit}
|
||||||
|
UpdatePolicyMutipartFile ${url} keyrings/end-entity/ tang-ca-v3-www.amazon.cn-cer.pem tang-ca-v3-www.amazon.cn-key.pem ${header_edit}
|
||||||
|
|
||||||
Settings-ProxyProfiles-KeyringFile_end-entity-00002
|
Settings-ProxyProfiles-KeyringFile_end-entity-00002
|
||||||
# 新增 end-entity
|
# 新增 end-entity
|
||||||
@@ -34,7 +35,8 @@ Settings-ProxyProfiles-KeyringFile_end-entity-00002
|
|||||||
QueryPolicyFile ${url} keyringId=${keyringId}&keyringName=${keyringName}
|
QueryPolicyFile ${url} keyringId=${keyringId}&keyringName=${keyringName}
|
||||||
# 修改
|
# 修改
|
||||||
${header_edit} Set Variable {"isValid":1,"opAction":"update","returnData":1,"keyringName":"test_edit","keyringType":"end-entity","reissueExpiryHour":0,"crl":"null","publicKeyAlgo":"rsa2048","keyringId":"${keyringId}","includeRoot":0}
|
${header_edit} Set Variable {"isValid":1,"opAction":"update","returnData":1,"keyringName":"test_edit","keyringType":"end-entity","reissueExpiryHour":0,"crl":"null","publicKeyAlgo":"rsa2048","keyringId":"${keyringId}","includeRoot":0}
|
||||||
UpdatePolicyMutipartFile ${url} Keyrings/end-entity/ tang-ca-v3-www.amazon.cn-cer.pem tang-ca-v3-www.amazon.cn-key.pem ${header_edit}
|
#UpdatePolicyMutipartFile ${url} Keyrings/end-entity/ tang-ca-v3-www.amazon.cn-cer.pem tang-ca-v3-www.amazon.cn-key.pem ${header_edit}
|
||||||
|
UpdatePolicyMutipartFile ${url} keyrings/end-entity/ tang-ca-v3-www.amazon.cn-cer.pem tang-ca-v3-www.amazon.cn-key.pem ${header_edit}
|
||||||
|
|
||||||
Settings-ProxyProfiles-KeyringFile_Intermediate-00003
|
Settings-ProxyProfiles-KeyringFile_Intermediate-00003
|
||||||
# 新增 end-entity
|
# 新增 end-entity
|
||||||
@@ -45,4 +47,5 @@ Settings-ProxyProfiles-KeyringFile_Intermediate-00003
|
|||||||
QueryPolicyFile ${url} keyringId=${keyringId}&keyringName=${keyringName}
|
QueryPolicyFile ${url} keyringId=${keyringId}&keyringName=${keyringName}
|
||||||
# 修改
|
# 修改
|
||||||
${header_edit} Set Variable {"isValid":1,"opAction":"update","returnData":1,"keyringName":"test_edit","keyringType":"end-entity","reissueExpiryHour":0,"crl":"null","publicKeyAlgo":"rsa2048","keyringId":"${keyringId}","includeRoot":0}
|
${header_edit} Set Variable {"isValid":1,"opAction":"update","returnData":1,"keyringName":"test_edit","keyringType":"end-entity","reissueExpiryHour":0,"crl":"null","publicKeyAlgo":"rsa2048","keyringId":"${keyringId}","includeRoot":0}
|
||||||
UpdatePolicyMutipartFile ${url} Keyrings/end-entity/ tang-ca-v3-www.amazon.cn-cer.pem tang-ca-v3-www.amazon.cn-key.pem ${header_edit}
|
#UpdatePolicyMutipartFile ${url} Keyrings/end-entity/ tang-ca-v3-www.amazon.cn-cer.pem tang-ca-v3-www.amazon.cn-key.pem ${header_edit}
|
||||||
|
UpdatePolicyMutipartFile ${url} keyrings/end-entity/ tang-ca-v3-www.amazon.cn-cer.pem tang-ca-v3-www.amazon.cn-key.pem ${header_edit}
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
*** Variables ***
|
*** Variables ***
|
||||||
#登录类型:api | cli | ${None}(tsg mib) | 未指定,默认为ui
|
#登录类型:api | cli | ${None}(tsg mib) | 未指定,默认为ui
|
||||||
${loginType} api
|
${loginType} cli
|
||||||
#执行环境是否Widonws
|
#执行环境是否Widonws
|
||||||
${systemType} Windows
|
${systemType} Linux
|
||||||
#API配置信息
|
#API配置信息
|
||||||
${host} 192.168.40.120
|
${host} 192.168.40.120
|
||||||
${port} 8080
|
${port} 8080
|
||||||
@@ -10,12 +10,12 @@ ${authmode} 1
|
|||||||
${authCode} ${EMPTY}
|
${authCode} ${EMPTY}
|
||||||
${ldapId} 27
|
${ldapId} 27
|
||||||
${version} v1
|
${version} v1
|
||||||
${username} uitest
|
${username} testno
|
||||||
${password} 111111
|
${password} 111111
|
||||||
${encodePassword} ${EMPTY}
|
${encodePassword} ${EMPTY}
|
||||||
${token} ${EMPTY}
|
${token} ${EMPTY}
|
||||||
#[Documentation] 测试终端IP统一配置
|
#[Documentation] 测试终端IP统一配置
|
||||||
${testClentIP} 192.168.50.2
|
${testClentIP} 192.168.41.68
|
||||||
${testSubscriberID} $test2
|
${testSubscriberID} $test2
|
||||||
#自动化标签
|
#自动化标签
|
||||||
${userTagIds} ${EMPTY}
|
${userTagIds} ${EMPTY}
|
||||||
@@ -26,7 +26,7 @@ ${addTestClentIPFlag} 1
|
|||||||
${policyVerificationSleepSeconds} 20
|
${policyVerificationSleepSeconds} 20
|
||||||
#策略验证后到验证策略日志需等待时间
|
#策略验证后到验证策略日志需等待时间
|
||||||
${policyLogVerificationSleepSeconds} 60
|
${policyLogVerificationSleepSeconds} 60
|
||||||
${path} E:/auto_git/eclipsegit/tsg_autotest/05-Other/
|
${path} /usr/src/python/autotsg/05-Other
|
||||||
${curlbatpath} ${path}/curl/
|
${curlbatpath} ${path}/curl/
|
||||||
${mailpath} ${path}/mail/
|
${mailpath} ${path}/mail/
|
||||||
${responsePageFiles} ${path}/response_pages_files/
|
${responsePageFiles} ${path}/response_pages_files/
|
||||||
|
|||||||
15
docker/api/docker-compose.yml
Normal file
15
docker/api/docker-compose.yml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
version: '3.1'
|
||||||
|
services:
|
||||||
|
auto-custom-clibrary:
|
||||||
|
image: 192.168.41.68/robotframework/auto-custom-clibrary:3.0
|
||||||
|
restart: always
|
||||||
|
container_name: auto-custom-clibrary-api
|
||||||
|
environment:
|
||||||
|
TZ: Asia/Shanghai
|
||||||
|
working_dir: /usr/src/python
|
||||||
|
command: robot -i tsg_bf_api -d api/$time/ autotsg
|
||||||
|
privileged: true
|
||||||
|
volumes:
|
||||||
|
- /home/autotsg-gao:/usr/src/python
|
||||||
|
|
||||||
|
|
||||||
16
docker/cli/docker-compose.yml
Normal file
16
docker/cli/docker-compose.yml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
version: '3.1'
|
||||||
|
services:
|
||||||
|
auto-custom-clibrary:
|
||||||
|
image: 192.168.41.68/robotframework/auto-custom-clibrary:3.0
|
||||||
|
restart: always
|
||||||
|
container_name: auto-custom-clibrary-cli
|
||||||
|
environment:
|
||||||
|
TZ: Asia/Shanghai
|
||||||
|
working_dir: /usr/src/python
|
||||||
|
environment:
|
||||||
|
- loginType:cli
|
||||||
|
command: robot -i tsg_device -d cli/$time/ autotsg
|
||||||
|
privileged: true
|
||||||
|
volumes:
|
||||||
|
- /home/autotsg-gao:/usr/src/python
|
||||||
|
|
||||||
BIN
docker/测试环境自动部署.doc
Normal file
BIN
docker/测试环境自动部署.doc
Normal file
Binary file not shown.
Reference in New Issue
Block a user