tests/pkgos_func/add_directive/test_already_existing
raw| 1 | #!/bin/sh |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | . ../../../pkgos_func |
| 6 | . ../../../tests/osstt |
| 7 | |
| 8 | cp example.ini example-result.ini |
| 9 | pkgos_add_directive example-result.ini keystone_authtoken "auth_uri =" "# Address of your keystone server" |
| 10 | osstt_assertFilesAreSame example-result.ini example.ini |
| 11 | rm example-result.ini |
| 12 | if [ "${RET}" = "yes" ] ; then |
| 13 | exit 0 |
| 14 | else |
| 15 | echo "pkgos_add_directive modified the .ini when the directive already existed" |
| 16 | exit 1 |
| 17 | fi |