Skip to content

Commit

Permalink
integ tests for denied ips
Browse files Browse the repository at this point in the history
Signed-off-by: Riya Saxena <[email protected]>
  • Loading branch information
riysaxen-amzn committed Sep 27, 2024
1 parent 926113c commit b7a8891
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .cypress/integration/channels.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ describe('Test create channels', () => {
const updateLocalClusterSettings = (denyList) => {
cy.request({
method: 'PUT',
url: 'http://localhost:9200/_cluster/settings', // Change to your local Elasticsearch URL
url: 'http://localhost:9200/_cluster/settings',
body: {
persistent: {
opensearch: {
Expand All @@ -203,7 +203,6 @@ describe('Test create channels', () => {
},
},
}).then((response) => {
// Optionally handle the response to confirm the settings were updated
expect(response.status).to.eq(200);
expect(response.body).to.have.property('acknowledged', true);
});
Expand All @@ -215,7 +214,7 @@ describe('Test create channels', () => {
'169.254.0.1',
'10.0.0.1',
'255.255.255.255'
]; // List of CIDRs to test
];

updateLocalClusterSettings(deniedIps);

Expand Down

0 comments on commit b7a8891

Please sign in to comment.