File: test_already_existing

package info (click to toggle)
openstack-pkg-tools 117
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 904 kB
  • sloc: sh: 3,994; makefile: 31
file content (17 lines) | stat: -rwxr-xr-x 420 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

set -e

. ../../../pkgos_func
. ../../../tests/osstt

cp example.ini example-result.ini
pkgos_add_directive example-result.ini keystone_authtoken "auth_uri =" "# Address of your keystone server"
osstt_assertFilesAreSame example-result.ini example.ini
rm example-result.ini
if [ "${RET}" = "yes" ] ; then
	exit 0
else
	echo "pkgos_add_directive modified the .ini when the directive already existed"
	exit 1
fi