parser.git
7 years agoAdd parser install script for functest 05/18305/4
shangxdy [Wed, 10 Aug 2016 08:21:27 +0000 (16:21 +0800)]
Add parser install script for functest

As a tester;
I want functest prepare the test env for parser;
So it 's necessary to create parser_install.sh script for functest when
building docker image.

JIRA:PARSER-84
Change-Id: I3cc2cbba4d90b676ca362e54242f52afc3387e72
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
7 years agoCheck the user, role and project existence when reset test env. 93/18193/5
shangxdy [Tue, 9 Aug 2016 05:02:11 +0000 (13:02 +0800)]
Check the user, role and project existence when reset test env.

Currently when deploying stack is error in functest, it will call
reset_parser_test automatically,  but when the reset_parser_test itself
is error, the reset of user/project/role will error again, so t's
necessary to check the user, role and project existence when reset test
env.

JIRA:PARSER-83

Change-Id: If22ba162691ab3e4e7581e381524ac1a09dca2f5
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
7 years agoReplace -f to --template-file in heat-translator and fix errors 91/18191/1
shangxdy [Tue, 9 Aug 2016 03:57:24 +0000 (11:57 +0800)]
Replace -f to --template-file in heat-translator and fix errors

1. Replace -f to --template-file in heat-translator;
2. Replace heat-translator with openstack template translate later;
3. Modify echo infomations.

JIRA:PARSER-82

Change-Id: I545cb4a38bcdb107c1992b6e02810a46ac9ef201
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
7 years agoService template with substitution mapping definition can deployed 79/17979/2
shangxdy [Wed, 3 Aug 2016 19:05:47 +0000 (03:05 +0800)]
Service template with substitution mapping definition can deployed
standalone

According to specification of
http://docs.oasis-open.org/tosca/TOSCA-Simple-Profile-YAML/v1.0/TOSCA-Simple-Profile-YAML-v1.0.html,the
two main use cases:
1. No matter whether or not the service template has substitution
mapping definition,it can be deployed standalone;
2. Also can be imported and used as nested service template substituted
a node template with substitution mapping definition;
3. substitution mapping will expose node_type,may expose capabilities
and requirements.

JIRA:PARSER-78

Change-Id: I81ac940545f946925f6aa96a1b2ca0ccc9bbb076
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
7 years agoAdd relationship of node template associated with tosca template in 77/17977/1
shangxdy [Wed, 3 Aug 2016 18:50:00 +0000 (02:50 +0800)]
Add relationship of node template associated with tosca template in
substitution mapping

As a nested template desinger;
I want to known the tosca template which a substituted node template
associated;
So i will create the relationship under node template which is
substituted.

JIRA:PARSER-76

Change-Id: Ifb9883e5c5f630cd7f1b5d1292eddb54ad4c20be
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
7 years agoDistinguish the mapping and mapped by name. 55/17855/3
shangxdy [Sat, 30 Jul 2016 18:10:03 +0000 (02:10 +0800)]
Distinguish the mapping and mapped by name.

1. Use complete name like nested_topology_tpls here and other places
like get_nested_topology_tpls for better readability;
2. Use "sub_mapped_node_tpl" instead of submaped_node_tpl;
3. Use sub_mapped_  instead of submaped.

Upper changed in substitution_mappings.py, tosca_template.py,
tosca_template.py and others

JIRA:PARSER-73
Change-Id: I21b2d3a35773078d7437bbae9ff5d1522608c4d2
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
7 years agoMerge "Parser miss files(*.conf, *.yaml, *.meta, *.sh) when create a distribution"
julien zhang [Wed, 3 Aug 2016 08:11:54 +0000 (08:11 +0000)]
Merge "Parser miss files(*.conf, *.yaml, *.meta, *.sh) when create a distribution"

7 years agoMerge "Use the real yaml file in testcase of system.yaml"
julien zhang [Wed, 3 Aug 2016 08:10:39 +0000 (08:10 +0000)]
Merge "Use the real yaml file in testcase of system.yaml"

7 years agoParser miss files(*.conf, *.yaml, *.meta, *.sh) when create a 45/17945/2
shangxdy [Wed, 3 Aug 2016 03:05:21 +0000 (11:05 +0800)]
Parser miss files(*.conf, *.yaml, *.meta, *.sh) when create a
distribution

when create a source or binary distribution, Parser project miss the
follow files:
1. heat_translator
   1) heat_translator_logging.conf;
   2) translator.conf
   3) all yaml files in tests directories;
   4) all bash script in  tests directories;
   5) all python script in tests directories;
2. toscad-parser
   1) TOSCA_definition_1_0.yaml in elements directory;
   2) TOSCA_nfv_definition_1_0.yaml in nfv directory;
   3) all yaml files in tests directories;
   4) all bash script in  tests directories;
   5) all python script in tests directories;
All the missed files above will cause the parser work failure

JIRA:PARSER-75
Change-Id: I124eeff4b94607a68cbba2f2d7f754cba8671a42
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
7 years agoMerge "Doesn't support nested exceptioncollector when implement the nested tosca...
julien zhang [Tue, 2 Aug 2016 21:26:41 +0000 (21:26 +0000)]
Merge "Doesn't support nested exceptioncollector when implement the nested tosca template"

7 years agoClear the test env when it is finished 51/17851/4
shangxdy [Sat, 30 Jul 2016 17:16:21 +0000 (01:16 +0800)]
Clear the test env when it is finished

As a tester;
I want to return the initial state of a test case;
So i will clear the env when a testcase is finished.

Change-Id: Ibeaa24d7fc29bab03d87719239fce965ef4dea26
JIRA:PARSER-71
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
7 years agoUse the real yaml file in testcase of system.yaml 57/17857/1
shangxdy [Sun, 31 Jul 2016 06:39:16 +0000 (14:39 +0800)]
Use the real yaml file in testcase of system.yaml

As a tester;
I want to make sure of the validation of substitution mappings in system
chain.
So i use the real test yaml file and delete the old.

Change-Id: Id3dee02d8af5b221b654a3ee79e28f0ad5b53868
JIRA:PARSER-74
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
7 years agoDoesn't support nested exceptioncollector when implement the nested 53/17853/1
shangxdy [Sat, 30 Jul 2016 17:32:11 +0000 (01:32 +0800)]
Doesn't support nested exceptioncollector when implement the nested
tosca template

After the netsted tosca template is implemented, the ExceptionCollector
doesn't work in netsted template, because the exceptions are reset by
upper tosca template.
The solution is judging if support nested node template before starting
or stop exceptioncollector.

Change-Id: Ic48bcb639031391a6771db2f7235b674b22be837
JIRA:PARSER-72
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
7 years agotosca-parser support the semantic of substitution mapping 29/17329/5
shangxdy [Thu, 21 Jul 2016 12:02:51 +0000 (20:02 +0800)]
tosca-parser support the semantic of substitution mapping

As a template designer,
I want to using node template substitution for model composition or
chaining subsystems.
So firstly tosca-paser should support the substitution mappings
analysis.

Change-Id: I44371795504415ba8cf5a15f7e1d046e3ff00ade
JIRA: PARSER-43
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
7 years agoMerge "Add transaction subsystem definition in the use case of substitution_mappings"
shangxdy [Fri, 29 Jul 2016 12:54:07 +0000 (12:54 +0000)]
Merge "Add transaction subsystem definition in the use case of substitution_mappings"

7 years agoAdd transaction subsystem definition in the use case of 27/17327/2
shangxdy [Thu, 21 Jul 2016 11:50:29 +0000 (19:50 +0800)]
Add transaction subsystem definition in the use case of
substitution_mappings

As a developer;
I want to implement the function of substitution_mapping;
So that will complete the test file about transaction subsystem
definitions for example.

Change-Id: I5e44c2b4933afadf96743641279016af5afc39e0
JIRA: PARSER-68
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
7 years agoAdd queuing subsystem definition in the use case of substitution_mappings 23/17323/2
shangxdy [Thu, 21 Jul 2016 11:09:16 +0000 (19:09 +0800)]
Add queuing subsystem definition in the use case of substitution_mappings

As a developer;
I want to implement the function of substitution_mapping;
So that will complete the test file about queuing subsystem definitions.

Change-Id: I0602eb915954a4e35ae9e0d8d4c857822e4725d4
JIRA: PARSER-46
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
7 years agoMerge "Parser integration with functest."
julien zhang [Fri, 29 Jul 2016 01:43:28 +0000 (01:43 +0000)]
Merge "Parser integration with functest."

7 years agoMerge "Add database subsystem definition in the use case of substitution_mappings"
julien zhang [Fri, 29 Jul 2016 01:11:23 +0000 (01:11 +0000)]
Merge "Add database subsystem definition in the use case of substitution_mappings"

7 years agoParser integration with functest. 59/17459/1
shangxdy [Sat, 23 Jul 2016 15:13:51 +0000 (23:13 +0800)]
Parser integration with functest.

As a nfs tosca template designer;
I want to known wether the parse and translation template is correct.
So i use functest project to deploy the template and validate the output
template file.

Change-Id: Ic2d1dba14cf6bd9544d7a57c83256248630f2047
JIRA:PARSER-69
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
7 years agoAdd database subsystem definition in the use case of 25/17325/1
shangxdy [Thu, 21 Jul 2016 11:14:31 +0000 (19:14 +0800)]
Add database subsystem definition in the use case of
substitution_mappings

As a developer;
I want to implement the function of substitution_mapping;
So that will complete the test file about database subsystem
definitions.

Change-Id: I197f971cbdc64963b6c41b2ca3aa3fb86b2fae8b
JIRA: PARSER-47
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
7 years agoSubstitution mappings doesn't supports properties 41/17241/2
shangxdy [Wed, 20 Jul 2016 16:04:19 +0000 (00:04 +0800)]
Substitution mappings doesn't supports properties

According to the simple tosca specification, substitution mapping only
supports key words of node_type, capabilities and requirements, but in
the definition of vRNC, add keywords of properties, so it will be
deleted

Change-Id: I45ca5f6d44410e5a6b8cdb448f3f148d63cc1376
JIRA: PARSER-67
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
7 years agoTosca-Pacer doesn't support https proxy. 47/16947/2
shangxdy [Fri, 15 Jul 2016 07:27:59 +0000 (15:27 +0800)]
Tosca-Pacer doesn't support https proxy.

When access CSAR file which is URL and the protocol is https by proxy,
it will be error and the information is below:
toscaparser.common.exception.URLException: Failed to reach server
"https://raw.githubusercontent.com/openstack/tosca- parser/master/toscaparser
/tests/data/custom_types/wordpress.yaml". Reason is: Tunnel
connection failed: 503 Service Unavailable.

The reason of the error is urllib doesn't  support https proxy.

JIRA: PARSER-66

Change-Id: I82ec68d533743527fba613cc362e4241494359d4
Signed-off-by: 10013968 <zhang.jun3g@zte.com.cn>
Signed-off-by: shangxdy <shangxdy@shangxdy.local>
7 years agoDisable py34 in tox temporary 43/17143/1
10013968 [Tue, 19 Jul 2016 14:44:21 +0000 (22:44 +0800)]
Disable py34 in tox temporary

Before the CI environment can perform python 3.4 test, temporary
disable tox py34 in tox.ini. Currently all the submits are blocked for
this.

Change-Id: Ic73cab212eb68e35a5855d3229b8cfe801f92817
Signed-off-by: 10013968 <zhang.jun3g@zte.com.cn>
7 years agoMerge "Initial release documents"
xiaodong shang [Mon, 18 Jul 2016 03:33:14 +0000 (03:33 +0000)]
Merge "Initial release documents"

7 years agoMerge "fix import and vRNC Ctrl_net definition error"
julien zhang [Tue, 12 Jul 2016 00:49:16 +0000 (00:49 +0000)]
Merge "fix import and vRNC Ctrl_net definition error"

7 years agofix import and vRNC Ctrl_net definition error 43/16643/1
shangxdy [Sat, 9 Jul 2016 17:44:07 +0000 (01:44 +0800)]
fix import and vRNC Ctrl_net definition error

1. Currently DM_Port_Ctrl requirement definition
    requirements:
      virtualBinding: DM
      virtualLink: CTRL_Net_Host
   shall be below:
      requirements:
        virtualBinding: DM_Host
        virtualLink: CTRL_Net
2. In function of _load_import_template when import vRNC definition, it will
return "None, None" instead of return Null in case of no value return.

Change-Id: I81d2d471eafff8ebd77eef356e6178e1f7701a22
JIRA: PARSER-65
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
7 years agoFix bug in python3.4: 'dict_keys' object does not support indexing 41/16641/2
shangxdy [Sat, 9 Jul 2016 17:09:02 +0000 (01:09 +0800)]
Fix bug in python3.4: 'dict_keys' object does not support indexing

In python3.4, dictory's function of key() return value is a dict_key object, not list, so the follow code will be error:
    dict x = {1:11, 2:22, 3;33}
    y= x.keys()[0]
 the error is TypeError: 'dict_keys' object does not support indexing, the correct expression is below:
    y = list(x.keys())[0]

So parser's code will be modified refer to above.

Change-Id: I41e0c28167c7823fc735aaf3afc78c1a9a15e9e0
JIRA: PARSER-64
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
7 years agoSynchronise the openstack bugs 85/16585/3
shangxdy [Fri, 8 Jul 2016 07:15:00 +0000 (15:15 +0800)]
Synchronise the openstack bugs

When run unittests through tox, some test cases are always error,
the errors are already done in openstack community, so it's
necessary to synchronise the fixes.

Change-Id: Ib29078e6cc138a474e89c6a2cc90ad7a1db1bb46
JIRA: PARSER-63
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
7 years agoMerge "netsted template validate type error"
julien zhang [Fri, 8 Jul 2016 06:06:58 +0000 (06:06 +0000)]
Merge "netsted template validate type error"

7 years agoMerge "Affinity and anti-affinity translate to heat resource type"
julien zhang [Fri, 8 Jul 2016 06:06:45 +0000 (06:06 +0000)]
Merge "Affinity and anti-affinity translate to heat resource type"

7 years agofix tox error when run unittest 09/16509/1
sxd [Thu, 7 Jul 2016 07:09:15 +0000 (15:09 +0800)]
fix tox error when run unittest

Currently when run "tox -epep8" it's ok, but it will be error when run
 "tox -epy27" or run "tox -epy34", the reason is no file .testr.conf
and .converagerc in project root directory

Change-Id: Ic6ab721738692c389d63bc2d84a4c2a21b397778
JIRA: PARSER-62
Signed-off-by: sxd <shang.xiaodong@zte.com.cn>
7 years agoAffinity and anti-affinity translate to heat resource type 35/16335/3
shangxdy [Mon, 4 Jul 2016 16:14:21 +0000 (00:14 +0800)]
Affinity and anti-affinity translate to heat resource type

Translate simple tosca policy types of tosca.policy.Placement.Colocate
and tosca.policy.Placement.Antilocate into heat resource
type(nova::servergroup and nova::server)

Change-Id: Icbe8c51c158886608a196951df19e9a503cb786a
JIRA: PARSER-39
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
7 years agoMerge "The grouptype's parent_type definition is error"
julien zhang [Mon, 4 Jul 2016 10:16:29 +0000 (10:16 +0000)]
Merge "The grouptype's parent_type definition is error"

7 years agoMerge "Divide VDU into soft component and VDU for the vRNC case"
julien zhang [Mon, 4 Jul 2016 10:11:59 +0000 (10:11 +0000)]
Merge "Divide VDU into soft component and VDU for the vRNC case"

7 years agoMerge "fix error when run unittest case"
julien zhang [Mon, 4 Jul 2016 10:11:35 +0000 (10:11 +0000)]
Merge "fix error when run unittest case"

7 years agoMerge "EntityTemplate has no property of parent_type"
julien zhang [Mon, 4 Jul 2016 10:05:45 +0000 (10:05 +0000)]
Merge "EntityTemplate has no property of parent_type"

7 years agoMerge "The artifacttype's parent_type definition is error"
julien zhang [Mon, 4 Jul 2016 10:03:58 +0000 (10:03 +0000)]
Merge "The artifacttype's parent_type definition is error"

7 years agoThe grouptype's parent_type definition is error 49/15549/3
shangxdy [Tue, 14 Jun 2016 16:24:41 +0000 (00:24 +0800)]
The grouptype's parent_type definition is error

1. Group type define parent_type, but it shall be statuefulentity, not string,
 so the method of is_derived_from in group entity may be error when it's called.
2. The bug will submit to openstack community.

Change-Id: I6e78b9dbf9ad0593db9246d34be29d8ec6f092ed
JIRA: PARSER-54
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
7 years agofix error when run unittest case 31/16231/1
shangxdy [Fri, 1 Jul 2016 02:38:20 +0000 (10:38 +0800)]
fix error when run unittest case

when run tox -epy27, there are errors in function of test_relationship
for key in relation.keys():
    rel_tpl = relation.get(key).get_relationship_template()
    if rel_tpl:
        self.assertEqual(
            rel_tpl[0].type, "tosca.relationships.ConnectsTo")
rel_tpl is a list so real_tpl[0].type can be other value, not only
tosca.relationships.ConnectsTo.

JIRA: PARSER:61

Change-Id: Ibdc7307888f5281ac0bd806088483f8c46416968
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
7 years agoMerge "Incorrect inheritance of requirements in NodeType"
julien zhang [Thu, 30 Jun 2016 16:26:05 +0000 (16:26 +0000)]
Merge "Incorrect inheritance of requirements in NodeType"

7 years agoMerge "The relationship type's parent_type definition is not complete"
julien zhang [Thu, 30 Jun 2016 16:25:55 +0000 (16:25 +0000)]
Merge "The relationship type's parent_type definition is not complete"

7 years agoMerge "The policytype's parent_type definition is error"
julien zhang [Thu, 30 Jun 2016 16:25:42 +0000 (16:25 +0000)]
Merge "The policytype's parent_type definition is error"

7 years agoInitial release documents 97/16197/2
Julien [Thu, 30 Jun 2016 16:05:29 +0000 (00:05 +0800)]
Initial release documents

Submit initial release documents according to opnfvdocs project
requirement in Berlin Summit

JIRA: PARSER-60

Change-Id: I6eb650259c4da521aee1918842a6d0bfe06a6a0d
Signed-off-by: Julien <zhang.jun3g@zte.com.cn>
7 years agonetsted template validate type error 93/16093/1
shangxdy [Wed, 29 Jun 2016 08:10:49 +0000 (16:10 +0800)]
netsted template validate type error

When import nested template, validate type error, in the
validate list lack the type of "topology_template"

Change-Id: Ic16e02f460dc59936dfc5a361a21b9533f0e5e83
JIRA: PARSER-58
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
7 years agoDivide VDU into soft component and VDU for the vRNC case 59/15759/2
shangxdy [Thu, 16 Jun 2016 17:04:33 +0000 (01:04 +0800)]
Divide VDU into soft component and VDU for the vRNC case

Currently the heat-translator can't translate the VDU with interface,
so VDU shall be divided into SoftComponent and VDU, and the interface
will be expressed in SoftComponent node.

Change-Id: I1f0e0c6bef88ed66edd39e21e4e6221eb15e3188
JIRA: PARSER-57
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
7 years agoThe artifacttype's parent_type definition is error 47/15547/6
shangxdy [Tue, 14 Jun 2016 15:37:36 +0000 (23:37 +0800)]
The artifacttype's parent_type definition is error

1. Artifact type  define parent_type, but it shall be statuefulentity,
not string, so the method of is_derived_from in artifact entity may
be error when it's called.
2. The bug will submit to openstack community.

Change-Id: I8e64a28da0287ff5653da69a0cf15016c8ed937f
JIRA: PARSER-53
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
7 years agoEntityTemplate has no property of parent_type 05/15505/4
shangxdy [Tue, 14 Jun 2016 07:28:35 +0000 (15:28 +0800)]
EntityTemplate has no property of parent_type

1. EntityTemplate is the parent of NodeTemplate,but there is no definition
of parent_type definition, so the method of is_derived_from will be error
when call the parent_type's method.
2. The bug will submit to openstack community.

Change-Id: If6d360932fd610f001934d23aac63e11ac16fddf
JIRA: PARSER-51
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
7 years agoMerge "The definition in test file subsystem.yaml is error"
julien zhang [Thu, 16 Jun 2016 09:25:25 +0000 (09:25 +0000)]
Merge "The definition in test file subsystem.yaml is error"

7 years agoMerge "Nodetype's logical is incomplete"
julien zhang [Thu, 16 Jun 2016 09:25:12 +0000 (09:25 +0000)]
Merge "Nodetype's logical is incomplete"

7 years agoIncorrect inheritance of requirements in NodeType 29/15629/1
shangxdy [Wed, 15 Jun 2016 15:24:44 +0000 (23:24 +0800)]
Incorrect inheritance of requirements in NodeType

1. When define a new NodeType that inherits from a normative
type that has some requirements, and if the reqirement item
name is same as parent's, there will be duplicated requirements,
not override the parent's item.
2. The bug will submit to openstack community.

Change-Id: I22f6e723179a8a8c334d37c1a69b7039dc1f6ae7
JIRA: PARSER-56
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
7 years agoMerge "Create vRNC test code."
julien zhang [Wed, 15 Jun 2016 08:15:21 +0000 (08:15 +0000)]
Merge "Create vRNC test code."

7 years agoMerge "Create test case about nfv tosca"
julien zhang [Wed, 15 Jun 2016 08:14:08 +0000 (08:14 +0000)]
Merge "Create test case about nfv tosca"

7 years agoMerge "tosco-parser supports importing the other service with topology template"
julien zhang [Wed, 15 Jun 2016 08:11:35 +0000 (08:11 +0000)]
Merge "tosco-parser supports importing the other service with topology template"

7 years agoThe relationship type's parent_type definition is not complete 55/15555/1
shangxdy [Tue, 14 Jun 2016 17:40:50 +0000 (01:40 +0800)]
The relationship type's parent_type definition is not complete

1. Relationship type define parent_type, but it shall include custom def,
so the method of is_derived_from in group entity may be error when it's called.
2. The bug will submit to openstack community.

Change-Id: Ia12b18543e3b1d28bfb946abd11b546a9eba9669
JIRA: PARSER-55
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
7 years agoThe policytype's parent_type definition is error 11/15511/3
shangxdy [Tue, 14 Jun 2016 09:31:14 +0000 (17:31 +0800)]
The policytype's parent_type definition is error

1. policy type define parent_type, but it shall be statefulentity, not string,
so the method of is_derived_from in policy entity may be error
when it's called.
2. The bug will submit to openstack community.

Change-Id: I25e1cb04e9c13eea6d47ed0bfeac961f59146842
JIRA: PARSER-52
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
7 years agoCreate vRNC test code. 23/15423/4
shangxdy [Sun, 12 Jun 2016 16:12:51 +0000 (00:12 +0800)]
Create vRNC test code.

Unit test code for vRNC case.

JIRA: PARSER-34

Change-Id: Ie4a0431e3cdfd56d2ef42760da30a8f2bb6fdb5d
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
7 years agoCreate test case about nfv tosca 19/15419/3
shangxdy [Sun, 12 Jun 2016 14:45:41 +0000 (22:45 +0800)]
Create test case about nfv tosca

As a developer;
I want to known the availability of current nfv tosca
definitions about node types, capabilities types and
relationship types.
So i create some test cases to validate it.

JIRA: PARSER-34

Change-Id: Id57e38c066eea1d2090a816f5129aa95de464d32
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
7 years agotosco-parser supports importing the other service with 71/15171/2
shangxdy [Sat, 4 Jun 2016 17:37:11 +0000 (01:37 +0800)]
tosco-parser supports importing the other service with
topology template

As a tosca-parser developer;
I want to implement the function of substitution_mapping;
So that must support the import topology template firstly

Change-Id: Ie26aab712e7870e1ec345ad654460bb84014f207
JIRA: PARSER-48
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
7 years agoThe definition in test file subsystem.yaml is error 69/15169/1
shangxdy [Sat, 4 Jun 2016 16:48:12 +0000 (00:48 +0800)]
The definition in test file subsystem.yaml is error

1. The input parameter my_cpus in definition of subsystem.yaml
lack the default value, so when the file subsystem.yaml is error
 when used as a node template implementation.
2. The bug will be submitted to openstack community.

Change-Id: I1f912dab47fe3751d0a992b02dd2a2253af6f158
JIRA: PARSER-45
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
8 years agoNodetype's logical is incomplete 91/14691/4
shangxdy [Thu, 26 May 2016 07:41:41 +0000 (15:41 +0800)]
Nodetype's logical is incomplete

When node is selected by abstract description and the node capability
is customed, None will be return.

JIRA:PARSER-41

Change-Id: I4b3e7233f766aac61a4ffc363c000bb3ebea19ad
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
8 years agoAdding two new committers 43/14843/2
Aric Gardner [Mon, 30 May 2016 18:04:07 +0000 (14:04 -0400)]
Adding two new committers

Change-Id: I356c88886d698f4527a65696f17f946aa6d07a32
Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
8 years agoMerge "Minor changes for better reading"
Julien [Fri, 27 May 2016 09:29:49 +0000 (09:29 +0000)]
Merge "Minor changes for better reading"

8 years agoMerge "bugs:The code in function of get_all_requirements is duplicated"
julien zhang [Thu, 19 May 2016 08:22:37 +0000 (08:22 +0000)]
Merge "bugs:The code in function of get_all_requirements is duplicated"

8 years agoMerge "Add attributes of address to tosca.nodes.nfv.CP address"
julien zhang [Thu, 19 May 2016 08:21:00 +0000 (08:21 +0000)]
Merge "Add attributes of address to tosca.nodes.nfv.CP address"

8 years agoMerge "Add affinity policy type definition"
julien zhang [Thu, 19 May 2016 08:19:10 +0000 (08:19 +0000)]
Merge "Add affinity policy type definition"

8 years agoMerge "Update the vRNC definition against the latest nfv tosca definition"
julien zhang [Thu, 19 May 2016 08:17:18 +0000 (08:17 +0000)]
Merge "Update the vRNC definition against the latest nfv tosca definition"

8 years agoMerge "Update the vRNC types(node types/relation types) definiton"
julien zhang [Thu, 19 May 2016 08:14:55 +0000 (08:14 +0000)]
Merge "Update the vRNC types(node types/relation types) definiton"

8 years agoMerge "Update the nfv tosca definietion against the latest spec"
julien zhang [Thu, 19 May 2016 08:14:05 +0000 (08:14 +0000)]
Merge "Update the nfv tosca definietion against the latest spec"

8 years agobugs:The code in function of get_all_requirements is duplicated 63/14163/1
shangxdy [Sun, 15 May 2016 18:52:29 +0000 (14:52 -0400)]
bugs:The code in function of get_all_requirements is duplicated

1、The virtualLink requirement of tosca.nodes.nfv.CP defined below:
In nodetype.py, the most code in functon of get_all_requirements is not
needed,becuase the property of requirements has realized the main logical
in current get_all_requirements. So the duplicated code will be deleted.

2、The bug will be submitted to openstack community.

JIRA: PARSER-37

Change-Id: I1a346ffc388546dd9c65a1b8d32e32859150d077
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
8 years agoAdd attributes of address to tosca.nodes.nfv.CP address 61/14161/1
shangxdy [Sun, 15 May 2016 18:33:58 +0000 (14:33 -0400)]
Add attributes of address to tosca.nodes.nfv.CP address

According to the openstack comments, it's necessary to add the attribute
of address, which was deleted because the IP_address was duplication to
CP's parent's attributes.
The related modifications are refer to:
1. https://gerrit.opnfv.org/gerrit/#/c/12567.
2. https://bugs.launchpad.net/tosca-parser/+bug/1574715.

JIRA: PARSER-36

Change-Id: I6bf894cbba440013175df478cce00fa08906dc19
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
8 years agoUpdate the vRNC definition against the latest nfv tosca definition 11/12711/2
shangxdy [Wed, 27 Apr 2016 11:43:38 +0000 (07:43 -0400)]
Update the vRNC definition against the latest nfv tosca definition

Update the vRNC definition according to the latest vRNC type.
include node_templates, groups, policies and outputs.

JIRA:PARSER-31

Change-Id: Ie69a8e4480188ffad8247d68e5c15085bbb44848
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
8 years agoUpdate the vRNC types(node types/relation types) definiton 09/12709/3
shangxdy [Wed, 27 Apr 2016 11:29:43 +0000 (07:29 -0400)]
Update the vRNC types(node types/relation types) definiton

Update the vRNC type definition according to the nfv tosca definiton.
include MM, CM, DM and LB.

JIRA:PARSER-35

Change-Id: I3017c93081bc77fc2ac1e4633f4232f130f6b4de
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
8 years agoUpdate the nfv tosca definietion against the latest spec 05/12405/6
shangxdy [Mon, 18 Apr 2016 11:45:56 +0000 (07:45 -0400)]
Update the nfv tosca definietion against the latest spec

Base types are modified:
1.tosca.nodes.nfv.VDU:
  from tosca.nodes.SoftwareComponent to tosca.nodes.Compute
2.tosca.nodes.nfv.CP:
  from tosca.nodes.Root to tosca.nodes.network.Port
3.tosca.nodes.nfv.VL:
   from tosca.nodes.Root to tosca.nodes.network.Network
4.tosca.relationships.nfv.VirtualBindsTo:
  from tosca.relationships.ConnectsTo to tosca.relationships.network.BindsTo
5. tosca.relationships.nfv.VirtualLinksTo:
  from tosca.relationships.ConnectsTo to tosca.relationships.network.LinksTo
6. tosca.capabilities.nfv.VirtualBindable: i
  from tosca.capabilities.Root to tosca.capabilities.network.Bindable
7. tosca.capabilities.nfv.VirtualLinkable:
  from tosca.capabilities.Root to tosca.capabilities.network.Linkable.

JIRA:PARSER-30

Change-Id: If6f32cf891a979ae88c345980930451f876ad9e0
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
8 years agoAdd affinity policy type definition 99/12699/1
shangxdy [Wed, 27 Apr 2016 08:44:41 +0000 (04:44 -0400)]
Add affinity policy type definition

Add two definition in parser:
 tosca.policy.Placement.Colocate
 tosca.policy.Placement.Antilocate

JIRA:PARSER-33

Change-Id: I0259bbc1ce2616dcbc28a912c34a7513e9432ff5
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
8 years agoMerge "update docs build names in .gitignore"
julien zhang [Wed, 27 Apr 2016 07:18:41 +0000 (07:18 +0000)]
Merge "update docs build names in .gitignore"

8 years agoMinor changes for better reading 97/12697/1
Julien [Wed, 27 Apr 2016 06:23:16 +0000 (14:23 +0800)]
Minor changes for better reading

1. minor changes for better reading(heading spaces, tail dot)
   and compatible with some edit tools, such as vim
2. L20: new people To new contributors
3. L33: sequence

Change-Id: I50b89310ddf176a0872c60363b69cdf979b37abc
Signed-off-by: Julien <zhang.jun3g@zte.com.cn>
8 years agoBug:tosca.nodes.nfv.CP definition is error 67/12567/2
shangxdy [Fri, 22 Apr 2016 12:04:03 +0000 (08:04 -0400)]
Bug:tosca.nodes.nfv.CP definition is error

 1、The virtualLink requirement of tosca.nodes.nfv.CP defined below:
     - virtualLink:
         capability: tosca.capabilities.VirtualLinkable
   But the tosca.capabilities.VirtualLinkable does not exsit in simple
   tosca(which is tosca.capabilities.Linkable), it should be
   tosca.capabilities.nfv.VirtualLinkable in nfv tosca.

   Additonally, the attribute definition of IP_address in CP is not
   needed because the parent node type tosca.nodes.network.Port
   also includes the same attributes ip_address.

 2、The bug will be submitted to openstack community.

JIRA:PARSER-32

Change-Id: I8f70747675dd6623380493d0436d9516c545d705
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
8 years agoMerge "Update tosca lib to version 0.5"
julien zhang [Fri, 22 Apr 2016 08:43:26 +0000 (08:43 +0000)]
Merge "Update tosca lib to version 0.5"

8 years agoEstablish Parser Governance 21/12421/1
zhipengh [Mon, 18 Apr 2016 15:05:58 +0000 (23:05 +0800)]
Establish Parser Governance

Change-Id: I9a2963cc2bd4a77448ed7ac623582d91ff94d60d

8 years agoUpdate tosca lib to version 0.5 09/12009/2
shangxdy [Thu, 7 Apr 2016 18:08:49 +0000 (14:08 -0400)]
Update tosca lib to version 0.5

Use tosca-parser and heat-translator to analyze to the basic
nfv-tosca type definitions, and use simple tosca new feature
such as policy, group and trigger, which are now supported by
the latest version of tosca-parser and heat-translator.

JIRA:PARSER-18

Change-Id: I797bcacbb5b32005d0aeb0f3f32851ac96e30f01
Signed--off-by: shangxdy <shang.xiaodong@zte.com.cn>
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
8 years agodocs: fix issues 47/10847/4
Ryota MIBU [Thu, 25 Feb 2016 18:38:12 +0000 (03:38 +0900)]
docs: fix issues

Change-Id: Ie0917b70674a7a16c89c8e6bc79aed5e436cabdd
Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
8 years agoParser Contributor Update 2: add shitao and lingli 99/8799/2
zhipengh [Sun, 31 Jan 2016 00:48:37 +0000 (08:48 +0800)]
Parser Contributor Update 2: add shitao and lingli

Change-Id: I7915929ab219aa392f45f4867f34ad2dcc981c4e

8 years agoMerge "Parser Contributor Update"
zhipengh [Thu, 28 Jan 2016 03:21:10 +0000 (03:21 +0000)]
Merge "Parser Contributor Update"

8 years agoupdate parser document 37/7837/8
MatthewLi [Mon, 25 Jan 2016 07:44:55 +0000 (02:44 -0500)]
update parser document

JIRA: PARSER-14

document format has been updated, this patch is to improve the document
in parser project to satisfy the requirement of sphinx.

Change-Id: I629fa84a1b0333e9b59c24cdf7444733f7b35582
Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
8 years agoMerge "Yang to TOSCA output template for test case."
Zhipeng (Howard) Huang [Tue, 26 Jan 2016 00:37:47 +0000 (00:37 +0000)]
Merge "Yang to TOSCA output template for test case."

8 years agoParser Contributor Update 37/7937/1
zhipengh [Tue, 26 Jan 2016 00:34:24 +0000 (08:34 +0800)]
Parser Contributor Update

Change-Id: I271ed953474d62365094be486935e592714a22c3

8 years agoJIRA:PARSER-1 -docs for yang2tosca patch set-3 77/5877/4
shiva-charan.m-s [Fri, 8 Jan 2016 15:47:02 +0000 (09:47 -0600)]
JIRA:PARSER-1 -docs for yang2tosca patch set-3

Signed-off-by: shiva-charan.m-s <shiva-charan.m-s@hp.com>
8 years agoYang to TOSCA output template for test case. 97/5397/3
shangxdy [Thu, 31 Dec 2015 08:23:16 +0000 (16:23 +0800)]
Yang to TOSCA output template for test case.

As a test engineer,I want to understand how to verify the output of
yang-to-tosca based specific input.so that I can define output template.

JIRA:PARSER-16

Change-Id: Id17e86db9667715e43615195570854ae1ead5e8b
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
8 years agoupdate docs build names in .gitignore 47/5847/1
Ryota MIBU [Fri, 8 Jan 2016 02:41:28 +0000 (11:41 +0900)]
update docs build names in .gitignore

Change-Id: I48a65818a652d2e221dc8450e4f52d7ae053f3b8
Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
8 years agoJIRA:PARSER-17 Clean up documentation setup 51/5751/3
zhipengh [Thu, 7 Jan 2016 08:33:16 +0000 (16:33 +0800)]
JIRA:PARSER-17 Clean up documentation setup

Change-Id: I2863a76a5d5417c184283fdf97282c94359162dc

8 years agoMerge "Define a general nfv Tosca template(new)"
Zhipeng (Howard) Huang [Tue, 5 Jan 2016 00:14:12 +0000 (00:14 +0000)]
Merge "Define a general nfv Tosca template(new)"

8 years agoJIRA:PARSER-15 Provide Standalone Heat-Translator Liberty Pypi Packages 23/5023/1
zhipengh [Tue, 22 Dec 2015 07:04:53 +0000 (15:04 +0800)]
JIRA:PARSER-15 Provide Standalone Heat-Translator Liberty Pypi Packages

8 years agoDefine a general nfv Tosca template(new) 45/4945/5
shangxdy [Mon, 21 Dec 2015 11:37:39 +0000 (19:37 +0800)]
Define a general nfv Tosca template(new)

Define a general nfv Tosca template, which supports ETSI/MANO standard.
Recheck for changed documents architecture.

JIRA:PARSER-6

Change-Id: I0c6f0571c8a5dffbe0bc281d68f2b9542952bf7d
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
8 years agoMerge "Define a TOSCA template for a vRNC(new)"
julien zhang [Mon, 21 Dec 2015 09:05:29 +0000 (09:05 +0000)]
Merge "Define a TOSCA template for a vRNC(new)"

8 years agoThe documents for simple vRNC TOSCA template definition(new) 03/4803/3
shangxdy [Thu, 17 Dec 2015 15:33:54 +0000 (23:33 +0800)]
The documents for simple vRNC TOSCA template definition(new)

As a Parser developer,
I want to konwn the detailed description of TOSCA definition for to  a vRNC,
so that I can translate it to heat-template.
Recheck for changing file format from md to rst.

JIRA:PARSER-13

Change-Id: Id666eb076e1ec3bbd428f9a1b6bad1491e3f0d7a
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
8 years agoNew Keywods documentation for parser(new). 23/4423/4
shangxdy [Mon, 14 Dec 2015 09:07:02 +0000 (17:07 +0800)]
New Keywods documentation for parser(new).

As a user,I need a manual and want to understand how to use all and
the new introduced keywords to define a vRNC, so that I can use it
to define myown vRNC.
Recheck for changing file format from md to rst.

JIRA:PARSER-10

Change-Id: Ie7e16ac6f9eede57462d4c83e8acad51ceecc857
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
8 years agoDefine a TOSCA template for a vRNC(new) 37/4837/2
shangxdy [Fri, 18 Dec 2015 08:27:00 +0000 (16:27 +0800)]
Define a TOSCA template for a vRNC(new)

Define a vRNC(an VNF of Radio Network Controller) by using TOSCA template.
Recheck for changed documents architecture.

JIRA:PARSER-7

Change-Id: I3164b262b2cf3e82f0afc6e3663331d886741c96
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
8 years agoMerge "updates to use new doc toolchain"
julien zhang [Tue, 15 Dec 2015 16:28:21 +0000 (16:28 +0000)]
Merge "updates to use new doc toolchain"

8 years agohow to use docs today in OPNFV 15/4315/5
MatthewLi [Fri, 11 Dec 2015 07:56:50 +0000 (23:56 -0800)]
how to use docs today in OPNFV

JIRA: PARSER-14

please see the documents under /docs directory

Change-Id: I7cae579f40b61baec2b277142689be25ba1ca75f
Signed-off-by: MatthewLi <matthew.lijun@huawei.com>