Review Request 25685: Fixed the test_usage.py script bug - CLOUDSTACK-7555

2014-09-15 Thread Chandan Purushothama

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/25685/
---

Review request for cloudstack, sangeetha hariharan, sanjeev n, and 
SrikanteswaraRao Talluri.


Bugs: CLOUDSTACK-7555
https://issues.apache.org/jira/browse/CLOUDSTACK-7555


Repository: cloudstack-git


Description
---


TestTemplateUsage.test_01_template_usage fails with the following error message 
& Stack Trace

Stacktrace

  File "/usr/lib/python2.7/unittest/case.py", line 332, in run
testMethod()
  File "/root/cloudstack/test/integration/component/test_usage.py", line 802, 
in test_01_template_usage
"Check TEMPLATE.CREATE event in events table"
  File "/usr/lib/python2.7/unittest/case.py", line 516, in assertEqual
assertion_func(first, second, msg=msg)
  File "/usr/lib/python2.7/unittest/case.py", line 509, in _baseAssertEqual
raise self.failureException(msg)
'Check TEMPLATE.CREATE event in events table\n

This is because the Template is being created as admin and it belongs to the 
admin account. The template should belong to the Regular User in order to check 
for the TEMPLATE.CREATE Event.

Fixed the script such that the Template now belongs to the regular account.


Diffs
-

  test/integration/component/test_usage.py e99bb81 

Diff: https://reviews.apache.org/r/25685/diff/


Testing
---

No testing is done.


Thanks,

Chandan Purushothama



Re: Review Request 25685: Fixed the test_usage.py script bug - CLOUDSTACK-7555

2014-09-16 Thread SrikanteswaraRao Talluri

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/25685/#review53506
---



test/integration/component/test_usage.py


Please change this to self.account.name and self.account.domainid


- SrikanteswaraRao Talluri


On Sept. 16, 2014, 6:46 a.m., Chandan Purushothama wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/25685/
> ---
> 
> (Updated Sept. 16, 2014, 6:46 a.m.)
> 
> 
> Review request for cloudstack, sangeetha hariharan, sanjeev n, and 
> SrikanteswaraRao Talluri.
> 
> 
> Bugs: CLOUDSTACK-7555
> https://issues.apache.org/jira/browse/CLOUDSTACK-7555
> 
> 
> Repository: cloudstack-git
> 
> 
> Description
> ---
> 
> 
> TestTemplateUsage.test_01_template_usage fails with the following error 
> message & Stack Trace
> 
> Stacktrace
> 
>   File "/usr/lib/python2.7/unittest/case.py", line 332, in run
> testMethod()
>   File "/root/cloudstack/test/integration/component/test_usage.py", line 802, 
> in test_01_template_usage
> "Check TEMPLATE.CREATE event in events table"
>   File "/usr/lib/python2.7/unittest/case.py", line 516, in assertEqual
> assertion_func(first, second, msg=msg)
>   File "/usr/lib/python2.7/unittest/case.py", line 509, in _baseAssertEqual
> raise self.failureException(msg)
> 'Check TEMPLATE.CREATE event in events table\n
> 
> This is because the Template is being created as admin and it belongs to the 
> admin account. The template should belong to the Regular User in order to 
> check for the TEMPLATE.CREATE Event.
> 
> Fixed the script such that the Template now belongs to the regular account.
> 
> 
> Diffs
> -
> 
>   test/integration/component/test_usage.py e99bb81 
> 
> Diff: https://reviews.apache.org/r/25685/diff/
> 
> 
> Testing
> ---
> 
> No testing is done.
> 
> 
> Thanks,
> 
> Chandan Purushothama
> 
>



Re: Review Request 25685: Fixed the test_usage.py script bug - CLOUDSTACK-7555

2014-09-16 Thread SrikanteswaraRao Talluri

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/25685/#review53507
---


It is good to add test results to the patch.

- SrikanteswaraRao Talluri


On Sept. 16, 2014, 6:46 a.m., Chandan Purushothama wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/25685/
> ---
> 
> (Updated Sept. 16, 2014, 6:46 a.m.)
> 
> 
> Review request for cloudstack, sangeetha hariharan, sanjeev n, and 
> SrikanteswaraRao Talluri.
> 
> 
> Bugs: CLOUDSTACK-7555
> https://issues.apache.org/jira/browse/CLOUDSTACK-7555
> 
> 
> Repository: cloudstack-git
> 
> 
> Description
> ---
> 
> 
> TestTemplateUsage.test_01_template_usage fails with the following error 
> message & Stack Trace
> 
> Stacktrace
> 
>   File "/usr/lib/python2.7/unittest/case.py", line 332, in run
> testMethod()
>   File "/root/cloudstack/test/integration/component/test_usage.py", line 802, 
> in test_01_template_usage
> "Check TEMPLATE.CREATE event in events table"
>   File "/usr/lib/python2.7/unittest/case.py", line 516, in assertEqual
> assertion_func(first, second, msg=msg)
>   File "/usr/lib/python2.7/unittest/case.py", line 509, in _baseAssertEqual
> raise self.failureException(msg)
> 'Check TEMPLATE.CREATE event in events table\n
> 
> This is because the Template is being created as admin and it belongs to the 
> admin account. The template should belong to the Regular User in order to 
> check for the TEMPLATE.CREATE Event.
> 
> Fixed the script such that the Template now belongs to the regular account.
> 
> 
> Diffs
> -
> 
>   test/integration/component/test_usage.py e99bb81 
> 
> Diff: https://reviews.apache.org/r/25685/diff/
> 
> 
> Testing
> ---
> 
> No testing is done.
> 
> 
> Thanks,
> 
> Chandan Purushothama
> 
>



Re: Review Request 25685: Fixed the test_usage.py script bug - CLOUDSTACK-7555

2014-09-17 Thread Chandan Purushothama


> On Sept. 16, 2014, 11:25 a.m., SrikanteswaraRao Talluri wrote:
> > test/integration/component/test_usage.py, line 748
> > 
> >
> > Please change this to self.account.name and self.account.domainid

Talluri,
account is a class attribute. It is not conventionally correct to refer a class 
attribute using object reference(self). Hence I intentionally referenced the 
account via its Class name,

Thank you,
Chandan.


- Chandan


---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/25685/#review53506
---


On Sept. 16, 2014, 6:46 a.m., Chandan Purushothama wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/25685/
> ---
> 
> (Updated Sept. 16, 2014, 6:46 a.m.)
> 
> 
> Review request for cloudstack, sangeetha hariharan, sanjeev n, and 
> SrikanteswaraRao Talluri.
> 
> 
> Bugs: CLOUDSTACK-7555
> https://issues.apache.org/jira/browse/CLOUDSTACK-7555
> 
> 
> Repository: cloudstack-git
> 
> 
> Description
> ---
> 
> 
> TestTemplateUsage.test_01_template_usage fails with the following error 
> message & Stack Trace
> 
> Stacktrace
> 
>   File "/usr/lib/python2.7/unittest/case.py", line 332, in run
> testMethod()
>   File "/root/cloudstack/test/integration/component/test_usage.py", line 802, 
> in test_01_template_usage
> "Check TEMPLATE.CREATE event in events table"
>   File "/usr/lib/python2.7/unittest/case.py", line 516, in assertEqual
> assertion_func(first, second, msg=msg)
>   File "/usr/lib/python2.7/unittest/case.py", line 509, in _baseAssertEqual
> raise self.failureException(msg)
> 'Check TEMPLATE.CREATE event in events table\n
> 
> This is because the Template is being created as admin and it belongs to the 
> admin account. The template should belong to the Regular User in order to 
> check for the TEMPLATE.CREATE Event.
> 
> Fixed the script such that the Template now belongs to the regular account.
> 
> 
> Diffs
> -
> 
>   test/integration/component/test_usage.py e99bb81 
> 
> Diff: https://reviews.apache.org/r/25685/diff/
> 
> 
> Testing
> ---
> 
> No testing is done.
> 
> 
> Thanks,
> 
> Chandan Purushothama
> 
>



Re: Review Request 25685: Fixed the test_usage.py script bug - CLOUDSTACK-7555

2014-09-17 Thread Chandan Purushothama


> On Sept. 16, 2014, 11:26 a.m., SrikanteswaraRao Talluri wrote:
> > It is good to add test results to the patch.

Agreed


- Chandan


---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/25685/#review53507
---


On Sept. 16, 2014, 6:46 a.m., Chandan Purushothama wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/25685/
> ---
> 
> (Updated Sept. 16, 2014, 6:46 a.m.)
> 
> 
> Review request for cloudstack, sangeetha hariharan, sanjeev n, and 
> SrikanteswaraRao Talluri.
> 
> 
> Bugs: CLOUDSTACK-7555
> https://issues.apache.org/jira/browse/CLOUDSTACK-7555
> 
> 
> Repository: cloudstack-git
> 
> 
> Description
> ---
> 
> 
> TestTemplateUsage.test_01_template_usage fails with the following error 
> message & Stack Trace
> 
> Stacktrace
> 
>   File "/usr/lib/python2.7/unittest/case.py", line 332, in run
> testMethod()
>   File "/root/cloudstack/test/integration/component/test_usage.py", line 802, 
> in test_01_template_usage
> "Check TEMPLATE.CREATE event in events table"
>   File "/usr/lib/python2.7/unittest/case.py", line 516, in assertEqual
> assertion_func(first, second, msg=msg)
>   File "/usr/lib/python2.7/unittest/case.py", line 509, in _baseAssertEqual
> raise self.failureException(msg)
> 'Check TEMPLATE.CREATE event in events table\n
> 
> This is because the Template is being created as admin and it belongs to the 
> admin account. The template should belong to the Regular User in order to 
> check for the TEMPLATE.CREATE Event.
> 
> Fixed the script such that the Template now belongs to the regular account.
> 
> 
> Diffs
> -
> 
>   test/integration/component/test_usage.py e99bb81 
> 
> Diff: https://reviews.apache.org/r/25685/diff/
> 
> 
> Testing
> ---
> 
> No testing is done.
> 
> 
> Thanks,
> 
> Chandan Purushothama
> 
>



Re: Review Request 25685: Fixed the test_usage.py script bug - CLOUDSTACK-7555

2014-09-22 Thread SrikanteswaraRao Talluri


> On Sept. 16, 2014, 11:25 a.m., SrikanteswaraRao Talluri wrote:
> > test/integration/component/test_usage.py, line 748
> > 
> >
> > Please change this to self.account.name and self.account.domainid
> 
> Chandan Purushothama wrote:
> Talluri,
> account is a class attribute. It is not conventionally correct to refer a 
> class attribute using object reference(self). Hence I intentionally 
> referenced the account via its Class name,
> 
> Thank you,
> Chandan.

cool. i suggested the above since those class attributes can also be accessed 
by their instances.


- SrikanteswaraRao


---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/25685/#review53506
---


On Sept. 16, 2014, 6:46 a.m., Chandan Purushothama wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/25685/
> ---
> 
> (Updated Sept. 16, 2014, 6:46 a.m.)
> 
> 
> Review request for cloudstack, sangeetha hariharan, sanjeev n, and 
> SrikanteswaraRao Talluri.
> 
> 
> Bugs: CLOUDSTACK-7555
> https://issues.apache.org/jira/browse/CLOUDSTACK-7555
> 
> 
> Repository: cloudstack-git
> 
> 
> Description
> ---
> 
> 
> TestTemplateUsage.test_01_template_usage fails with the following error 
> message & Stack Trace
> 
> Stacktrace
> 
>   File "/usr/lib/python2.7/unittest/case.py", line 332, in run
> testMethod()
>   File "/root/cloudstack/test/integration/component/test_usage.py", line 802, 
> in test_01_template_usage
> "Check TEMPLATE.CREATE event in events table"
>   File "/usr/lib/python2.7/unittest/case.py", line 516, in assertEqual
> assertion_func(first, second, msg=msg)
>   File "/usr/lib/python2.7/unittest/case.py", line 509, in _baseAssertEqual
> raise self.failureException(msg)
> 'Check TEMPLATE.CREATE event in events table\n
> 
> This is because the Template is being created as admin and it belongs to the 
> admin account. The template should belong to the Regular User in order to 
> check for the TEMPLATE.CREATE Event.
> 
> Fixed the script such that the Template now belongs to the regular account.
> 
> 
> Diffs
> -
> 
>   test/integration/component/test_usage.py e99bb81 
> 
> Diff: https://reviews.apache.org/r/25685/diff/
> 
> 
> Testing
> ---
> 
> No testing is done.
> 
> 
> Thanks,
> 
> Chandan Purushothama
> 
>



Re: Review Request 25685: Fixed the test_usage.py script bug - CLOUDSTACK-7555

2014-09-24 Thread SrikanteswaraRao Talluri

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/25685/#review54520
---

Ship it!


f3252db797a6d53a1922a60b29cd6b4914de7d51 master

- SrikanteswaraRao Talluri


On Sept. 16, 2014, 6:46 a.m., Chandan Purushothama wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/25685/
> ---
> 
> (Updated Sept. 16, 2014, 6:46 a.m.)
> 
> 
> Review request for cloudstack, sangeetha hariharan, sanjeev n, and 
> SrikanteswaraRao Talluri.
> 
> 
> Bugs: CLOUDSTACK-7555
> https://issues.apache.org/jira/browse/CLOUDSTACK-7555
> 
> 
> Repository: cloudstack-git
> 
> 
> Description
> ---
> 
> 
> TestTemplateUsage.test_01_template_usage fails with the following error 
> message & Stack Trace
> 
> Stacktrace
> 
>   File "/usr/lib/python2.7/unittest/case.py", line 332, in run
> testMethod()
>   File "/root/cloudstack/test/integration/component/test_usage.py", line 802, 
> in test_01_template_usage
> "Check TEMPLATE.CREATE event in events table"
>   File "/usr/lib/python2.7/unittest/case.py", line 516, in assertEqual
> assertion_func(first, second, msg=msg)
>   File "/usr/lib/python2.7/unittest/case.py", line 509, in _baseAssertEqual
> raise self.failureException(msg)
> 'Check TEMPLATE.CREATE event in events table\n
> 
> This is because the Template is being created as admin and it belongs to the 
> admin account. The template should belong to the Regular User in order to 
> check for the TEMPLATE.CREATE Event.
> 
> Fixed the script such that the Template now belongs to the regular account.
> 
> 
> Diffs
> -
> 
>   test/integration/component/test_usage.py e99bb81 
> 
> Diff: https://reviews.apache.org/r/25685/diff/
> 
> 
> Testing
> ---
> 
> No testing is done.
> 
> 
> Thanks,
> 
> Chandan Purushothama
> 
>