27 Commits

Author SHA1 Message Date
gaochengrui
009cee44c2 Update BifangApiVariable.txt 2020-06-30 17:00:02 +08:00
gaochengrui
75c2a38c01 更新文档 2020-06-23 10:18:14 +08:00
gaochengrui
b29fdf0b29 同步到两台服务器 2020-06-23 09:58:01 +08:00
gaochengrui
3ad59e41de 1 2020-06-22 18:32:37 +08:00
gaochengrui
9a6f33a22d 1 2020-06-22 18:31:30 +08:00
gaochengrui
6f13eb5e3c `1 2020-06-22 18:28:54 +08:00
gaochengrui
6adb137468 1 2020-06-22 18:24:03 +08:00
gaochengrui
9b3d88178d 1 2020-06-22 18:01:37 +08:00
gaochengrui
3df6e275af 1 2020-06-22 17:41:52 +08:00
gaochengrui
7f5caeef81 1 2020-06-22 17:39:13 +08:00
gaochengrui
2c9aee7dbd 1 2020-06-22 17:30:07 +08:00
gaochengrui
3df5c2f490 Update docker-compose.yml 2020-06-22 17:05:48 +08:00
gaochengrui
4521e6d3d1 Update docker-compose.yml 2020-06-22 17:05:21 +08:00
gaochengrui
b5e18f6584 Update .gitlab-ci.yml 2020-06-22 17:00:37 +08:00
gaochengrui
1f3013a5cd Update docker-compose.yml 2020-06-22 17:00:04 +08:00
gaochengrui
98805f5688 Update .gitlab-ci.yml 2020-06-22 16:58:46 +08:00
gaochengrui
660cac41de Update .gitlab-ci.yml 2020-06-22 16:57:31 +08:00
gaochengrui
2205378992 Update docker-compose.yml 2020-06-22 16:56:19 +08:00
gaochengrui
cbda2f4247 Update docker-compose.yml 2020-06-22 16:50:43 +08:00
gaochengrui
0ddb38d37a Update docker-compose.yml 2020-06-22 16:46:47 +08:00
gaochengrui
24e8c56184 修改 文件夹名字 2020-06-19 11:42:29 +08:00
gaochengrui
b26fe07caf 更新文档 2020-06-19 11:36:38 +08:00
gaochengrui
513d0ce671 修改文档 2020-06-19 10:45:48 +08:00
gaochengrui
98a37f5ee1 自动化迁移丶集成丶部署文档 2020-06-19 10:30:37 +08:00
gaochengrui
79eee3754d 1 2020-06-19 10:04:28 +08:00
gaochengrui
0704cd2172 1 2020-06-18 18:52:14 +08:00
gaochengrui
a5d909ff29 加入自动集成部署 2020-06-18 18:50:39 +08:00
6 changed files with 107 additions and 9 deletions

64
.gitlab-ci.yml Normal file
View 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

View File

@@ -23,7 +23,8 @@ Settings-ProxyProfiles-KeyringFile_root-00001
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}
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
# 新增 end-entity
@@ -34,7 +35,8 @@ Settings-ProxyProfiles-KeyringFile_end-entity-00002
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}
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
# 新增 end-entity
@@ -45,4 +47,5 @@ Settings-ProxyProfiles-KeyringFile_Intermediate-00003
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}
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}

View File

@@ -1,8 +1,8 @@
*** Variables ***
#登录类型api | cli | ${None}tsg mib | 未指定默认为ui
${loginType} api
${loginType} cli
#执行环境是否Widonws
${systemType} Windows
${systemType} Linux
#API配置信息
${host} 192.168.40.120
${port} 8080
@@ -10,12 +10,12 @@ ${authmode} 1
${authCode} ${EMPTY}
${ldapId} 27
${version} v1
${username} uitest
${username} testno
${password} 111111
${encodePassword} ${EMPTY}
${token} ${EMPTY}
#[Documentation] 测试终端IP统一配置
${testClentIP} 192.168.50.2
${testClentIP} 192.168.41.68
${testSubscriberID} $test2
#自动化标签
${userTagIds} ${EMPTY}
@@ -26,7 +26,7 @@ ${addTestClentIPFlag} 1
${policyVerificationSleepSeconds} 20
#策略验证后到验证策略日志需等待时间
${policyLogVerificationSleepSeconds} 60
${path} E:/auto_git/eclipsegit/tsg_autotest/05-Other/
${path} /usr/src/python/autotsg/05-Other
${curlbatpath} ${path}/curl/
${mailpath} ${path}/mail/
${responsePageFiles} ${path}/response_pages_files/
@@ -59,4 +59,4 @@ ${snmpCommunity} public
# SNMP服务测试变量[end]
#API配置信息
${oamHost} 192.168.40.210
${oamPort} 50080
${oamPort} 50080

View 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

View 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

Binary file not shown.