Skip to content

Commit

Permalink
feat(rhelServices,rhelGraphCard): issues/79 hypervisor api (#121)
Browse files Browse the repository at this point in the history
* rhelGraphCard, minor fix, flip capacity to sockets from physical
* rhelServices, restructure mocks for hypervisor updates
* rhelApiTypes, capacity and products hypervisor sockets breakout
* tests, add socket facets to helpers, graphCard, selectors, types
  • Loading branch information
cdcabrera committed Nov 5, 2019
1 parent 4dc4eaa commit bd1c87c
Show file tree
Hide file tree
Showing 10 changed files with 327 additions and 237 deletions.
90 changes: 45 additions & 45 deletions src/common/__tests__/__snapshots__/graphHelpers.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@ exports[`GraphHelpers should convert graph data and generate tooltips when usage
Object {
"chartData": Array [
Object {
"tooltip": "5 lorem tooltip label June 1",
"tooltip": "10 lorem tooltip label June 1",
"x": 0,
"xAxisLabel": "Jun 1",
"y": 5,
"y": 10,
},
Object {
"tooltip": "7 lorem tooltip label June 2
"tooltip": "12 lorem tooltip label June 2
+2 t('curiosity-graph.tooltipPreviousLabelDaily')",
"x": 1,
"xAxisLabel": "Jun 2",
"y": 7,
"y": 12,
},
Object {
"tooltip": "3 lorem tooltip label June 3
-4 t('curiosity-graph.tooltipPreviousLabelDaily')",
-9 t('curiosity-graph.tooltipPreviousLabelDaily')",
"x": 2,
"xAxisLabel": "Jun 3",
"y": 3,
Expand Down Expand Up @@ -147,21 +147,21 @@ exports[`GraphHelpers should convert graph data and threshold data: threshold ch
Object {
"chartData": Array [
Object {
"tooltip": "5 lorem tooltip label June 1",
"tooltip": "10 lorem tooltip label June 1",
"x": 0,
"xAxisLabel": "Jun 1",
"y": 5,
"y": 10,
},
Object {
"tooltip": "7 lorem tooltip label June 2
"tooltip": "12 lorem tooltip label June 2
+2 t('curiosity-graph.tooltipPreviousLabelDaily')",
"x": 1,
"xAxisLabel": "Jun 2",
"y": 7,
"y": 12,
},
Object {
"tooltip": "3 lorem tooltip label June 3
-4 t('curiosity-graph.tooltipPreviousLabelDaily')",
-9 t('curiosity-graph.tooltipPreviousLabelDaily')",
"x": 2,
"xAxisLabel": "Jun 3",
"y": 3,
Expand All @@ -180,9 +180,9 @@ Object {
],
"chartDataThresholds": Array [
Object {
"tooltip": "ipsum threshhold label: 100",
"tooltip": "ipsum threshhold label: 200",
"x": 0,
"y": 100,
"y": 200,
},
Object {
"x": 1,
Expand All @@ -209,21 +209,21 @@ exports[`GraphHelpers should convert graph data and threshold data: threshold ch
Object {
"chartData": Array [
Object {
"tooltip": "5 lorem tooltip label June 1",
"tooltip": "10 lorem tooltip label June 1",
"x": 0,
"xAxisLabel": "Jun 1",
"y": 5,
"y": 10,
},
Object {
"tooltip": "7 lorem tooltip label June 2
"tooltip": "12 lorem tooltip label June 2
+2 t('curiosity-graph.tooltipPreviousLabelDaily')",
"x": 1,
"xAxisLabel": "Jun 2",
"y": 7,
"y": 12,
},
Object {
"tooltip": "3 lorem tooltip label June 3
-4 t('curiosity-graph.tooltipPreviousLabelDaily')",
-9 t('curiosity-graph.tooltipPreviousLabelDaily')",
"x": 2,
"xAxisLabel": "Jun 3",
"y": 3,
Expand All @@ -249,10 +249,10 @@ exports[`GraphHelpers should handle cross quarter labels: quarter granularity 1`
Object {
"chartData": Array [
Object {
"tooltip": "5 lorem tooltip label April",
"tooltip": "10 lorem tooltip label April",
"x": 0,
"xAxisLabel": "Apr",
"y": 5,
"y": 10,
},
Object {
"x": 1,
Expand All @@ -271,10 +271,10 @@ Object {
"y": 0,
},
Object {
"tooltip": "7 lorem tooltip label April",
"tooltip": "12 lorem tooltip label April",
"x": 4,
"xAxisLabel": "Apr",
"y": 7,
"y": 12,
},
],
"chartDataThresholds": Array [],
Expand All @@ -286,47 +286,47 @@ exports[`GraphHelpers should handle cross year labels: cross year 1`] = `
Object {
"chartData": Array [
Object {
"tooltip": "5 lorem tooltip label December 31",
"tooltip": "10 lorem tooltip label December 31",
"x": 0,
"xAxisLabel": "Dec 31",
"y": 5,
"y": 10,
},
Object {
"tooltip": "7 lorem tooltip label January 1
"tooltip": "12 lorem tooltip label January 1
+2 t('curiosity-graph.tooltipPreviousLabelDaily')",
"x": 1,
"xAxisLabel": "Jan 1",
"y": 7,
"y": 12,
},
Object {
"tooltip": "7 lorem tooltip label January 2",
"tooltip": "12 lorem tooltip label January 2",
"x": 2,
"xAxisLabel": "Jan 2",
"y": 7,
"y": 12,
},
Object {
"tooltip": "7 lorem tooltip label January 3",
"tooltip": "12 lorem tooltip label January 3",
"x": 3,
"xAxisLabel": "Jan 3",
"y": 7,
"y": 12,
},
Object {
"tooltip": "7 lorem tooltip label January 4",
"tooltip": "12 lorem tooltip label January 4",
"x": 4,
"xAxisLabel": "Jan 4",
"y": 7,
"y": 12,
},
Object {
"tooltip": "7 lorem tooltip label January 5 2019",
"tooltip": "12 lorem tooltip label January 5 2019",
"x": 5,
"xAxisLabel": "Jan 5 2019",
"y": 7,
"y": 12,
},
Object {
"tooltip": "7 lorem tooltip label January 6",
"tooltip": "12 lorem tooltip label January 6",
"x": 6,
"xAxisLabel": "Jan 6",
"y": 7,
"y": 12,
},
],
"chartDataThresholds": Array [],
Expand All @@ -348,10 +348,10 @@ Object {
"y": 0,
},
Object {
"tooltip": "3 lorem tooltip label June 3",
"tooltip": "6 lorem tooltip label June 3",
"x": 2,
"xAxisLabel": "Jun 3",
"y": 3,
"y": 6,
},
Object {
"tooltip": "No lorem data",
Expand All @@ -360,27 +360,27 @@ Object {
"y": 0,
},
Object {
"tooltip": "3 lorem tooltip label June 5",
"tooltip": "6 lorem tooltip label June 5",
"x": 4,
"xAxisLabel": "Jun 5",
"y": 3,
"y": 6,
},
],
"chartDataThresholds": Array [
Object {
"tooltip": "ipsum threshhold label: 100",
"tooltip": "ipsum threshhold label: 150",
"x": 0,
"y": 100,
"y": 150,
},
Object {
"tooltip": "ipsum threshhold label: 100",
"tooltip": "ipsum threshhold label: 150",
"x": 1,
"y": 100,
"y": 150,
},
Object {
"tooltip": "ipsum threshhold label: 100",
"tooltip": "ipsum threshhold label: 150",
"x": 2,
"y": 100,
"y": 150,
},
Object {
"x": 3,
Expand Down
Loading

0 comments on commit bd1c87c

Please sign in to comment.