Skip to content

test: add smoke test for user role for userdata crud api#7332

Merged
yadvr merged 2 commits intoapache:4.18from
shapeblue:test-user-userdataapi-crud
Mar 31, 2023
Merged

test: add smoke test for user role for userdata crud api#7332
yadvr merged 2 commits intoapache:4.18from
shapeblue:test-user-userdataapi-crud

Conversation

@shwstppr
Copy link
Copy Markdown
Contributor

Description

Adds smoke test for CRUD operations as a normal user

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
@boring-cyborg boring-cyborg Bot added component:integration-test Python Warning... Python code Ahead! labels Mar 13, 2023
@shwstppr
Copy link
Copy Markdown
Contributor Author

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@shwstppr a Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@harikrishna-patnala
Copy link
Copy Markdown
Member

code looks good to me, I'll wait for the smoke test results.

@blueorangutan
Copy link
Copy Markdown

Packaging result: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 5712

@shwstppr
Copy link
Copy Markdown
Contributor Author

@blueorangutan test

@blueorangutan
Copy link
Copy Markdown

@shwstppr a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

self.userapiclient,
id=self.userdata.userdata.id
)
self.cleanup.pop()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:D I would have

Suggested change
self.cleanup.pop()
self.cleanup.remove(self.userdata)

but this should work as well 👍

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 13, 2023

Codecov Report

Merging #7332 (9d8be8b) into main (f64f7b9) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##               main    #7332   +/-   ##
=========================================
  Coverage     12.68%   12.68%           
  Complexity     8654     8654           
=========================================
  Files          2716     2716           
  Lines        256117   256117           
  Branches      39928    39928           
=========================================
  Hits          32499    32499           
  Misses       219485   219485           
  Partials       4133     4133           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@blueorangutan
Copy link
Copy Markdown

Trillian test result (tid-6278)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 39946 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7332-t6278-kvm-centos7.zip
Smoke tests completed. 108 look OK, 0 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File

Copy link
Copy Markdown
Member

@harikrishna-patnala harikrishna-patnala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified the test results.
Test following operations as a normal user: ... === TestName: test_user_userdata_crud | Status : SUCCESS ===

LGTM

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
@shwstppr
Copy link
Copy Markdown
Contributor Author

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@shwstppr a Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@sonarqubecloud
Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@blueorangutan
Copy link
Copy Markdown

Packaging result: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 5719

Copy link
Copy Markdown
Member

@yadvr yadvr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @shwstppr

@yadvr yadvr added this to the 4.18.1.0 milestone Mar 14, 2023
@shwstppr
Copy link
Copy Markdown
Contributor Author

@blueorangutan test

@blueorangutan
Copy link
Copy Markdown

@shwstppr a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

@blueorangutan
Copy link
Copy Markdown

Trillian test result (tid-6282)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 38261 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7332-t6282-kvm-centos7.zip
Smoke tests completed. 108 look OK, 0 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File

@yadvr yadvr changed the base branch from main to 4.18 March 16, 2023 10:25
@shwstppr
Copy link
Copy Markdown
Contributor Author

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@shwstppr a Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@blueorangutan
Copy link
Copy Markdown

Packaging result: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 5821

@yadvr yadvr merged commit 330a330 into apache:4.18 Mar 31, 2023
@yadvr
Copy link
Copy Markdown
Member

yadvr commented Mar 31, 2023

Merging this for 4.18, main was previously 4.18 when the smoketests had passed.

@yadvr yadvr deleted the test-user-userdataapi-crud branch March 31, 2023 09:46
kishankavala pushed a commit to shapeblue/cloudstack that referenced this pull request Apr 13, 2023
* test: add smoke test for user role for userdata crud api

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>

* address review comment

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>

---------

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component:integration-test Python Warning... Python code Ahead!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants