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>
diff --git a/ui-react/src/components/menu/MenuBar.js b/ui-react/src/components/menu/MenuBar.js
index bbfa82a..e211b0e 100644
--- a/ui-react/src/components/menu/MenuBar.js
+++ b/ui-react/src/components/menu/MenuBar.js
@@ -88,7 +88,8 @@
<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 9082ecc..1670124 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 @@
"$$typeof": Symbol(react.forward_ref),
"attrs": Array [],
"componentStyle": ComponentStyle {
- "componentId": "sc-dxgOiQ",
+ "componentId": "sc-eNQAEJ",
"isStatic": false,
"rules": Array [
"
@@ -44,7 +44,7 @@
"displayName": "Styled(Link)",
"foldedComponentIds": Array [],
"render": [Function],
- "styledComponentId": "sc-dxgOiQ",
+ "styledComponentId": "sc-eNQAEJ",
"target": [Function],
"toString": [Function],
"warnTooManyClasses": [Function],
@@ -52,9 +52,60 @@
}
}
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 @@
"$$typeof": Symbol(react.forward_ref),
"attrs": Array [],
"componentStyle": ComponentStyle {
- "componentId": "sc-dxgOiQ",
+ "componentId": "sc-eNQAEJ",
"isStatic": false,
"rules": Array [
"
@@ -99,7 +150,7 @@
"displayName": "Styled(Link)",
"foldedComponentIds": Array [],
"render": [Function],
- "styledComponentId": "sc-dxgOiQ",
+ "styledComponentId": "sc-eNQAEJ",
"target": [Function],
"toString": [Function],
"warnTooManyClasses": [Function],
@@ -117,7 +168,7 @@
"$$typeof": Symbol(react.forward_ref),
"attrs": Array [],
"componentStyle": ComponentStyle {
- "componentId": "sc-dxgOiQ",
+ "componentId": "sc-eNQAEJ",
"isStatic": false,
"rules": Array [
"
@@ -150,7 +201,7 @@
"displayName": "Styled(Link)",
"foldedComponentIds": Array [],
"render": [Function],
- "styledComponentId": "sc-dxgOiQ",
+ "styledComponentId": "sc-eNQAEJ",
"target": [Function],
"toString": [Function],
"warnTooManyClasses": [Function],
@@ -168,7 +219,7 @@
"$$typeof": Symbol(react.forward_ref),
"attrs": Array [],
"componentStyle": ComponentStyle {
- "componentId": "sc-dxgOiQ",
+ "componentId": "sc-eNQAEJ",
"isStatic": false,
"rules": Array [
"
@@ -201,7 +252,7 @@
"displayName": "Styled(Link)",
"foldedComponentIds": Array [],
"render": [Function],
- "styledComponentId": "sc-dxgOiQ",
+ "styledComponentId": "sc-eNQAEJ",
"target": [Function],
"toString": [Function],
"warnTooManyClasses": [Function],
@@ -223,7 +274,7 @@
"$$typeof": Symbol(react.forward_ref),
"attrs": Array [],
"componentStyle": ComponentStyle {
- "componentId": "sc-dxgOiQ",
+ "componentId": "sc-eNQAEJ",
"isStatic": false,
"rules": Array [
"
@@ -256,7 +307,7 @@
"displayName": "Styled(Link)",
"foldedComponentIds": Array [],
"render": [Function],
- "styledComponentId": "sc-dxgOiQ",
+ "styledComponentId": "sc-eNQAEJ",
"target": [Function],
"toString": [Function],
"warnTooManyClasses": [Function],
@@ -274,7 +325,7 @@
"$$typeof": Symbol(react.forward_ref),
"attrs": Array [],
"componentStyle": ComponentStyle {
- "componentId": "sc-dxgOiQ",
+ "componentId": "sc-eNQAEJ",
"isStatic": false,
"rules": Array [
"
@@ -307,7 +358,7 @@
"displayName": "Styled(Link)",
"foldedComponentIds": Array [],
"render": [Function],
- "styledComponentId": "sc-dxgOiQ",
+ "styledComponentId": "sc-eNQAEJ",
"target": [Function],
"toString": [Function],
"warnTooManyClasses": [Function],
@@ -325,7 +376,7 @@
"$$typeof": Symbol(react.forward_ref),
"attrs": Array [],
"componentStyle": ComponentStyle {
- "componentId": "sc-dxgOiQ",
+ "componentId": "sc-eNQAEJ",
"isStatic": false,
"rules": Array [
"
@@ -358,7 +409,7 @@
"displayName": "Styled(Link)",
"foldedComponentIds": Array [],
"render": [Function],
- "styledComponentId": "sc-dxgOiQ",
+ "styledComponentId": "sc-eNQAEJ",
"target": [Function],
"toString": [Function],
"warnTooManyClasses": [Function],
@@ -376,7 +427,7 @@
"$$typeof": Symbol(react.forward_ref),
"attrs": Array [],
"componentStyle": ComponentStyle {
- "componentId": "sc-dxgOiQ",
+ "componentId": "sc-eNQAEJ",
"isStatic": false,
"rules": Array [
"
@@ -409,7 +460,7 @@
"displayName": "Styled(Link)",
"foldedComponentIds": Array [],
"render": [Function],
- "styledComponentId": "sc-dxgOiQ",
+ "styledComponentId": "sc-eNQAEJ",
"target": [Function],
"toString": [Function],
"warnTooManyClasses": [Function],
@@ -427,7 +478,7 @@
"$$typeof": Symbol(react.forward_ref),
"attrs": Array [],
"componentStyle": ComponentStyle {
- "componentId": "sc-dxgOiQ",
+ "componentId": "sc-eNQAEJ",
"isStatic": false,
"rules": Array [
"
@@ -460,7 +511,7 @@
"displayName": "Styled(Link)",
"foldedComponentIds": Array [],
"render": [Function],
- "styledComponentId": "sc-dxgOiQ",
+ "styledComponentId": "sc-eNQAEJ",
"target": [Function],
"toString": [Function],
"warnTooManyClasses": [Function],
@@ -478,7 +529,7 @@
"$$typeof": Symbol(react.forward_ref),
"attrs": Array [],
"componentStyle": ComponentStyle {
- "componentId": "sc-dxgOiQ",
+ "componentId": "sc-eNQAEJ",
"isStatic": false,
"rules": Array [
"
@@ -511,7 +562,7 @@
"displayName": "Styled(Link)",
"foldedComponentIds": Array [],
"render": [Function],
- "styledComponentId": "sc-dxgOiQ",
+ "styledComponentId": "sc-eNQAEJ",
"target": [Function],
"toString": [Function],
"warnTooManyClasses": [Function],
@@ -533,7 +584,7 @@
"$$typeof": Symbol(react.forward_ref),
"attrs": Array [],
"componentStyle": ComponentStyle {
- "componentId": "sc-dxgOiQ",
+ "componentId": "sc-eNQAEJ",
"isStatic": false,
"rules": Array [
"
@@ -566,7 +617,7 @@
"displayName": "Styled(Link)",
"foldedComponentIds": Array [],
"render": [Function],
- "styledComponentId": "sc-dxgOiQ",
+ "styledComponentId": "sc-eNQAEJ",
"target": [Function],
"toString": [Function],
"warnTooManyClasses": [Function],
@@ -599,7 +650,7 @@
"$$typeof": Symbol(react.forward_ref),
"attrs": Array [],
"componentStyle": ComponentStyle {
- "componentId": "sc-dxgOiQ",
+ "componentId": "sc-eNQAEJ",
"isStatic": false,
"rules": Array [
"
@@ -632,7 +683,7 @@
"displayName": "Styled(Link)",
"foldedComponentIds": Array [],
"render": [Function],
- "styledComponentId": "sc-dxgOiQ",
+ "styledComponentId": "sc-eNQAEJ",
"target": [Function],
"toString": [Function],
"warnTooManyClasses": [Function],