Skip to content

Commit ec81f24

Browse files
committed
Add cypress test to list streams
1 parent 60a25ff commit ec81f24

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/cypress/e2e/api/Streams.cy.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,4 +210,16 @@ describe('Streams', () => {
210210
});
211211
});
212212

213+
it('Should be able to List Streams', function() {
214+
cy.task('backendApiGet', {
215+
token: token,
216+
path: '/api/nginx/streams?expand=owner,certificate',
217+
}).then((data) => {
218+
cy.validateSwaggerSchema('get', 200, '/nginx/streams', data);
219+
expect(data.length).to.be.greaterThan(0);
220+
expect(data[0]).to.have.property('id');
221+
expect(data[0]).to.have.property('enabled');
222+
});
223+
});
224+
213225
});

0 commit comments

Comments
 (0)