Skip to content

Commit

Permalink
fix(productViews): product configs, test timestamps (RedHatInsights#857)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdcabrera committed Jan 18, 2022
1 parent de19628 commit d8a1828
Show file tree
Hide file tree
Showing 12 changed files with 41 additions and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Object {
},
Object {
"title": <DateFormat
date="lorem date obj"
date="2022-01-01T00:00:00.000Z"
/>,
},
],
Expand Down Expand Up @@ -44,7 +44,7 @@ Object {
},
"lastSeen": Object {
"title": "t(curiosity-inventory.header, {\\"context\\":\\"lastSeen\\"})",
"value": "lorem date obj",
"value": "2022-01-01T00:00:00.000Z",
},
"loremIpsum": Object {
"title": "t(curiosity-inventory.header, {\\"context\\":\\"loremIpsum\\"})",
Expand Down Expand Up @@ -76,7 +76,7 @@ Object {
},
Object {
"title": <DateFormat
date="lorem date obj"
date="2022-01-01T00:00:00.000Z"
/>,
},
],
Expand Down Expand Up @@ -109,7 +109,7 @@ Object {
},
"lastSeen": Object {
"title": "t(curiosity-inventory.header, {\\"context\\":\\"lastSeen\\"})",
"value": "lorem date obj",
"value": "2022-01-01T00:00:00.000Z",
},
"loremIpsum": Object {
"title": "t(curiosity-inventory.header, {\\"context\\":\\"loremIpsum\\"})",
Expand Down Expand Up @@ -141,7 +141,7 @@ Object {
},
Object {
"title": <DateFormat
date="lorem date obj"
date="2022-01-01T00:00:00.000Z"
/>,
},
],
Expand Down Expand Up @@ -184,7 +184,7 @@ Object {
},
"lastSeen": Object {
"title": "t(curiosity-inventory.header, {\\"context\\":\\"lastSeen\\"})",
"value": "lorem date obj",
"value": "2022-01-01T00:00:00.000Z",
},
"loremIpsum": Object {
"title": "t(curiosity-inventory.header, {\\"context\\":\\"loremIpsum\\"})",
Expand Down Expand Up @@ -327,7 +327,7 @@ Object {
"data": Object {
"nextEventDate": Object {
"title": "t(curiosity-inventory.header, {\\"context\\":\\"nextEventDate\\"})",
"value": "lorem date obj",
"value": "2022-01-01T00:00:00.000Z",
},
"productName": Object {
"title": "t(curiosity-inventory.header, {\\"context\\":\\"productName\\"})",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Object {
},
Object {
"title": <DateFormat
date="lorem date obj"
date="2022-01-01T00:00:00.000Z"
/>,
},
],
Expand Down Expand Up @@ -103,7 +103,7 @@ Object {
},
"lastSeen": Object {
"title": "t(curiosity-inventory.header, {\\"context\\":\\"lastSeen\\"})",
"value": "lorem date obj",
"value": "2022-01-01T00:00:00.000Z",
},
"loremIpsum": Object {
"title": "t(curiosity-inventory.header, {\\"context\\":\\"loremIpsum\\"})",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Object {
},
Object {
"title": <DateFormat
date="lorem date obj"
date="2022-01-01T00:00:00.000Z"
/>,
},
],
Expand Down Expand Up @@ -90,7 +90,7 @@ Object {
},
"lastSeen": Object {
"title": "t(curiosity-inventory.header, {\\"context\\":\\"lastSeen\\"})",
"value": "lorem date obj",
"value": "2022-01-01T00:00:00.000Z",
},
"loremIpsum": Object {
"title": "t(curiosity-inventory.header, {\\"context\\":\\"loremIpsum\\"})",
Expand Down
14 changes: 7 additions & 7 deletions src/config/__tests__/__snapshots__/product.rhel.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Object {
},
Object {
"title": <DateFormat
date="lorem date obj"
date="2022-01-01T00:00:00.000Z"
/>,
},
],
Expand Down Expand Up @@ -44,7 +44,7 @@ Object {
},
"lastSeen": Object {
"title": "t(curiosity-inventory.header, {\\"context\\":\\"lastSeen\\"})",
"value": "lorem date obj",
"value": "2022-01-01T00:00:00.000Z",
},
"loremIpsum": Object {
"title": "t(curiosity-inventory.header, {\\"context\\":\\"loremIpsum\\"})",
Expand Down Expand Up @@ -76,7 +76,7 @@ Object {
},
Object {
"title": <DateFormat
date="lorem date obj"
date="2022-01-01T00:00:00.000Z"
/>,
},
],
Expand Down Expand Up @@ -109,7 +109,7 @@ Object {
},
"lastSeen": Object {
"title": "t(curiosity-inventory.header, {\\"context\\":\\"lastSeen\\"})",
"value": "lorem date obj",
"value": "2022-01-01T00:00:00.000Z",
},
"loremIpsum": Object {
"title": "t(curiosity-inventory.header, {\\"context\\":\\"loremIpsum\\"})",
Expand Down Expand Up @@ -145,7 +145,7 @@ Object {
},
Object {
"title": <DateFormat
date="lorem date obj"
date="2022-01-01T00:00:00.000Z"
/>,
},
],
Expand Down Expand Up @@ -192,7 +192,7 @@ Object {
},
"lastSeen": Object {
"title": "t(curiosity-inventory.header, {\\"context\\":\\"lastSeen\\"})",
"value": "lorem date obj",
"value": "2022-01-01T00:00:00.000Z",
},
"loremIpsum": Object {
"title": "t(curiosity-inventory.header, {\\"context\\":\\"loremIpsum\\"})",
Expand Down Expand Up @@ -359,7 +359,7 @@ Object {
"data": Object {
"nextEventDate": Object {
"title": "t(curiosity-inventory.header, {\\"context\\":\\"nextEventDate\\"})",
"value": "lorem date obj",
"value": "2022-01-01T00:00:00.000Z",
},
"productName": Object {
"title": "t(curiosity-inventory.header, {\\"context\\":\\"productName\\"})",
Expand Down
10 changes: 5 additions & 5 deletions src/config/__tests__/__snapshots__/product.rhosak.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Object {
},
Object {
"title": <DateFormat
date="2020-04-02T00:00:00Z"
date="2022-01-01T00:00:00.000Z"
/>,
},
],
Expand Down Expand Up @@ -70,7 +70,7 @@ Object {
},
"last_seen": Object {
"title": "t(curiosity-inventory.header, {\\"context\\":\\"last_seen\\"})",
"value": "2020-04-02T00:00:00Z",
"value": "2022-01-01T00:00:00.000Z",
},
},
}
Expand Down Expand Up @@ -102,7 +102,7 @@ Object {
},
Object {
"title": <DateFormat
date="2020-04-02T00:00:00Z"
date="2022-01-01T00:00:00.000Z"
/>,
},
],
Expand Down Expand Up @@ -159,7 +159,7 @@ Object {
},
"last_seen": Object {
"title": "t(curiosity-inventory.header, {\\"context\\":\\"last_seen\\"})",
"value": "2020-04-02T00:00:00Z",
"value": "2022-01-01T00:00:00.000Z",
},
},
}
Expand Down Expand Up @@ -269,7 +269,7 @@ Object {
"data": Object {
"nextEventDate": Object {
"title": "t(curiosity-inventory.header, {\\"context\\":\\"nextEventDate\\"})",
"value": "lorem date obj",
"value": "2022-01-01T00:00:00.000Z",
},
"productName": Object {
"title": "t(curiosity-inventory.header, {\\"context\\":\\"productName\\"})",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Object {
},
Object {
"title": <DateFormat
date="lorem date obj"
date="2022-01-01T00:00:00.000Z"
/>,
},
],
Expand Down Expand Up @@ -44,7 +44,7 @@ Object {
},
"lastSeen": Object {
"title": "t(curiosity-inventory.header, {\\"context\\":\\"lastSeen\\"})",
"value": "lorem date obj",
"value": "2022-01-01T00:00:00.000Z",
},
"loremIpsum": Object {
"title": "t(curiosity-inventory.header, {\\"context\\":\\"loremIpsum\\"})",
Expand Down Expand Up @@ -76,7 +76,7 @@ Object {
},
Object {
"title": <DateFormat
date="lorem date obj"
date="2022-01-01T00:00:00.000Z"
/>,
},
],
Expand Down Expand Up @@ -109,7 +109,7 @@ Object {
},
"lastSeen": Object {
"title": "t(curiosity-inventory.header, {\\"context\\":\\"lastSeen\\"})",
"value": "lorem date obj",
"value": "2022-01-01T00:00:00.000Z",
},
"loremIpsum": Object {
"title": "t(curiosity-inventory.header, {\\"context\\":\\"loremIpsum\\"})",
Expand Down Expand Up @@ -145,7 +145,7 @@ Object {
},
Object {
"title": <DateFormat
date="lorem date obj"
date="2022-01-01T00:00:00.000Z"
/>,
},
],
Expand Down Expand Up @@ -192,7 +192,7 @@ Object {
},
"lastSeen": Object {
"title": "t(curiosity-inventory.header, {\\"context\\":\\"lastSeen\\"})",
"value": "lorem date obj",
"value": "2022-01-01T00:00:00.000Z",
},
"loremIpsum": Object {
"title": "t(curiosity-inventory.header, {\\"context\\":\\"loremIpsum\\"})",
Expand Down
6 changes: 3 additions & 3 deletions src/config/__tests__/product.openshiftContainer.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('Product OpenShift Container config', () => {
numberOfGuests: 3,
cores: 20,
sockets: 100,
lastSeen: 'lorem date obj',
lastSeen: '2022-01-01T00:00:00.000Z',
loremIpsum: 'hello world'
};

Expand Down Expand Up @@ -52,7 +52,7 @@ describe('Product OpenShift Container config', () => {
const inventoryData = {
productName: 'lorem',
serviceLevel: 'hello world',
nextEventDate: 'lorem date obj'
nextEventDate: '2022-01-01T00:00:00.000Z'
};

const filteredInventoryData = parseRowCellsListData({
Expand Down Expand Up @@ -85,7 +85,7 @@ describe('Product OpenShift Container config', () => {
displayName: 'lorem',
inventoryId: 'lorem inventory id',
subscriptionManagerId: 'lorem subscription id',
lastSeen: 'lorem date obj',
lastSeen: '2022-01-01T00:00:00.000Z',
loremIpsum: 'hello world'
};

Expand Down
2 changes: 1 addition & 1 deletion src/config/__tests__/product.openshiftDedicated.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ describe('Product OpenShift Dedicated config', () => {
inventoryId: 'lorem inventory id',
coreHours: 12.53,
instanceHours: 20.04,
lastSeen: 'lorem date obj',
lastSeen: '2022-01-01T00:00:00.000Z',
loremIpsum: 'hello world'
};

Expand Down
2 changes: 1 addition & 1 deletion src/config/__tests__/product.openshiftMetrics.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ describe('Product OpenShift Metrics config', () => {
displayName: 'lorem',
inventoryId: 'lorem inventory id',
coreHours: 12.53,
lastSeen: 'lorem date obj',
lastSeen: '2022-01-01T00:00:00.000Z',
loremIpsum: 'hello world'
};

Expand Down
6 changes: 3 additions & 3 deletions src/config/__tests__/product.rhel.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe('Product RHEL config', () => {
numberOfGuests: 3,
sockets: 10,
cores: 12,
lastSeen: 'lorem date obj',
lastSeen: '2022-01-01T00:00:00.000Z',
loremIpsum: 'hello world'
};

Expand Down Expand Up @@ -52,7 +52,7 @@ describe('Product RHEL config', () => {
const inventoryData = {
productName: 'lorem',
serviceLevel: 'hello world',
nextEventDate: 'lorem date obj'
nextEventDate: '2022-01-01T00:00:00.000Z'
};

const filteredInventoryData = parseRowCellsListData({
Expand Down Expand Up @@ -85,7 +85,7 @@ describe('Product RHEL config', () => {
displayName: 'lorem',
inventoryId: 'lorem inventory id',
subscriptionManagerId: 'lorem subscription id',
lastSeen: 'lorem date obj',
lastSeen: '2022-01-01T00:00:00.000Z',
loremIpsum: 'hello world'
};

Expand Down
4 changes: 2 additions & 2 deletions src/config/__tests__/product.rhosak.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ describe('Product RHOSAK config', () => {
[RHSM_API_PATH_METRIC_TYPES.TRANSFER_GIBIBYTES]: 0.0003456,
[RHSM_API_PATH_METRIC_TYPES.STORAGE_GIBIBYTES]: 1000.00123,
[RHSM_API_PATH_METRIC_TYPES.INSTANCE_HOURS]: 200,
[INVENTORY_TYPES.LAST_SEEN]: '2020-04-02T00:00:00Z'
[INVENTORY_TYPES.LAST_SEEN]: '2022-01-01T00:00:00.000Z'
};

const filteredInventoryData = parseRowCellsListData({
Expand Down Expand Up @@ -89,7 +89,7 @@ describe('Product RHOSAK config', () => {
const inventoryData = {
productName: 'lorem',
serviceLevel: 'hello world',
nextEventDate: 'lorem date obj'
nextEventDate: '2022-01-01T00:00:00.000Z'
};

const filteredInventoryData = parseRowCellsListData({
Expand Down
4 changes: 2 additions & 2 deletions src/config/__tests__/product.satellite.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe('Product Satellite config', () => {
numberOfGuests: 3,
sockets: 10,
cores: 12,
lastSeen: 'lorem date obj',
lastSeen: '2022-01-01T00:00:00.000Z',
loremIpsum: 'hello world'
};

Expand Down Expand Up @@ -52,7 +52,7 @@ describe('Product Satellite config', () => {
displayName: 'lorem',
inventoryId: 'lorem inventory id',
subscriptionManagerId: 'lorem subscription id',
lastSeen: 'lorem date obj',
lastSeen: '2022-01-01T00:00:00.000Z',
loremIpsum: 'hello world'
};

Expand Down

0 comments on commit d8a1828

Please sign in to comment.