aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/single-pod.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/single-pod.js')
-rw-r--r--server/tests/api/single-pod.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/server/tests/api/single-pod.js b/server/tests/api/single-pod.js
index 3125312ca..65d1a7a65 100644
--- a/server/tests/api/single-pod.js
+++ b/server/tests/api/single-pod.js
@@ -77,7 +77,7 @@ describe('Test a single pod', function () {
77 const video = res.body.data[0] 77 const video = res.body.data[0]
78 expect(video.name).to.equal('my super name') 78 expect(video.name).to.equal('my super name')
79 expect(video.description).to.equal('my super description') 79 expect(video.description).to.equal('my super description')
80 expect(video.podUrl).to.equal('localhost:9001') 80 expect(video.podHost).to.equal('localhost:9001')
81 expect(video.magnetUri).to.exist 81 expect(video.magnetUri).to.exist
82 expect(video.author).to.equal('root') 82 expect(video.author).to.equal('root')
83 expect(video.isLocal).to.be.true 83 expect(video.isLocal).to.be.true
@@ -111,7 +111,7 @@ describe('Test a single pod', function () {
111 const video = res.body 111 const video = res.body
112 expect(video.name).to.equal('my super name') 112 expect(video.name).to.equal('my super name')
113 expect(video.description).to.equal('my super description') 113 expect(video.description).to.equal('my super description')
114 expect(video.podUrl).to.equal('localhost:9001') 114 expect(video.podHost).to.equal('localhost:9001')
115 expect(video.magnetUri).to.exist 115 expect(video.magnetUri).to.exist
116 expect(video.author).to.equal('root') 116 expect(video.author).to.equal('root')
117 expect(video.isLocal).to.be.true 117 expect(video.isLocal).to.be.true
@@ -138,7 +138,7 @@ describe('Test a single pod', function () {
138 const video = res.body.data[0] 138 const video = res.body.data[0]
139 expect(video.name).to.equal('my super name') 139 expect(video.name).to.equal('my super name')
140 expect(video.description).to.equal('my super description') 140 expect(video.description).to.equal('my super description')
141 expect(video.podUrl).to.equal('localhost:9001') 141 expect(video.podHost).to.equal('localhost:9001')
142 expect(video.author).to.equal('root') 142 expect(video.author).to.equal('root')
143 expect(video.isLocal).to.be.true 143 expect(video.isLocal).to.be.true
144 expect(video.tags).to.deep.equal([ 'tag1', 'tag2', 'tag3' ]) 144 expect(video.tags).to.deep.equal([ 'tag1', 'tag2', 'tag3' ])
@@ -153,8 +153,8 @@ describe('Test a single pod', function () {
153 }) 153 })
154 }) 154 })
155 155
156 it('Should search the video by podUrl', function (done) { 156 it('Should search the video by podHost', function (done) {
157 videosUtils.searchVideo(server.url, '9001', 'podUrl', function (err, res) { 157 videosUtils.searchVideo(server.url, '9001', 'podHost', function (err, res) {
158 if (err) throw err 158 if (err) throw err
159 159
160 expect(res.body.total).to.equal(1) 160 expect(res.body.total).to.equal(1)
@@ -164,7 +164,7 @@ describe('Test a single pod', function () {
164 const video = res.body.data[0] 164 const video = res.body.data[0]
165 expect(video.name).to.equal('my super name') 165 expect(video.name).to.equal('my super name')
166 expect(video.description).to.equal('my super description') 166 expect(video.description).to.equal('my super description')
167 expect(video.podUrl).to.equal('localhost:9001') 167 expect(video.podHost).to.equal('localhost:9001')
168 expect(video.author).to.equal('root') 168 expect(video.author).to.equal('root')
169 expect(video.isLocal).to.be.true 169 expect(video.isLocal).to.be.true
170 expect(video.tags).to.deep.equal([ 'tag1', 'tag2', 'tag3' ]) 170 expect(video.tags).to.deep.equal([ 'tag1', 'tag2', 'tag3' ])
@@ -190,7 +190,7 @@ describe('Test a single pod', function () {
190 const video = res.body.data[0] 190 const video = res.body.data[0]
191 expect(video.name).to.equal('my super name') 191 expect(video.name).to.equal('my super name')
192 expect(video.description).to.equal('my super description') 192 expect(video.description).to.equal('my super description')
193 expect(video.podUrl).to.equal('localhost:9001') 193 expect(video.podHost).to.equal('localhost:9001')
194 expect(video.author).to.equal('root') 194 expect(video.author).to.equal('root')
195 expect(video.isLocal).to.be.true 195 expect(video.isLocal).to.be.true
196 expect(video.tags).to.deep.equal([ 'tag1', 'tag2', 'tag3' ]) 196 expect(video.tags).to.deep.equal([ 'tag1', 'tag2', 'tag3' ])
@@ -425,7 +425,7 @@ describe('Test a single pod', function () {
425 }) 425 })
426 426
427 it('Should search all the 9001 port videos', function (done) { 427 it('Should search all the 9001 port videos', function (done) {
428 videosUtils.searchVideoWithPagination(server.url, '9001', 'podUrl', 0, 15, function (err, res) { 428 videosUtils.searchVideoWithPagination(server.url, '9001', 'podHost', 0, 15, function (err, res) {
429 if (err) throw err 429 if (err) throw err
430 430
431 const videos = res.body.data 431 const videos = res.body.data
@@ -437,7 +437,7 @@ describe('Test a single pod', function () {
437 }) 437 })
438 438
439 it('Should search all the localhost videos', function (done) { 439 it('Should search all the localhost videos', function (done) {
440 videosUtils.searchVideoWithPagination(server.url, 'localhost', 'podUrl', 0, 15, function (err, res) { 440 videosUtils.searchVideoWithPagination(server.url, 'localhost', 'podHost', 0, 15, function (err, res) {
441 if (err) throw err 441 if (err) throw err
442 442
443 const videos = res.body.data 443 const videos = res.body.data