Add cypress test to list streams

This commit is contained in:
Jamie Curnow
2025-06-30 11:10:45 +10:00
parent 60a25ffbd5
commit ec81f2489a

View File

@ -210,4 +210,16 @@ describe('Streams', () => {
}); });
}); });
it('Should be able to List Streams', function() {
cy.task('backendApiGet', {
token: token,
path: '/api/nginx/streams?expand=owner,certificate',
}).then((data) => {
cy.validateSwaggerSchema('get', 200, '/nginx/streams', data);
expect(data.length).to.be.greaterThan(0);
expect(data[0]).to.have.property('id');
expect(data[0]).to.have.property('enabled');
});
});
}); });