Skip to content

Commit

Permalink
Merge "Add includes of referenced SAIO bin scripts"
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Apr 11, 2014
2 parents e2ab530 + deb0dfd commit 3c859de
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions doc/source/development_saio.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3c859de

Please sign in to comment.