From 1d30515d5dafbbb8db905d0af70460ef4a98c9fc Mon Sep 17 00:00:00 2001 From: luxuyang Date: Mon, 12 Aug 2024 09:42:52 +0800 Subject: [PATCH] * [task#125557,done,0.3h,0h] modify GitFox url and token value to env. --- module/space/test/ui/createapplication.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/module/space/test/ui/createapplication.php b/module/space/test/ui/createapplication.php index 7e96c4e34d..79a0148700 100644 --- a/module/space/test/ui/createapplication.php +++ b/module/space/test/ui/createapplication.php @@ -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应用