Add includes of referenced SAIO bin scripts
Change-Id: I6810e69a757336a3aed0a38146c27f270fe2dde1
This commit is contained in:
parent
4721deeb40
commit
deb0dfd090
@ -415,10 +415,18 @@ Setting up scripts for running Swift
|
|||||||
|
|
||||||
sed -i "s/service \(.*\) restart/systemctl restart \1.service/" $HOME/bin/resetswift
|
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::
|
#. Install the sample configuration file for running tests::
|
||||||
|
|
||||||
cp $HOME/swift/test/sample.conf /etc/swift/test.conf
|
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::
|
#. Add an environment variable for running tests below::
|
||||||
|
|
||||||
echo "export SWIFT_TEST_CONFIG_FILE=/etc/swift/test.conf" >> $HOME/.bashrc
|
echo "export SWIFT_TEST_CONFIG_FILE=/etc/swift/test.conf" >> $HOME/.bashrc
|
||||||
@ -435,6 +443,10 @@ Setting up scripts for running Swift
|
|||||||
|
|
||||||
remakerings
|
remakerings
|
||||||
|
|
||||||
|
The ``remakerings`` script looks like the following:
|
||||||
|
|
||||||
|
.. literalinclude:: /../saio/bin/remakerings
|
||||||
|
|
||||||
You can expect the ouptut from this command to produce the following::
|
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
|
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?``"
|
(The "``Unable to increase file descriptor limit. Running as non-root?``"
|
||||||
warnings are expected and ok.)
|
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``::
|
#. 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
|
curl -v -H 'X-Storage-User: test:tester' -H 'X-Storage-Pass: testing' http://127.0.0.1:8080/auth/v1.0
|
||||||
|
Loading…
Reference in New Issue
Block a user