-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added t hook and externalise the labels into the properties file * Toltips for Heap and off-heap metrics * Integration Testing * change in the metrics for heap and off-heap memory storage * cache size metrics labels and tooltips
- Loading branch information
Showing
4 changed files
with
106 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
describe('Cache Metrics Overview', () => { | ||
it('successfully checks cache metrics', () => { | ||
cy.visit('http://localhost:11222/console/cache/people', { | ||
headers: { | ||
"Accept-Encoding": "gzip, deflate, br" | ||
} | ||
}); | ||
|
||
//Check for Labels | ||
cy.contains('Metrics (Enabled)').click();; | ||
cy.contains('Current number of entries'); | ||
cy.contains('Minimum number of nodes'); | ||
cy.contains('Size of cache in off-heap memory'); | ||
cy.contains('Size of cache in heap memory'); | ||
|
||
// Check for data greater than -1 | ||
cy.get('dt[aria-label="view-cache-metrics-size"]').invoke('text').then(parseFloat).should('be.gt', -1) | ||
cy.get('dt[aria-label="view-cache-metrics-nodes"]').invoke('text').then(parseFloat).should('be.gt', -1) | ||
}) | ||
|
||
it('successfully checks cache metrics for heap memory', () => { | ||
cy.visit('http://localhost:11222/console/cache/heap-test', { | ||
headers: { | ||
"Accept-Encoding": "gzip, deflate, br" | ||
} | ||
}); | ||
|
||
cy.contains('Metrics (Enabled)').click(); | ||
cy.get('dt[aria-label="view-cache-metrics-heap"]').invoke('text').then(parseFloat).should('be.gt', -1) | ||
|
||
}) | ||
|
||
it('successfully checks cache metrics for off-heap memory', () => { | ||
cy.visit('http://localhost:11222/console/cache/off-heap-test', { | ||
headers: { | ||
"Accept-Encoding": "gzip, deflate, br" | ||
} | ||
}); | ||
|
||
cy.contains('Metrics (Enabled)').click(); | ||
cy.get('dt[aria-label="view-cache-metrics-off-heap"]').invoke('text').then(parseFloat).should('be.gt', -1) | ||
}) | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters