aboutsummaryrefslogtreecommitdiffstats
path: root/ui-react/src/components/menu
diff options
context:
space:
mode:
authordrveerendra <vrajasekharaiah@att.com>2019-11-11 19:37:39 -0500
committerdrveerendra <vrajasekharaiah@att.com>2019-11-18 20:08:46 -0500
commit684057e69bea57d0bd954a84a10581a81d546006 (patch)
tree255f5d878c70862c009b320809d93a84b0436506 /ui-react/src/components/menu
parent715f0ac873dd0301ed85e873a09d4323fef4d40e (diff)
Adding View BP template Menu
Adding View Blue Print templates option under Template menu. Adding few more test cases for ViewTosca Modals to cover the api calls. Issue-ID: CLAMP-544 Change-Id: Ibf881f46fd03e9149a88ccc211a996d99fd74748 Signed-off-by: drveerendra <vrajasekharaiah@att.com>
Diffstat (limited to 'ui-react/src/components/menu')
-rw-r--r--ui-react/src/components/menu/MenuBar.js3
-rw-r--r--ui-react/src/components/menu/__snapshots__/MenuBar.test.js.snap103
2 files changed, 79 insertions, 27 deletions
diff --git a/ui-react/src/components/menu/MenuBar.js b/ui-react/src/components/menu/MenuBar.js
index bbfa82a1..e211b0ea 100644
--- a/ui-react/src/components/menu/MenuBar.js
+++ b/ui-react/src/components/menu/MenuBar.js
@@ -88,7 +88,8 @@ export default class MenuBar extends React.Component {
<Navbar.Collapse>
<StyledNavDropdown title="Template">
- <NavDropdown.Item as={StyledLink} to="/viewToscaModal">View Tosca Model</NavDropdown.Item>
+ <NavDropdown.Item as={StyledLink} to="/viewToscaPolicyModal">View Tosca Policy Models</NavDropdown.Item>
+ <NavDropdown.Item as={StyledLink} to="/viewBlueprintMicroServiceTemplatesModal">View Blueprint MicroService Templates</NavDropdown.Item>
</StyledNavDropdown>
<StyledNavDropdown title="Closed Loop">
<NavDropdown.Item as={StyledLink} to="/openLoop">Open CL</NavDropdown.Item>
diff --git a/ui-react/src/components/menu/__snapshots__/MenuBar.test.js.snap b/ui-react/src/components/menu/__snapshots__/MenuBar.test.js.snap
index 9082eccd..1670124c 100644
--- a/ui-react/src/components/menu/__snapshots__/MenuBar.test.js.snap
+++ b/ui-react/src/components/menu/__snapshots__/MenuBar.test.js.snap
@@ -11,7 +11,7 @@ exports[`Verify MenuBar Test the render method 1`] = `
"$$typeof": Symbol(react.forward_ref),
"attrs": Array [],
"componentStyle": ComponentStyle {
- "componentId": "sc-dxgOiQ",
+ "componentId": "sc-eNQAEJ",
"isStatic": false,
"rules": Array [
"
@@ -44,7 +44,7 @@ exports[`Verify MenuBar Test the render method 1`] = `
"displayName": "Styled(Link)",
"foldedComponentIds": Array [],
"render": [Function],
- "styledComponentId": "sc-dxgOiQ",
+ "styledComponentId": "sc-eNQAEJ",
"target": [Function],
"toString": [Function],
"warnTooManyClasses": [Function],
@@ -52,9 +52,60 @@ exports[`Verify MenuBar Test the render method 1`] = `
}
}
disabled={false}
- to="/viewToscaModal"
+ to="/viewToscaPolicyModal"
>
- View Tosca Model
+ View Tosca Policy Models
+ </DropdownItem>
+ <DropdownItem
+ as={
+ Object {
+ "$$typeof": Symbol(react.forward_ref),
+ "attrs": Array [],
+ "componentStyle": ComponentStyle {
+ "componentId": "sc-eNQAEJ",
+ "isStatic": false,
+ "rules": Array [
+ "
+ color: ",
+ [Function],
+ ";
+ background-color: ",
+ [Function],
+ ";
+ font-weight: normal;
+ display: block;
+ width: 100%;
+ padding: .25rem 1.5rem;
+ clear: both;
+ text-align: inherit;
+ white-space: nowrap;
+ border: 0;
+ :hover {
+ text-decoration: none;
+ background-color: ",
+ [Function],
+ ";
+ color: ",
+ [Function],
+ ";
+ }
+",
+ ],
+ },
+ "displayName": "Styled(Link)",
+ "foldedComponentIds": Array [],
+ "render": [Function],
+ "styledComponentId": "sc-eNQAEJ",
+ "target": [Function],
+ "toString": [Function],
+ "warnTooManyClasses": [Function],
+ "withComponent": [Function],
+ }
+ }
+ disabled={false}
+ to="/viewBlueprintMicroServiceTemplatesModal"
+ >
+ View Blueprint MicroService Templates
</DropdownItem>
</Styled(NavDropdown)>
<Styled(NavDropdown)
@@ -66,7 +117,7 @@ exports[`Verify MenuBar Test the render method 1`] = `
"$$typeof": Symbol(react.forward_ref),
"attrs": Array [],
"componentStyle": ComponentStyle {
- "componentId": "sc-dxgOiQ",
+ "componentId": "sc-eNQAEJ",
"isStatic": false,
"rules": Array [
"
@@ -99,7 +150,7 @@ exports[`Verify MenuBar Test the render method 1`] = `
"displayName": "Styled(Link)",
"foldedComponentIds": Array [],
"render": [Function],
- "styledComponentId": "sc-dxgOiQ",
+ "styledComponentId": "sc-eNQAEJ",
"target": [Function],
"toString": [Function],
"warnTooManyClasses": [Function],
@@ -117,7 +168,7 @@ exports[`Verify MenuBar Test the render method 1`] = `
"$$typeof": Symbol(react.forward_ref),
"attrs": Array [],
"componentStyle": ComponentStyle {
- "componentId": "sc-dxgOiQ",
+ "componentId": "sc-eNQAEJ",
"isStatic": false,
"rules": Array [
"
@@ -150,7 +201,7 @@ exports[`Verify MenuBar Test the render method 1`] = `
"displayName": "Styled(Link)",
"foldedComponentIds": Array [],
"render": [Function],
- "styledComponentId": "sc-dxgOiQ",
+ "styledComponentId": "sc-eNQAEJ",
"target": [Function],
"toString": [Function],
"warnTooManyClasses": [Function],
@@ -168,7 +219,7 @@ exports[`Verify MenuBar Test the render method 1`] = `
"$$typeof": Symbol(react.forward_ref),
"attrs": Array [],
"componentStyle": ComponentStyle {
- "componentId": "sc-dxgOiQ",
+ "componentId": "sc-eNQAEJ",
"isStatic": false,
"rules": Array [
"
@@ -201,7 +252,7 @@ exports[`Verify MenuBar Test the render method 1`] = `
"displayName": "Styled(Link)",
"foldedComponentIds": Array [],
"render": [Function],
- "styledComponentId": "sc-dxgOiQ",
+ "styledComponentId": "sc-eNQAEJ",
"target": [Function],
"toString": [Function],
"warnTooManyClasses": [Function],
@@ -223,7 +274,7 @@ exports[`Verify MenuBar Test the render method 1`] = `
"$$typeof": Symbol(react.forward_ref),
"attrs": Array [],
"componentStyle": ComponentStyle {
- "componentId": "sc-dxgOiQ",
+ "componentId": "sc-eNQAEJ",
"isStatic": false,
"rules": Array [
"
@@ -256,7 +307,7 @@ exports[`Verify MenuBar Test the render method 1`] = `
"displayName": "Styled(Link)",
"foldedComponentIds": Array [],
"render": [Function],
- "styledComponentId": "sc-dxgOiQ",
+ "styledComponentId": "sc-eNQAEJ",
"target": [Function],
"toString": [Function],
"warnTooManyClasses": [Function],
@@ -274,7 +325,7 @@ exports[`Verify MenuBar Test the render method 1`] = `
"$$typeof": Symbol(react.forward_ref),
"attrs": Array [],
"componentStyle": ComponentStyle {
- "componentId": "sc-dxgOiQ",
+ "componentId": "sc-eNQAEJ",
"isStatic": false,
"rules": Array [
"
@@ -307,7 +358,7 @@ exports[`Verify MenuBar Test the render method 1`] = `
"displayName": "Styled(Link)",
"foldedComponentIds": Array [],
"render": [Function],
- "styledComponentId": "sc-dxgOiQ",
+ "styledComponentId": "sc-eNQAEJ",
"target": [Function],
"toString": [Function],
"warnTooManyClasses": [Function],
@@ -325,7 +376,7 @@ exports[`Verify MenuBar Test the render method 1`] = `
"$$typeof": Symbol(react.forward_ref),
"attrs": Array [],
"componentStyle": ComponentStyle {
- "componentId": "sc-dxgOiQ",
+ "componentId": "sc-eNQAEJ",
"isStatic": false,
"rules": Array [
"
@@ -358,7 +409,7 @@ exports[`Verify MenuBar Test the render method 1`] = `
"displayName": "Styled(Link)",
"foldedComponentIds": Array [],
"render": [Function],
- "styledComponentId": "sc-dxgOiQ",
+ "styledComponentId": "sc-eNQAEJ",
"target": [Function],
"toString": [Function],
"warnTooManyClasses": [Function],
@@ -376,7 +427,7 @@ exports[`Verify MenuBar Test the render method 1`] = `
"$$typeof": Symbol(react.forward_ref),
"attrs": Array [],
"componentStyle": ComponentStyle {
- "componentId": "sc-dxgOiQ",
+ "componentId": "sc-eNQAEJ",
"isStatic": false,
"rules": Array [
"
@@ -409,7 +460,7 @@ exports[`Verify MenuBar Test the render method 1`] = `
"displayName": "Styled(Link)",
"foldedComponentIds": Array [],
"render": [Function],
- "styledComponentId": "sc-dxgOiQ",
+ "styledComponentId": "sc-eNQAEJ",
"target": [Function],
"toString": [Function],
"warnTooManyClasses": [Function],
@@ -427,7 +478,7 @@ exports[`Verify MenuBar Test the render method 1`] = `
"$$typeof": Symbol(react.forward_ref),
"attrs": Array [],
"componentStyle": ComponentStyle {
- "componentId": "sc-dxgOiQ",
+ "componentId": "sc-eNQAEJ",
"isStatic": false,
"rules": Array [
"
@@ -460,7 +511,7 @@ exports[`Verify MenuBar Test the render method 1`] = `
"displayName": "Styled(Link)",
"foldedComponentIds": Array [],
"render": [Function],
- "styledComponentId": "sc-dxgOiQ",
+ "styledComponentId": "sc-eNQAEJ",
"target": [Function],
"toString": [Function],
"warnTooManyClasses": [Function],
@@ -478,7 +529,7 @@ exports[`Verify MenuBar Test the render method 1`] = `
"$$typeof": Symbol(react.forward_ref),
"attrs": Array [],
"componentStyle": ComponentStyle {
- "componentId": "sc-dxgOiQ",
+ "componentId": "sc-eNQAEJ",
"isStatic": false,
"rules": Array [
"
@@ -511,7 +562,7 @@ exports[`Verify MenuBar Test the render method 1`] = `
"displayName": "Styled(Link)",
"foldedComponentIds": Array [],
"render": [Function],
- "styledComponentId": "sc-dxgOiQ",
+ "styledComponentId": "sc-eNQAEJ",
"target": [Function],
"toString": [Function],
"warnTooManyClasses": [Function],
@@ -533,7 +584,7 @@ exports[`Verify MenuBar Test the render method 1`] = `
"$$typeof": Symbol(react.forward_ref),
"attrs": Array [],
"componentStyle": ComponentStyle {
- "componentId": "sc-dxgOiQ",
+ "componentId": "sc-eNQAEJ",
"isStatic": false,
"rules": Array [
"
@@ -566,7 +617,7 @@ exports[`Verify MenuBar Test the render method 1`] = `
"displayName": "Styled(Link)",
"foldedComponentIds": Array [],
"render": [Function],
- "styledComponentId": "sc-dxgOiQ",
+ "styledComponentId": "sc-eNQAEJ",
"target": [Function],
"toString": [Function],
"warnTooManyClasses": [Function],
@@ -599,7 +650,7 @@ exports[`Verify MenuBar Test the render method 1`] = `
"$$typeof": Symbol(react.forward_ref),
"attrs": Array [],
"componentStyle": ComponentStyle {
- "componentId": "sc-dxgOiQ",
+ "componentId": "sc-eNQAEJ",
"isStatic": false,
"rules": Array [
"
@@ -632,7 +683,7 @@ exports[`Verify MenuBar Test the render method 1`] = `
"displayName": "Styled(Link)",
"foldedComponentIds": Array [],
"render": [Function],
- "styledComponentId": "sc-dxgOiQ",
+ "styledComponentId": "sc-eNQAEJ",
"target": [Function],
"toString": [Function],
"warnTooManyClasses": [Function],