From c97db92f482a668b932829844610628e8bb6b419 Mon Sep 17 00:00:00 2001 From: Theodyme Date: Mon, 26 Jul 2021 15:55:34 +0200 Subject: [PATCH] Fix some pb : constants urls, etc.. --- 03_etudiant_test.py | 8 ++++++-- 05_saisie_note_test.py | 4 +++- __pycache__/setting.cpython-37.pyc | Bin 707 -> 0 bytes readme.md | 11 ++++++++++- scriptDeleteDepartement.sh | 2 +- scriptExecution.sh | 2 +- setting.py | 2 +- 7 files changed, 22 insertions(+), 7 deletions(-) delete mode 100644 __pycache__/setting.cpython-37.pyc diff --git a/03_etudiant_test.py b/03_etudiant_test.py index 099656b..13c8022 100644 --- a/03_etudiant_test.py +++ b/03_etudiant_test.py @@ -146,7 +146,9 @@ class PythonOrgSearch(unittest.TestCase): def test_05_suppresion_etudiant(self): driver = self.driver urlRecherche = ( - "https://scodoc-dev-iutinfo.univ-lille.fr/ScoDoc/" + "https://" + + BASE_NOT_SECURED_URL + + "ScoDoc/" + NOM_DPT + "/Scolarite/search_etud_in_dept" ) @@ -157,7 +159,9 @@ class PythonOrgSearch(unittest.TestCase): time.sleep(1) etudid = driver.find_element_by_id("euid") url = ( - "https://scodoc-dev-iutinfo.univ-lille.fr/ScoDoc/" + "https://" + + BASE_NOT_SECURED_URL + + "ScoDoc/" + NOM_DPT + "/Scolarite/etudident_delete?etudid=" + etudid.text diff --git a/05_saisie_note_test.py b/05_saisie_note_test.py index c49c59d..7bbaa7c 100644 --- a/05_saisie_note_test.py +++ b/05_saisie_note_test.py @@ -171,7 +171,9 @@ class PythonOrgSearch(unittest.TestCase): + SCODOC_ADMIN_ID + ":" + SCODOC_ADMIN_PASS - + "@scodoc-dev-iutinfo.univ-lille.fr/force_admin_authentication" + + "@" + + BASE_NOT_SECURED_URL + + "force_admin_authentication" ) # driver.get(BASE_URL) # driver.find_element_by_link_text("déconnecter").click() diff --git a/__pycache__/setting.cpython-37.pyc b/__pycache__/setting.cpython-37.pyc deleted file mode 100644 index 4c16c7d18f3b385e3a1725d89f196f8b5213a2b1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 707 zcmZXSy>8nu5P(VjShDqFCw12@oxE6cfug7^sjbmO4kSB+7FMvBM2RFCl3bu&{UYty zC&=E%;M%FLkf}$90a}!TK7DsQ3OtYt#~C3Q4=?XO-75(F62a3@LEggK{R9-Kz!l2G zSE+EVWJ;}ODi*O?X|eM)3$f8^G+py5T<7^~-0B%V)z-{R! zxFdZC?n)nlkEL7S6X`biiF612RJsfPO!^pnTHqATCcmK%6wef{-LkUbMp3p+Ueg)o zR>ksy6s)Js=daov$jybHMr4zmaU))xlkj5A$7!$%R{`M1;qASI!3?qIaTT@^^f!I6Yg&ABjw-QF0k2e0tnWyjqhq3N}d;9yd0M{mbQh ze;sX-*>kS2E;Cp+-{t*H3ulR1ae&$2v8z^tfSZI|l@%o./lancement_de_tout_les_tests.sh -Vous y retrouverez les liens menant au détails de chaque rapport ainsi qu'un résumé du nombre de test passés/échoués \ No newline at end of file +Vous y retrouverez les liens menant au détails de chaque rapport ainsi qu'un résumé du nombre de test passés/échoués + +##Correctifs + +* Modifier le PATH pour que geckodriver soit executable `export PATH=".:$PATH"` + +* pip install HtmlTestRunner-Python3 + +* Créer un utilisateur Nom:BACH Prenom:Test User:Bach + diff --git a/scriptDeleteDepartement.sh b/scriptDeleteDepartement.sh index c78a278..abe54cf 100755 --- a/scriptDeleteDepartement.sh +++ b/scriptDeleteDepartement.sh @@ -9,4 +9,4 @@ ssh $1 /bin/bash<< EOF cd /opt/scodoc/Products/ScoDoc/config ./delete_dept.sh -n ${2} EOF -ssh $1 'systemctl restart ScoDoc.service' \ No newline at end of file +ssh $1 'systemctl restart scodoc' diff --git a/scriptExecution.sh b/scriptExecution.sh index 5d60785..43ae168 100755 --- a/scriptExecution.sh +++ b/scriptExecution.sh @@ -9,4 +9,4 @@ ssh $1 /bin/bash<< EOF cd /opt/scodoc/Products/ScoDoc/ scotests/scointeractive.sh -r ${2} scotests/${3} EOF -ssh $1 'systemctl restart ScoDoc.service' +ssh $1 'systemctl restart scodoc' diff --git a/setting.py b/setting.py index 36eace0..95109b8 100644 --- a/setting.py +++ b/setting.py @@ -15,4 +15,4 @@ SCODOC_CHEF_ID = os.environ.get("SCODOC_CHEF_ID") SCODOC_CHEF_PASS = os.environ.get("SCODOC_CHEF_PASS") LINK_SCODOC_SERVER = os.environ.get("LINK_SCODOC_SERVER") BASE_NOT_SECURED_URL = os.environ.get("BASE_NOT_SECURED_URL") -NAVIGATEUR = os.environ.get("NAVIGATEUR") \ No newline at end of file +NAVIGATEUR = os.environ.get("NAVIGATEUR")