Skip to content
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

Merged
merged 1 commit into from
Jan 6, 2025

Conversation

zhengxiexie
Copy link
Contributor

@zhengxiexie zhengxiexie commented Dec 23, 2024

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.

@codecov-commenter
Copy link

codecov-commenter commented Dec 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.43%. Comparing base (86c0d65) to head (bc3bd96).
Report is 11 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            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     
Flag Coverage Δ
unit-tests 73.43% <ø> (+0.05%) ⬆️

see 16 files with indirect coverage changes

@zhengxiexie
Copy link
Contributor Author

/e2e

@zhengxiexie zhengxiexie force-pushed the topic/zhengxie/main/policy branch from 2680212 to 149360a Compare December 23, 2024 11:05
@zhengxiexie
Copy link
Contributor Author

/e2e

@zhengxiexie zhengxiexie force-pushed the topic/zhengxie/main/policy branch 4 times, most recently from d9de4f6 to 49407d8 Compare December 27, 2024 04:34
@zhengxiexie
Copy link
Contributor Author

/e2e

@zhengxiexie zhengxiexie force-pushed the topic/zhengxie/main/policy branch from 49407d8 to f5964fa Compare December 27, 2024 04:49
@zhengxiexie
Copy link
Contributor Author

/e2e

@zhengxiexie zhengxiexie force-pushed the topic/zhengxie/main/policy branch from f5964fa to d040054 Compare December 27, 2024 05:04
@zhengxiexie
Copy link
Contributor Author

/e2e

1 similar comment
@zhengxiexie
Copy link
Contributor Author

/e2e

Copy link
Contributor

@wenyingd wenyingd left a 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?

test/e2e/vclient.go Show resolved Hide resolved
@zhengxiexie zhengxiexie force-pushed the topic/zhengxie/main/policy branch from d040054 to b22303b Compare January 6, 2025 03:39
@zhengxiexie
Copy link
Contributor Author

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?

yes, that's true, added.

@zhengxiexie zhengxiexie force-pushed the topic/zhengxie/main/policy branch 2 times, most recently from 2a84019 to dbfefd0 Compare January 6, 2025 06:09
test/e2e/framework.go Outdated Show resolved Hide resolved
@zhengxiexie zhengxiexie force-pushed the topic/zhengxie/main/policy branch from dbfefd0 to bc3bd96 Compare January 6, 2025 06:13
Copy link
Contributor

@wenyingd wenyingd left a 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.

@zhengxiexie
Copy link
Contributor Author

/e2e

1 similar comment
@zhengxiexie
Copy link
Contributor Author

/e2e

@zhengxiexie zhengxiexie merged commit 1b73f3b into main Jan 6, 2025
2 checks passed
@@ -307,17 +307,40 @@ func (data *TestData) createVCNamespace(namespace string) error {
}()

svID, _ := data.vcClient.getSupervisorID()
storagePolicyID, _ := data.vcClient.getStoragePolicyID()
Copy link
Contributor

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?

zhengxiexie added a commit that referenced this pull request Jan 7, 2025
…ontent_lib

[CP]Add StoragePolicy and ContentLibrary when creating VC Namespace(#975)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants