aboutsummaryrefslogtreecommitdiffstats
path: root/sdc-os-chef
diff options
context:
space:
mode:
authorTomasz Golabek <tomasz.golabek@nokia.com>2019-04-12 12:25:50 +0200
committerTomasz Golabek <tomasz.golabek@nokia.com>2019-05-06 09:19:57 +0200
commit3c3c41f8387306d4026465998aa230f1802f01ff (patch)
tree8806f5eeffbdab36751e37ba4e59302f838a818d /sdc-os-chef
parentb7f4a0480943cc390d4146b6e8e9a7afb2a93cea (diff)
Some unit tests for catalog-be
This is the last part of tests for info-models so at least this package should be quite nice covered by test since now. Some refactor made if needed. Change-Id: I78303ae8c5976b4a2c97422517a6df0cbae88e26 Issue-ID: SDC-2220 Signed-off-by: Tomasz Golabek <tomasz.golabek@nokia.com>
Diffstat (limited to 'sdc-os-chef')
0 files changed, 0 insertions, 0 deletions
.highlight .gh { color: #333333 } /* Generic.Heading */ .highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */ .highlight .go { color: #888888 } /* Generic.Output */ .highlight .gp { color: #555555 } /* Generic.Prompt */ .highlight .gs { font-weight: bold } /* Generic.Strong */ .highlight .gu { color: #666666 } /* Generic.Subheading */ .highlight .gt { color: #aa0000 } /* Generic.Traceback */ .highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ .highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ .highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ .highlight .kp { color: #008800 } /* Keyword.Pseudo */ .highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ .highlight .kt { color: #888888; font-weight: bold } /* Keyword.Type */ .highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */ .highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */ .highlight .na { color: #336699 } /* Name.Attribute */ .highlight .nb { color: #003388 } /* Name.Builtin */ .highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */ .highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ .highlight .nd { color: #555555 } /* Name.Decorator */ .highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
# Copyright © 2017 Amdocs, Bell Canada
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#       http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

#################################################################
# Global configuration defaults.
#################################################################
global:
  nodePortPrefix: 302
  readinessRepository: oomk8s
  readinessImage: readiness-check:2.0.0
#################################################################
# Application configuration defaults.
#################################################################
# application image
repository: nexus3.onap.org:10001
image: onap/cli:2.0.2
pullPolicy: Always
flavor: small

# application configuration
config:
  climode: daemon

# default number of instances
replicaCount: 1

nodeSelector: {}

affinity: {}

# probe configuration parameters
liveness:
  initialDelaySeconds: 10
  periodSeconds: 10
  # necessary to disable liveness probe when setting breakpoints
  # in debugger so K8s doesn't restart unresponsive container
  enabled: true

readiness:
  initialDelaySeconds: 10
  periodSeconds: 10

service:
  type: NodePort
  name: cli
  externalPort: 8080
  externalPort1: 9090
  internalPort: "80"
  internalPort1: 8080
  nodePort: "60"
  nodePort1: "71"

ingress:
  enabled: false

  # We usually recommend not to specify default resources and to leave this as a conscious
  # choice for the user. This also increases chances charts run on environments with little
  # resources, such as Minikube. If you do want to specify resources, uncomment the following
  # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
  #
  # Example:
  # Configure resource requests and limits
  # ref: http://kubernetes.io/docs/user-guide/compute-resources/
  # Minimum memory for development is 2 CPU cores and 4GB memory
  # Minimum memory for production is 4 CPU cores and 8GB memory
resources:
  small:
    limits:
      cpu: 1
      memory: 2Gi
    requests:
      cpu: 1
      memory: 2Gi
  large:
    limits:
      cpu: 4
      memory: 8Gi
    requests:
      cpu: 4
      memory: 8Gi
000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
{
  "node_types" : {
    "component-netconf-executor" : {
      "description" : "This is Netconf Transaction Configuration Component API",
      "version" : "1.0.0",
      "attributes" : {
        "response-data" : {
          "required" : false,
          "type" : "json"
        }
      },
      "capabilities" : {
        "component-node" : {
          "type" : "tosca.capabilities.Node"
        }
      },
      "requirements" : {
        "netconf-connection" : {
          "capability" : "netconf",
          "node" : "vnf-netconf-device",
          "relationship" : "tosca.relationships.ConnectsTo"
        }
      },
      "interfaces" : {
        "ComponentNetconfExecutor" : {
          "operations" : {
            "process" : {
              "inputs" : {
                "script-type" : {
                  "description" : "Script type, kotlin type is supported",
                  "required" : true,
                  "type" : "string",
                  "constraints" : [ {
                    "valid_values" : [ "kotlin", "jython", "internal" ]
                  } ],
                  "default" : "internal"
                },
                "script-class-reference" : {
                  "description" : "Kotlin Script class name or jython script name.",
                  "required" : true,
                  "type" : "string"
                },
                "instance-dependencies" : {
                  "description" : "Instance names to inject to Jython or Kotlin Script.",
                  "required" : true,
                  "type" : "list",
                  "entry_schema" : {
                    "type" : "string"
                  }
                },
                "dynamic-properties" : {
                  "description" : "Dynamic Json Content or DSL Json reference.",
                  "required" : false,
                  "type" : "json"
                }
              },
              "outputs" : {
                "response-data" : {
                  "description" : "Execution Response Data in JSON format.",
                  "required" : false,
                  "type" : "string"
                },
                "status" : {
                  "description" : "Status of the Component Execution ( success or failure )",
                  "required" : true,
                  "type" : "string"
                }
              }
            }
          }
        }
      },
      "derived_from" : "tosca.nodes.Component"
    },
    "component-resource-resolution" : {
      "description" : "This is Resource Assignment Component API",
      "version" : "1.0.0",
      "attributes" : {
        "assignment-params" : {
          "required" : true,
          "type" : "string"
        }
      },
      "capabilities" : {
        "component-node" : {
          "type" : "tosca.capabilities.Node"
        }
      },
      "interfaces" : {
        "ResourceResolutionComponent" : {
          "operations" : {
            "process" : {
              "inputs" : {
                "resolution-key" : {
                  "description" : "Key for service instance related correlation.",
                  "required" : false,
                  "type" : "string"
                },
                "occurrence" : {
                  "description" : "Number of time to perform the resolution.",
                  "required" : false,
                  "type" : "integer",
                  "default" : 1
                },
                "store-result" : {
                  "description" : "Whether or not to store the output.",
                  "required" : false,
                  "type" : "boolean"
                },
                "resource-type" : {
                  "description" : "Request type.",
                  "required" : false,
                  "type" : "string"
                },
                "artifact-prefix-names" : {
                  "description" : "Template , Resource Assignment Artifact Prefix names",
                  "required" : true,
                  "type" : "list",
                  "entry_schema" : {
                    "type" : "string"
                  }
                },
                "request-id" : {
                  "description" : "Request Id, Unique Id for the request.",
                  "required" : true,
                  "type" : "string"
                },
                "resource-id" : {
                  "description" : "Resource Id.",
                  "required" : false,
                  "type" : "string"
                },
                "action-name" : {
                  "description" : "Action Name of the process",
                  "required" : false,
                  "type" : "string"
                },
                "dynamic-properties" : {
                  "description" : "Dynamic Json Content or DSL Json reference.",
                  "required" : false,
                  "type" : "json"
                }
              },
              "outputs" : {
                "resource-assignment-params" : {
                  "required" : true,
                  "type" : "string"
                },
                "status" : {
                  "required" : true,
                  "type" : "string"
                }
              }
            }
          }
        }
      },
      "derived_from" : "tosca.nodes.Component"
    },
    "source-capability" : {
      "description" : "This is Component Resource Source Node Type",
      "version" : "1.0.0",
      "properties" : {
        "script-type" : {
          "required" : true,
          "type" : "string",
          "constraints" : [ {
            "valid_values" : [ "kotlin", "internal", "jython" ]
          } ],
          "default" : "kotlin"
        },
        "script-class-reference" : {
          "description" : "Capability reference name for internal and kotlin, for jython script file path",
          "required" : true,
          "type" : "string"
        },
        "instance-dependencies" : {
          "description" : "Instance dependency Names to Inject to Kotlin / Jython Script.",
          "required" : false,
          "type" : "list",
          "entry_schema" : {
            "type" : "string"
          }
        },
        "key-dependencies" : {
          "description" : "Resource Resolution dependency dictionary names.",
          "required" : true,
          "type" : "list",
          "entry_schema" : {
            "type" : "string"
          }
        }
      },
      "derived_from" : "tosca.nodes.ResourceSource"
    },
    "source-db" : {
      "description" : "This is Database Resource Source Node Type",
      "version" : "1.0.0",
      "properties" : {
        "type" : {
          "required" : true,
          "type" : "string",
          "constraints" : [ {
            "valid_values" : [ "SQL", "PLSQL" ]
          } ],
          "default" : "SQL"
        },
        "endpoint-selector" : {
          "required" : false,
          "type" : "string"
        },
        "query" : {
          "required" : true,
          "type" : "string"
        },
        "input-key-mapping" : {
          "required" : false,
          "type" : "map",
          "entry_schema" : {
            "type" : "string"
          }
        },
        "output-key-mapping" : {
          "required" : false,
          "type" : "map",
          "entry_schema" : {
            "type" : "string"
          }
        },
        "key-dependencies" : {
          "required" : true,
          "type" : "list",
          "entry_schema" : {
            "type" : "string"
          }
        }
      },
      "derived_from" : "tosca.nodes.ResourceSource"
    },
    "source-default" : {
      "description" : "This is Default Resource Source Node Type",
      "version" : "1.0.0",
      "properties" : { },
      "derived_from" : "tosca.nodes.ResourceSource"
    },
    "source-input" : {
      "description" : "This is Input Resource Source Node Type",
      "version" : "1.0.0",
      "properties" : { },
      "derived_from" : "tosca.nodes.ResourceSource"
    },
    "source-rest" : {
      "description" : "This is Rest Resource Source Node Type",
      "version" : "1.0.0",
      "properties" : {
        "type" : {
          "required" : true,
          "type" : "string",
          "constraints" : [ {
            "valid_values" : [ "JSON" ]
          } ],
          "default" : "JSON"
        },
        "verb" : {
          "required" : true,
          "type" : "string",
          "constraints" : [ {
            "valid_values" : [ "GET", "POST", "DELETE", "PUT" ]
          } ],
          "default" : "GET"
        },
        "payload" : {
          "required" : false,
          "type" : "string",
          "default" : ""
        },
        "endpoint-selector" : {
          "required" : false,
          "type" : "string"
        },
        "url-path" : {
          "required" : true,
          "type" : "string"
        },
        "path" : {
          "required" : true,
          "type" : "string"
        },
        "expression-type" : {
          "required" : false,
          "type" : "string",
          "constraints" : [ {
            "valid_values" : [ "JSON_PATH", "JSON_POINTER" ]
          } ],
          "default" : "JSON_PATH"
        },
        "input-key-mapping" : {
          "required" : false,
          "type" : "map",
          "entry_schema" : {
            "type" : "string"
          }
        },
        "output-key-mapping" : {
          "required" : false,
          "type" : "map",
          "entry_schema" : {
            "type" : "string"
          }
        },
        "key-dependencies" : {
          "required" : true,
          "type" : "list",
          "entry_schema" : {
            "type" : "string"
          }
        }
      },
      "derived_from" : "tosca.nodes.ResourceSource"
    },
    "tosca.nodes.Component" : {
      "description" : "This is default Component Node",
      "version" : "1.0.0",
      "derived_from" : "tosca.nodes.Root"
    },
    "tosca.nodes.ResourceSource" : {
      "description" : "TOSCA base type for Resource Sources",
      "version" : "1.0.0",
      "derived_from" : "tosca.nodes.Root"
    },
    "tosca.nodes.Vnf" : {
      "description" : "This is VNF Node Type",
      "version" : "1.0.0",
      "derived_from" : "tosca.nodes.Root"
    },
    "vnf-netconf-device" : {
      "description" : "This is VNF Device with Netconf  Capability",
      "version" : "1.0.0",
      "capabilities" : {
        "netconf" : {
          "type" : "tosca.capabilities.Netconf",
          "properties" : {
            "login-key" : {
              "required" : true,
              "type" : "string",
              "default" : "sdnc"
            },
            "login-account" : {
              "required" : true,
              "type" : "string",
              "default" : "sdnc-tacacs"
            },
            "source" : {
              "required" : false,
              "type" : "string",
              "default" : "npm"
            },
            "target-ip-address" : {
              "required" : true,
              "type" : "string"
            },
            "port-number" : {
              "required" : true,
              "type" : "integer",
              "default" : 830
            },
            "connection-time-out" : {
              "required" : false,
              "type" : "integer",
              "default" : 30
            }
          }
        }
      },
      "derived_from" : "tosca.nodes.Vnf"
    }
  }
}