You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo -e "*** $(date -u) Getting a non privileged user to find its VO dynamically\n"|& tee -a clientTestOutputs.txt
91
-
dirac-proxy-init -g jenkins_user -C $SERVERINSTALLDIR/user/client.pem -K $SERVERINSTALLDIR/user/client.key $DEBUG|& tee -a clientTestOutputs.txt
91
+
dirac-login jenkins_user -C $SERVERINSTALLDIR/user/client.pem -K $SERVERINSTALLDIR/user/client.key $DEBUG|& tee -a clientTestOutputs.txt
92
92
93
93
userVO=$(python -c "import DIRAC; DIRAC.initialize(); from DIRAC.Core.Security.ProxyInfo import getVOfromProxyGroup; print(getVOfromProxyGroup().get('Value',''))")
94
94
userVO="${userVO:-Jenkins}"
95
95
echo -e "*** $(date -u) VO is "${userVO}"\n"|& tee -a clientTestOutputs.txt
96
96
97
97
echo -e "*** $(date -u) Getting a privileged user\n"|& tee -a clientTestOutputs.txt
98
-
dirac-proxy-init -g jenkins_fcadmin -C "${SERVERINSTALLDIR}/user/client.pem" -K "${SERVERINSTALLDIR}/user/client.key""${DEBUG}"|& tee -a clientTestOutputs.txt
98
+
dirac-login jenkins_fcadmin -C "${SERVERINSTALLDIR}/user/client.pem" -K "${SERVERINSTALLDIR}/user/client.key""${DEBUG}"|& tee -a clientTestOutputs.txt
echo -e "*** $(date -u) Getting a non privileged user\n"|& tee -a clientTestOutputs.txt
114
-
dirac-proxy-init -g jenkins_user -C "${SERVERINSTALLDIR}/user/client.pem" -K "${SERVERINSTALLDIR}/user/client.key""${DEBUG}"|& tee -a clientTestOutputs.txt
114
+
dirac-login jenkins_user -C "${SERVERINSTALLDIR}/user/client.pem" -K "${SERVERINSTALLDIR}/user/client.key""${DEBUG}"|& tee -a clientTestOutputs.txt
115
115
116
116
pytest "${THIS_DIR}/DataManagementSystem/Test_DataManager.py"|& tee -a clientTestOutputs.txt;(( ERR |= "${?}" ))
117
117
@@ -121,7 +121,7 @@ pytest "${THIS_DIR}/DataManagementSystem/Test_DataManager.py" |& tee -a clientTe
121
121
# respectively.
122
122
123
123
# normal user proxy
124
-
dirac-proxy-init -g jenkins_user -C "${SERVERINSTALLDIR}/user/client.pem" -K "${SERVERINSTALLDIR}/user/client.key""${DEBUG}"|& tee -a clientTestOutputs.txt
124
+
dirac-login jenkins_user -C "${SERVERINSTALLDIR}/user/client.pem" -K "${SERVERINSTALLDIR}/user/client.key""${DEBUG}"|& tee -a clientTestOutputs.txt
python "${THIS_DIR}/DataManagementSystem/Test_Client_DFC.py"|& tee -a "${SERVER_TEST_OUTPUT}";(( ERR |= "${?}" ))
75
75
diracDFCDB |& tee -a "${SERVER_TEST_OUTPUT}"
76
76
python "${THIS_DIR}/DataManagementSystem/Test_FileCatalogDB.py"|& tee -a "${SERVER_TEST_OUTPUT}";(( ERR |= "${?}" ))
@@ -84,7 +84,7 @@ dirac-restart-component Tornado Tornado "${DEBUG}" |& tee -a "${SERVER_TEST_OUTP
84
84
85
85
echo -e "*** $(date -u) Run it with the admin privileges"|& tee -a "${SERVER_TEST_OUTPUT}"
86
86
echo -e "*** $(date -u) getting the prod role again\n"|& tee -a "${SERVER_TEST_OUTPUT}"
87
-
dirac-proxy-init -g prod -C "${WORKSPACE}/ServerInstallDIR/user/client.pem" -K "${WORKSPACE}/ServerInstallDIR/user/client.key""${DEBUG}"|& tee -a "${SERVER_TEST_OUTPUT}"
87
+
dirac-login prod -C "${WORKSPACE}/ServerInstallDIR/user/client.pem" -K "${WORKSPACE}/ServerInstallDIR/user/client.key""${DEBUG}"|& tee -a "${SERVER_TEST_OUTPUT}"
88
88
python "${THIS_DIR}/DataManagementSystem/Test_Client_DFC.py"|& tee -a "${SERVER_TEST_OUTPUT}";(( ERR |= "${?}" ))
89
89
diracDFCDB |& tee -a "${SERVER_TEST_OUTPUT}"
90
90
python "${THIS_DIR}/DataManagementSystem/Test_FileCatalogDB.py"|& tee -a "${SERVER_TEST_OUTPUT}";(( ERR |= "${?}" ))
0 commit comments