Commit 8e11d9ba authored by Boxiang Sun's avatar Boxiang Sun

peertube: test debug

parent 2dfc0214
Pipeline #25219 passed with stage
in 0 seconds
......@@ -402,10 +402,9 @@ class TestTheiaResiliencePeertube(test_resiliency.TestTheiaResilience):
self.assertIn('streaming-playlists', video_path)
streaming_video_path = video_path[video_path.index('streaming-playlists'):]
video_url = frontend_url + '/static/' + streaming_video_path
response = requests.get(video_url, verify=False)
response = requests.get(frontend_url, verify=False)
# The video mp4 file is accesible through the URL
# The frontend url is accesible
self.assertEqual(requests.codes['OK'], response.status_code)
video_feeds_url = frontend_url + '/feeds/video.json'
......@@ -423,6 +422,11 @@ class TestTheiaResiliencePeertube(test_resiliency.TestTheiaResilience):
video_title = video_data['items'][0]['title']
self.assertIn("Small test video" in video_title)
video_url = frontend_url + '/static/' + streaming_video_path
response = requests.get(video_url, verify=False)
# The video mp4 file is accesible through the URL
self.assertEqual(requests.codes['OK'], response.status_code)
def _getPeertubePartition(self, servicename):
p = subprocess.Popen(
(self._getSlapos(), 'node', 'status'),
......@@ -442,8 +446,3 @@ class TestTheiaResiliencePeertube(test_resiliency.TestTheiaResilience):
partition = self._getPeertubePartition(servicename)
return self.getPartitionPath(
instance_type, 'srv', 'runner', 'instance', partition, *paths)
def _getPostgresSrvPartitionPath(self, instance_type, servicename, *paths):
partition = self._getPeertubePartition(servicename)
return self.getPartitionPath(
instance_type, 'srv', 'runner', 'instance', partition, *paths)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment