* [task#125557,done,0.3h,0h] modify GitFox url and token value to env.

This commit is contained in:
luxuyang
2024-08-12 09:48:09 +08:00
committed by 陆旭阳
parent dcbb8d5a50
commit 1d30515d5d
+6 -6
View File
@@ -19,9 +19,9 @@ $application = array(
'customName' => 'zdoo' . time(),
'customDomain' => randomString(),
'appType' => 'GitLab',
'name' => 'app' . time(),
'url' => 'http://10.0.7.242:9980',
'token' => 'y2UBqwPPzaLxsniy8R6A'
'name' => 'GitLab' . time(),
'url' => getenv('GITLAB_URL'),
'token' => getenv('GITLAB_TOKEN')
);
$url = array('id' => 55);
@@ -32,8 +32,8 @@ $application = array(
'customName' => 'zdoo' . time(),
'customDomain' => randomString(),
'appType' => 'GitFox',
'name' => 'app' . time(),
'url' => 'http://10.0.0.51:3000',
'token' => 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE3MTAzMTAzOTAsImlzcyI6IkdpdG5lc3MiLCJwaWQiOjMsInRrbiI6eyJ0eXAiOiJwYXQiLCJpZCI6M319.CS5l5r2UqtHVBOJo2F_yOwCJCg9qCaRDReeyfqcHurQ'
'name' => 'GitFox' . time(),
'url' => getenv('GITFOX_URL'),
'token' => getenv('GITFOX_TOKEN')
);
r($tester->createApplication($url, $application)) && p('message,status') && e('创建应用成功,SUCCESS'); //验证创建GitFox应用