We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d55e01 commit e224c4cCopy full SHA for e224c4c
1 file changed
tests/integration/cli_test.py
@@ -192,6 +192,22 @@ def test_rm(self):
192
self.command.dispatch(['rm', '--force'], None)
193
self.assertEqual(len(service.containers(stopped=True)), 0)
194
195
+ def test_restart(self):
196
+ service = self.project.get_service('simple')
197
+ container = service.create_container()
198
+ service.start_container(container)
199
+ started_at = container.dictionary['State']['StartedAt']
200
+ self.command.dispatch(['restart'], None)
201
+ container.inspect()
202
+ self.assertNotEqual(
203
+ container.dictionary['State']['FinishedAt'],
204
+ '0001-01-01T00:00:00Z',
205
+ )
206
207
+ container.dictionary['State']['StartedAt'],
208
+ started_at,
209
210
+
211
def test_scale(self):
212
project = self.project
213
0 commit comments