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

test: add sealer alpha mount/umount e2e test #2033

Merged
merged 1 commit into from
Mar 7, 2023

Conversation

Stevent-fei
Copy link
Collaborator

@Stevent-fei Stevent-fei commented Feb 15, 2023

Describe what this PR does / why we need it

add sealer alpha mount/umount e2e test

Does this pull request fix one issue?

Describe how you did it

Describe how to verify it

Special notes for reviews

@github-actions github-actions bot added e2e-test it needs to run e2e test test labels Feb 15, 2023
@codecov-commenter
Copy link

codecov-commenter commented Feb 15, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (3d81283) 19.29% compared to head (ccdb7ea) 19.29%.

❗ Current head ccdb7ea differs from pull request most recent head a287232. Consider uploading reports for the commit a287232 to get more accurate results

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2033   +/-   ##
=======================================
  Coverage   19.29%   19.29%           
=======================================
  Files          96       96           
  Lines        8985     8985           
=======================================
  Hits         1734     1734           
  Misses       7026     7026           
  Partials      225      225           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@starnop
Copy link
Collaborator

starnop commented Feb 15, 2023

/test all

@Stevent-fei Stevent-fei changed the title test: add sealer alpha mount/umount e2e test [WIP]test: add sealer alpha mount/umount e2e test Feb 15, 2023
@zhy76
Copy link
Member

zhy76 commented Feb 16, 2023

/test all

@Stevent-fei Stevent-fei changed the title [WIP]test: add sealer alpha mount/umount e2e test test: add sealer alpha mount/umount e2e test Feb 20, 2023
@@ -0,0 +1,65 @@
name: Sealer-Test-Mount
Copy link
Member

Choose a reason for hiding this comment

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

Mount is a sub command for image ,i think we only need add it to image e2e test


By("start to umount a image")
umountCmd := fmt.Sprintf("%s alpha umount %s -d", settings.DefaultSealerBin, settings.TestImageName)
testhelper.RunCmdAndCheckResult(umountCmd, 0)
Copy link
Member

Choose a reason for hiding this comment

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

could we check more details of mount, such as mounted dir exiting , or image file.

mountCmd := fmt.Sprintf("%s alpha mount %s %s %s -d", settings.DefaultSealerBin, settings.TestImageName, settings.TestK8s120, settings.TestK8s118)
testhelper.RunCmdAndCheckResult(mountCmd, 0)

err := filepath.WalkDir("/var/lib/containers/storage/overlay", func(path string, d fs.DirEntry, err error) error {
Copy link
Member

Choose a reason for hiding this comment

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

why "/var/lib/containers/storage/overlay" , make it const or get it from imageengine ?

}

By("start to umount multiple images")
umountCmd := fmt.Sprintf("%s alpha umount %s %s %s -d", settings.DefaultSealerBin, settings.TestImageName, settings.TestK8s120, settings.TestK8s118)
Copy link
Collaborator

Choose a reason for hiding this comment

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

add test case for mount multi app images

@Stevent-fei Stevent-fei force-pushed the add_e2e_mount_test branch 3 times, most recently from d6e2899 to d8bb659 Compare March 7, 2023 07:24
Copy link
Member

@kakaZhou719 kakaZhou719 left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
e2e-test it needs to run e2e test test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants