Tâche #6120
ERA - Scénario #13707: Script 40-icmp_static_rules non créé
Pouvoir débloquer une variable sur laquelle est posé un "frozen_if_in"
Description
Dans le cadre de #5707, je voulais aller au plus simple en débloquant "ldap_base_dn" :
<variable name='ldap_base_dn' redefine='True' hidden='False'/>
Mais cela ne semble pas fonctionner derrière la condition posée actuellement dans 23_annuaire.xml :
<condition name='frozen_if_in' source='activer_client_ldap'> <param>local</param> <target type='variable'>adresse_ip_ldap</target> <target type='variable'>ldap_base_dn</target> <target type='variable'>ldap_tls</target> <target type='variable'>ldap_nss</target> </condition>
NB : peut-être que je vais faire autrement... Par exemple en déplaçant une partie du frozen_if_in dans un autre dico...
Associated revisions
Test unitaire pour remove_condition sur frozen_if_in
- tests/dicos/redefine/*.xml : ajout de variables et de contraintes spécifiques
- tests/test_genconfig.py : ajout des tests associés dans "test_redefine()"
Ref: #6120 @30m
History
#1 Updated by Emmanuel GARETTE over 9 years ago
redefine ne permet pas de changer les conditions (et c'est pareil en 2.3).
On peut soit :
- changer le comportement (comme proposé ici) ;
- rajouté un attribut "remove_condition" tout comme il y a un remove_check.
#2 Updated by Emmanuel GARETTE over 9 years ago
- Status changed from Nouveau to En attente d'informations
#3 Updated by Joël Cuissinat over 7 years ago
- Status changed from En attente d'informations to Nouveau
- Assigned To deleted (
Emmanuel GARETTE) - Parent task set to #13707
Normalement, c'est résolu par #13729.
Je l'ajoute au sprint pour validation et ajout d'un test unitaire.
#4 Updated by Joël Cuissinat over 7 years ago
- Remaining (hours) set to 1.0
#5 Updated by Scrum Master over 7 years ago
- Assigned To set to Joël Cuissinat
#6 Updated by Joël Cuissinat over 7 years ago
- Status changed from Nouveau to En cours
- Start date set to 12/07/2015
#7 Updated by Joël Cuissinat over 7 years ago
- Remaining (hours) changed from 1.0 to 0.25
#8 Updated by Joël Cuissinat over 7 years ago
- Status changed from En cours to Résolu
- % Done changed from 0 to 100
#9 Updated by Fabrice Barconnière over 7 years ago
- Remaining (hours) changed from 0.25 to 0.0
Lancement du test après Maj-Auto -D
root@eolebase:/usr/share/creole# py.test =============================================== test session starts ================================================ platform linux2 -- Python 2.7.6 -- pytest-2.5.1 collected 40 items tests/test_creoleclient.py ........... tests/test_creolerun.py ...... tests/test_creoleservice.py .. tests/test_dicos.py .. tests/test_eosfunc.py ... tests/test_genconfig.py ........ tests/test_upgrade.py ........ ============================================ 40 passed in 6.75 seconds =============================================
#10 Updated by Scrum Master over 7 years ago
- Status changed from Résolu to Fermé