File tree 1 file changed +26
-11
lines changed
1 file changed +26
-11
lines changed Original file line number Diff line number Diff line change @@ -130,27 +130,42 @@ Testing
130
130
131
131
Linux testing is done with ``kitchen-salt ``.
132
132
133
- ``kitchen converge ``
134
- ^^^^^^^^^^^^^^^^^^^^
133
+ Requirements
134
+ ^^^^^^^^^^^^
135
+
136
+ * Ruby
137
+ * Docker
138
+
139
+ .. code-block :: bash
140
+
141
+ $ gem install bundler
142
+ $ bundle install
143
+ $ bin/kitchen test [platform]
144
+
145
+ Where ``[platform] `` is the platform name defined in ``kitchen.yml ``,
146
+ e.g. ``debian-9-2019-2-py3 ``.
147
+
148
+ ``bin/kitchen converge ``
149
+ ^^^^^^^^^^^^^^^^^^^^^^^^
135
150
136
- Creates the docker instance and runs the ``template `` main state, ready for testing.
151
+ Creates the docker instance and runs the ``nginx `` main state, ready for testing.
137
152
138
- ``kitchen verify ``
139
- ^^^^^^^^^^^^^^^^^^
153
+ ``bin/ kitchen verify ``
154
+ ^^^^^^^^^^^^^^^^^^^^^^
140
155
141
156
Runs the ``inspec `` tests on the actual instance.
142
157
143
- ``kitchen destroy ``
144
- ^^^^^^^^^^^^^^^^^^^
158
+ ``bin/ kitchen destroy ``
159
+ ^^^^^^^^^^^^^^^^^^^^^^^
145
160
146
161
Removes the docker instance.
147
162
148
- ``kitchen test ``
149
- ^^^^^^^^^^^^^^^^
163
+ ``bin/ kitchen test ``
164
+ ^^^^^^^^^^^^^^^^^^^^
150
165
151
166
Runs all of the stages above in one go: i.e. ``destroy `` + ``converge `` + ``verify `` + ``destroy ``.
152
167
153
- ``kitchen login ``
154
- ^^^^^^^^^^^^^^^^^
168
+ ``bin/ kitchen login ``
169
+ ^^^^^^^^^^^^^^^^^^^^^
155
170
156
171
Gives you SSH access to the instance for manual testing.
You can’t perform that action at this time.
0 commit comments