Skip to content

Commit

Permalink
Check for inequality in ISM tests (#1623)
Browse files Browse the repository at this point in the history
Signed-off-by: Kshitij Tandon <[email protected]>
  • Loading branch information
tandonks authored Nov 4, 2024
1 parent 884fdb5 commit 8411d69
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ describe('Aliases', () => {
body: { test: 'test' },
});

// confirm uncommitted_operations is 1 after indexing doc
// confirm uncommitted_operations is not 0 after indexing doc
cy.request({
method: 'GET',
url: `${Cypress.env('openSearchUrl')}/${sample_alias}/_stats/translog`,
Expand All @@ -167,7 +167,7 @@ describe('Aliases', () => {
);
let num =
response_obj['_all']['total']['translog']['uncommitted_operations'];
expect(num).to.equal(1);
expect(num).not.equal(0);
});

cy.get('[data-test-subj="moreAction"] button')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ describe('Data stream', () => {
body: { '@timestamp': 123123123 },
});

// confirm uncommitted_operations is 1 after indexing doc
// confirm uncommitted_operations is not 0 after indexing doc
cy.request({
method: 'GET',
url: `${Cypress.env('openSearchUrl')}/ds-/_stats/translog`,
Expand All @@ -110,7 +110,7 @@ describe('Data stream', () => {
);
let num =
response_obj['_all']['total']['translog']['uncommitted_operations'];
expect(num).to.equal(1);
expect(num).not.equal(0);
});

cy.get('[data-test-subj="moreAction"]').click();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ describe('Indices', () => {
body: { test: 'test' },
});

// confirm uncommitted_operations is 1 after indexing doc
// confirm uncommitted_operations is not 0 after indexing doc
cy.request({
method: 'GET',
url: `${Cypress.env('openSearchUrl')}/${SAMPLE_INDEX}/_stats/translog`,
Expand All @@ -628,7 +628,7 @@ describe('Indices', () => {
);
let num =
response_obj['_all']['total']['translog']['uncommitted_operations'];
expect(num).to.equal(1);
expect(num).not.equal(0);
});

// Select an index
Expand Down Expand Up @@ -678,7 +678,7 @@ describe('Indices', () => {
body: { test: 'test' },
});

// confirm uncommitted_operations is 1 after indexing doc
// confirm uncommitted_operations is not 0 after indexing doc
cy.request({
method: 'GET',
url: `${Cypress.env('openSearchUrl')}/${SAMPLE_INDEX}/_stats/translog`,
Expand All @@ -688,7 +688,7 @@ describe('Indices', () => {
);
let num =
response_obj['_all']['total']['translog']['uncommitted_operations'];
expect(num).to.equal(1);
expect(num).not.equal(0);
});

cy.get('[data-test-subj="moreAction"]').click();
Expand Down

0 comments on commit 8411d69

Please sign in to comment.