-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add StoragePolicy and ContentLibrary when creating VC Namespace #975
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #975 +/- ##
==========================================
+ Coverage 73.37% 73.43% +0.05%
==========================================
Files 118 118
Lines 16394 16362 -32
==========================================
- Hits 12029 12015 -14
+ Misses 3581 3564 -17
+ Partials 784 783 -1
|
/e2e |
2680212
to
149360a
Compare
/e2e |
d9de4f6
to
49407d8
Compare
/e2e |
49407d8
to
f5964fa
Compare
/e2e |
f5964fa
to
d040054
Compare
/e2e |
1 similar comment
/e2e |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add more information in the commit message about why we need these VC resources in e2e test?
And is VM class needed in the VM creation? If yes, do we need to get this configuration?
d040054
to
b22303b
Compare
yes, that's true, added. |
2a84019
to
dbfefd0
Compare
dbfefd0
to
bc3bd96
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change looks good to me.
It is better to add more details in the commit message to help record what changes this PR has introduced and what problem it is to resolve.
/e2e |
1 similar comment
/e2e |
@@ -307,17 +307,40 @@ func (data *TestData) createVCNamespace(namespace string) error { | |||
}() | |||
|
|||
svID, _ := data.vcClient.getSupervisorID() | |||
storagePolicyID, _ := data.vcClient.getStoragePolicyID() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will content library be heavy load or have performance for Namespace, can we add a parameter in createVCNamespace
to add storage policy and content library only if they are needed in specific test cases?
…ontent_lib [CP]Add StoragePolicy and ContentLibrary when creating VC Namespace(#975)
This PR is prepared for VM creating in e2e test.
If we want create VM in a namespace, it should be created by VC API, the namespace should have Storage, ContentLibrary, and VmClass attached.