diff --git a/doc/source/development_saio.rst b/doc/source/development_saio.rst index 4fe40d6d77..d1caff7229 100644 --- a/doc/source/development_saio.rst +++ b/doc/source/development_saio.rst @@ -415,10 +415,18 @@ Setting up scripts for running Swift sed -i "s/service \(.*\) restart/systemctl restart \1.service/" $HOME/bin/resetswift + The template ``resetswift`` script looks like the following: + + .. literalinclude:: /../saio/bin/resetswift + #. Install the sample configuration file for running tests:: cp $HOME/swift/test/sample.conf /etc/swift/test.conf + The template ``test.conf`` looks like the following: + + .. literalinclude:: /../../test/sample.conf + #. Add an environment variable for running tests below:: echo "export SWIFT_TEST_CONFIG_FILE=/etc/swift/test.conf" >> $HOME/.bashrc @@ -435,6 +443,10 @@ Setting up scripts for running Swift remakerings + The ``remakerings`` script looks like the following: + + .. literalinclude:: /../saio/bin/remakerings + You can expect the ouptut from this command to produce the following:: Device d0r1z1-127.0.0.1:6010R127.0.0.1:6010/sdb1_"" with 1.0 weight got id 0 @@ -467,6 +479,10 @@ Setting up scripts for running Swift (The "``Unable to increase file descriptor limit. Running as non-root?``" warnings are expected and ok.) + The ``startmain`` script looks like the following: + + .. literalinclude:: /../saio/bin/startmain + #. Get an ``X-Storage-Url`` and ``X-Auth-Token``:: curl -v -H 'X-Storage-User: test:tester' -H 'X-Storage-Pass: testing' http://127.0.0.1:8080/auth/v1.0