)]}'
{"samples/tosca-templates/vnfd/tosca-vnfd-scale.yaml":[{"author":{"_account_id":13485,"name":"Sripriya Seetharam","email":"sseetha@brocade.com","username":"Sripriya"},"change_message_id":"1bc16db4da39f9e696f747e4f0388c946dce5439","unresolved":false,"context_lines":[{"line_number":50,"context_line":"      properties:"},{"line_number":51,"context_line":"        network_name: private"},{"line_number":52,"context_line":"        vendor: Tacker"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"  policies:"},{"line_number":55,"context_line":"    - SP1:"},{"line_number":56,"context_line":"        type: tosca.policy.tacker.Scaling"}],"source_content_type":"text/x-yaml","patch_set":18,"id":"1aa78d24_5dbe0301","line":53,"updated":"2016-07-14 21:15:08.000000000","message":"missing VL2 here","commit_id":"d53d127c4be3ef45923efd8e50ccb3fe0152dd63"},{"author":{"_account_id":13380,"name":"Sridhar Ramaswamy","email":"srics.r@gmail.com","username":"srics-r"},"change_message_id":"5cebb5b4e86d86f6bcbd4df7ac2a9b71cfe1950b","unresolved":false,"context_lines":[{"line_number":50,"context_line":"      properties:"},{"line_number":51,"context_line":"        network_name: private"},{"line_number":52,"context_line":"        vendor: Tacker"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"  policies:"},{"line_number":55,"context_line":"    - SP1:"},{"line_number":56,"context_line":"        type: tosca.policy.tacker.Scaling"}],"source_content_type":"text/x-yaml","patch_set":18,"id":"1aa78d24_c08de7d4","line":53,"in_reply_to":"1aa78d24_5dbe0301","updated":"2016-07-15 00:40:29.000000000","message":"why do we need VL2 ? It is not referenced / required for this sample file","commit_id":"d53d127c4be3ef45923efd8e50ccb3fe0152dd63"},{"author":{"_account_id":13485,"name":"Sripriya Seetharam","email":"sseetha@brocade.com","username":"Sripriya"},"change_message_id":"728a50049c81b62a2d28a6ce8dd55c1ac2ddefcb","unresolved":false,"context_lines":[{"line_number":50,"context_line":"      properties:"},{"line_number":51,"context_line":"        network_name: private"},{"line_number":52,"context_line":"        vendor: Tacker"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"  policies:"},{"line_number":55,"context_line":"    - SP1:"},{"line_number":56,"context_line":"        type: tosca.policy.tacker.Scaling"}],"source_content_type":"text/x-yaml","patch_set":18,"id":"dada55a8_5de1a4fd","line":53,"in_reply_to":"1aa78d24_c08de7d4","updated":"2016-07-20 00:56:11.000000000","message":"ah got it, missed it earlier","commit_id":"d53d127c4be3ef45923efd8e50ccb3fe0152dd63"}],"tacker/tests/samples/test_scaling.py":[{"author":{"_account_id":13485,"name":"Sripriya Seetharam","email":"sseetha@brocade.com","username":"Sripriya"},"change_message_id":"1bc16db4da39f9e696f747e4f0388c946dce5439","unresolved":false,"context_lines":[{"line_number":30,"context_line":""},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"class TestSamples(testtools.TestCase):"},{"line_number":33,"context_line":"    def test_samples(self):"},{"line_number":34,"context_line":"        for f in get_list_of_samples():"},{"line_number":35,"context_line":"            with open(f, \u0027r\u0027) as _f:"},{"line_number":36,"context_line":"                yaml_dict \u003d yamlparser.simple_ordered_parse(_f.read())"}],"source_content_type":"text/x-python","patch_set":18,"id":"1aa78d24_1da75b0c","line":33,"range":{"start_line":33,"start_character":8,"end_line":33,"end_character":20},"updated":"2016-07-14 21:15:08.000000000","message":"what is the purpose of having this test?  we can just have scaling func tests that tests the scaling workflow","commit_id":"d53d127c4be3ef45923efd8e50ccb3fe0152dd63"},{"author":{"_account_id":10487,"name":"Kanagaraj Manickam","email":"mkr1481@gmail.com","username":"kanagarajm"},"change_message_id":"6b64e8e93d73c3ca234de8a0fe5b502713e61890","unresolved":false,"context_lines":[{"line_number":30,"context_line":""},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"class TestSamples(testtools.TestCase):"},{"line_number":33,"context_line":"    def test_samples(self):"},{"line_number":34,"context_line":"        for f in get_list_of_samples():"},{"line_number":35,"context_line":"            with open(f, \u0027r\u0027) as _f:"},{"line_number":36,"context_line":"                yaml_dict \u003d yamlparser.simple_ordered_parse(_f.read())"}],"source_content_type":"text/x-python","patch_set":18,"id":"1aa78d24_f132730e","line":33,"range":{"start_line":33,"start_character":8,"end_line":33,"end_character":20},"in_reply_to":"1aa78d24_1da75b0c","updated":"2016-07-15 02:30:56.000000000","message":"this test helps to make sure that the tosca files in the sample folders are proper TOSCA one. not the functionality. the actual functionality is tested in functional test.","commit_id":"d53d127c4be3ef45923efd8e50ccb3fe0152dd63"},{"author":{"_account_id":13485,"name":"Sripriya Seetharam","email":"sseetha@brocade.com","username":"Sripriya"},"change_message_id":"728a50049c81b62a2d28a6ce8dd55c1ac2ddefcb","unresolved":false,"context_lines":[{"line_number":30,"context_line":""},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"class TestSamples(testtools.TestCase):"},{"line_number":33,"context_line":"    def test_samples(self):"},{"line_number":34,"context_line":"        for f in get_list_of_samples():"},{"line_number":35,"context_line":"            with open(f, \u0027r\u0027) as _f:"},{"line_number":36,"context_line":"                yaml_dict \u003d yamlparser.simple_ordered_parse(_f.read())"}],"source_content_type":"text/x-python","patch_set":18,"id":"dada55a8_1da56cb4","line":33,"range":{"start_line":33,"start_character":8,"end_line":33,"end_character":20},"in_reply_to":"1aa78d24_f132730e","updated":"2016-07-20 00:56:11.000000000","message":"we have the vnfd validate method getting introduced for that, and it should take care of validating the templates, i believe we dont need to add scaling template validation here in the tests/samples  directory","commit_id":"d53d127c4be3ef45923efd8e50ccb3fe0152dd63"},{"author":{"_account_id":13380,"name":"Sridhar Ramaswamy","email":"srics.r@gmail.com","username":"srics-r"},"change_message_id":"c75961a23c6f88ba4bb01e5a51a2f356f0c12187","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":21,"id":"dada55a8_f8a64aac","updated":"2016-07-21 13:33:45.000000000","message":"Thanks for proposing this! This is an useful way for the project to start testing TOSCA snippets against tosca-parser library. We should continue to grow this dir for other areas of Tacker\u0027s TOSCA template. I also note this is nothing to do with heat infra_driver, so having this one level above [1] make sense. However I\u0027d suggest we fold this under unit test dir, basically move it to,\n\nhttps://github.com/openstack/tacker/tree/master/tacker/tests/unit/vm\n\n\n[1] https://github.com/openstack/tacker/tree/master/tacker/tests/unit/vm/infra_drivers","commit_id":"647eec789aa9d4f39de7fa06cb06e41b2b44d557"}],"tacker/tests/unit/vm/test_tosca_templates_under_samples.py":[{"author":{"_account_id":13485,"name":"Sripriya Seetharam","email":"sseetha@brocade.com","username":"Sripriya"},"change_message_id":"fa5b9f7971f5ce0d3bb40ea74fa9429be2478e2a","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# All Rights Reserved."},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":4,"context_line":"#    not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":23,"id":"dada55a8_fed69bef","line":1,"updated":"2016-07-25 19:20:20.000000000","message":"i have a bit of concern introducing this as a unit test. i\u0027m not sure how adding this under unit tests is adhering to unit testing framework which is expected to test code bits with specific functionality in a module and  assert that the code is doing what it is expected to do. what are we asserting here? what are we trying to test? verifying the sanity of vnfd templates under samples dir. does not qualify as an unit test IMO.","commit_id":"55fd4bdf019d546488ff06c0f1e3a6e686140f12"},{"author":{"_account_id":13380,"name":"Sridhar Ramaswamy","email":"srics.r@gmail.com","username":"srics-r"},"change_message_id":"d8c6d6a534072e2b98452ecbd0edc04a2d7573d8","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# All Rights Reserved."},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":4,"context_line":"#    not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":23,"id":"dada55a8_d9176343","line":1,"in_reply_to":"dada55a8_a93fbe23","updated":"2016-07-26 01:45:48.000000000","message":"We have been burnt earlier with tosca-parser issues, so having these tests checking library compatibility is the good thing. IMO, the exact location is less important. But sticking to two broad categories - unit (w/o service running) and functional (w/ service running) - make sense.\n\nIf location is the issue, how about tacker/tests/unit/tosca/ ?","commit_id":"55fd4bdf019d546488ff06c0f1e3a6e686140f12"},{"author":{"_account_id":13485,"name":"Sripriya Seetharam","email":"sseetha@brocade.com","username":"Sripriya"},"change_message_id":"fcec14fb9e773ce6768ae313a2fcb52ecd1ee4f4","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# All Rights Reserved."},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":4,"context_line":"#    not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":23,"id":"dada55a8_79c75798","line":1,"in_reply_to":"dada55a8_d9176343","updated":"2016-07-26 01:56:37.000000000","message":"yes this is an useful test. it is not about location, this test is calling the required libraries to parse the templates and assert what? suppose these libraries throw some long trace exception, this test would just dump that as part of the test case run, the user has no way to understand if it is a success test case or negative test case. if this needs to go in as an unit test, we should be asserting if this validation was successful. probably check for the tosca object and also for translated object otherwise assert that they raise the appropriate exceptions.","commit_id":"55fd4bdf019d546488ff06c0f1e3a6e686140f12"},{"author":{"_account_id":10487,"name":"Kanagaraj Manickam","email":"mkr1481@gmail.com","username":"kanagarajm"},"change_message_id":"5efa6c372db640044c4b364cc5590d3ee32678ca","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# All Rights Reserved."},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":4,"context_line":"#    not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":23,"id":"dada55a8_a93fbe23","line":1,"in_reply_to":"dada55a8_fed69bef","updated":"2016-07-26 01:36:56.000000000","message":"The intent here is, to validate the given TOSCA under samples folders and make sure it can be supported by hot-translator. This will make sure that we don\u0027t let improper TOSCA under samples folder.\n\nThis is something like we have the heat-templates repo where each template is validated before adding into it.\n\nSamples also part of tacker and its our responsibility to make sure the templates are valid one under them. those are not functionality test and are very much valid for unit testing.\n\nkindly let me know if you have any doubts further. thanks","commit_id":"55fd4bdf019d546488ff06c0f1e3a6e686140f12"}],"tacker/vm/tosca/lib/tacker_defs.yaml":[{"author":{"_account_id":13485,"name":"Sripriya Seetharam","email":"sseetha@brocade.com","username":"Sripriya"},"change_message_id":"1bc16db4da39f9e696f747e4f0388c946dce5439","unresolved":false,"context_lines":[{"line_number":139,"context_line":"          type: string"},{"line_number":140,"context_line":"        required: true"},{"line_number":141,"context_line":"        description: List of Scaling nodes."},{"line_number":142,"context_line":"      min_instances:"},{"line_number":143,"context_line":"        type: integer"},{"line_number":144,"context_line":"        required: true"},{"line_number":145,"context_line":"        description: Minimum number of instances to scale in."}],"source_content_type":"text/x-yaml","patch_set":18,"id":"1aa78d24_725dee47","line":142,"range":{"start_line":142,"start_character":10,"end_line":142,"end_character":19},"updated":"2016-07-14 21:15:08.000000000","message":"should this be min_nodes instead of instances as you refer them in other places","commit_id":"d53d127c4be3ef45923efd8e50ccb3fe0152dd63"},{"author":{"_account_id":10487,"name":"Kanagaraj Manickam","email":"mkr1481@gmail.com","username":"kanagarajm"},"change_message_id":"6b64e8e93d73c3ca234de8a0fe5b502713e61890","unresolved":false,"context_lines":[{"line_number":139,"context_line":"          type: string"},{"line_number":140,"context_line":"        required: true"},{"line_number":141,"context_line":"        description: List of Scaling nodes."},{"line_number":142,"context_line":"      min_instances:"},{"line_number":143,"context_line":"        type: integer"},{"line_number":144,"context_line":"        required: true"},{"line_number":145,"context_line":"        description: Minimum number of instances to scale in."}],"source_content_type":"text/x-yaml","patch_set":18,"id":"1aa78d24_d12e57a4","line":142,"range":{"start_line":142,"start_character":10,"end_line":142,"end_character":19},"in_reply_to":"1aa78d24_5b08c628","updated":"2016-07-15 02:30:56.000000000","message":"yes, during the spec reviews, we have undergone different namings and finally we concluded to go with this one.","commit_id":"d53d127c4be3ef45923efd8e50ccb3fe0152dd63"},{"author":{"_account_id":13380,"name":"Sridhar Ramaswamy","email":"srics.r@gmail.com","username":"srics-r"},"change_message_id":"5cebb5b4e86d86f6bcbd4df7ac2a9b71cfe1950b","unresolved":false,"context_lines":[{"line_number":139,"context_line":"          type: string"},{"line_number":140,"context_line":"        required: true"},{"line_number":141,"context_line":"        description: List of Scaling nodes."},{"line_number":142,"context_line":"      min_instances:"},{"line_number":143,"context_line":"        type: integer"},{"line_number":144,"context_line":"        required: true"},{"line_number":145,"context_line":"        description: Minimum number of instances to scale in."}],"source_content_type":"text/x-yaml","patch_set":18,"id":"1aa78d24_5b08c628","line":142,"range":{"start_line":142,"start_character":10,"end_line":142,"end_character":19},"in_reply_to":"1aa78d24_725dee47","updated":"2016-07-15 00:40:29.000000000","message":"Current syntax churned by TOSCA Monitoring Adhoc working group is to use \"_instances\" [1]. I\u0027d recommend we stick to that instead of getting creative :)\n\n[1] https://docs.google.com/document/d/1opZu-dJT6ANS-NKrmeyIOHm5sbTom03TqtfV7gWOYb0/edit","commit_id":"d53d127c4be3ef45923efd8e50ccb3fe0152dd63"},{"author":{"_account_id":13485,"name":"Sripriya Seetharam","email":"sseetha@brocade.com","username":"Sripriya"},"change_message_id":"728a50049c81b62a2d28a6ce8dd55c1ac2ddefcb","unresolved":false,"context_lines":[{"line_number":139,"context_line":"          type: string"},{"line_number":140,"context_line":"        required: true"},{"line_number":141,"context_line":"        description: List of Scaling nodes."},{"line_number":142,"context_line":"      min_instances:"},{"line_number":143,"context_line":"        type: integer"},{"line_number":144,"context_line":"        required: true"},{"line_number":145,"context_line":"        description: Minimum number of instances to scale in."}],"source_content_type":"text/x-yaml","patch_set":18,"id":"dada55a8_7dac68a0","line":142,"range":{"start_line":142,"start_character":10,"end_line":142,"end_character":19},"in_reply_to":"1aa78d24_d12e57a4","updated":"2016-07-20 00:56:11.000000000","message":"ok","commit_id":"d53d127c4be3ef45923efd8e50ccb3fe0152dd63"}]}
