mirror of
https://github.com/containers/podman.git
synced 2025-06-27 13:38:49 +08:00
Examine all SkipIfRemote functions
Remove ones that are not needed. Document those that should be there. Document those that should be fixed. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
test/e2e
build_test.gocommit_test.gocp_test.goexec_test.goinfo_test.goinit_test.goinspect_test.gokill_test.goload_test.gologs_test.gomanifest_test.gonamespace_test.gonetwork_create_test.goplay_kube_test.gopod_create_test.gopod_infra_container_test.gopod_kill_test.gopod_pod_namespaces.gopod_ps_test.gopod_restart_test.gopod_rm_test.gopod_start_test.gopod_stop_test.gopod_top_test.goport_test.goprune_test.gops_test.gopull_test.gorestart_test.gorm_test.gormi_test.gorun_cleanup_test.gorun_entrypoint_test.gorun_env_test.gorun_networking_test.gorun_passwd_test.gorun_restart_test.gorun_security_labels.gorun_test.gorun_volume_test.gorun_working_dir.gorunlabel_test.gosearch_test.gostart_test.gostop_test.gosystem_df_test.gosystem_reset_test.gounshare_test.gountag_test.go
@ -123,15 +123,18 @@ var _ = Describe("Podman rm", func() {
|
||||
})
|
||||
|
||||
It("podman rm the latest container", func() {
|
||||
SkipIfRemote()
|
||||
session := podmanTest.Podman([]string{"create", ALPINE, "ls"})
|
||||
session.WaitWithDefaultTimeout()
|
||||
Expect(session.ExitCode()).To(Equal(0))
|
||||
|
||||
_, ec, cid := podmanTest.RunLsContainer("")
|
||||
_, ec, cid := podmanTest.RunLsContainer("test1")
|
||||
Expect(ec).To(Equal(0))
|
||||
|
||||
result := podmanTest.Podman([]string{"rm", "-l"})
|
||||
latest := "-l"
|
||||
if IsRemote() {
|
||||
latest = "test1"
|
||||
}
|
||||
result := podmanTest.Podman([]string{"rm", latest})
|
||||
result.WaitWithDefaultTimeout()
|
||||
Expect(result.ExitCode()).To(Equal(0))
|
||||
output := result.OutputToString()
|
||||
@ -193,7 +196,7 @@ var _ = Describe("Podman rm", func() {
|
||||
})
|
||||
|
||||
It("podman rm invalid --latest and --cidfile and --all", func() {
|
||||
SkipIfRemote()
|
||||
SkipIfRemote() // Verifying --latest flag
|
||||
|
||||
result := podmanTest.Podman([]string{"rm", "--cidfile", "foobar", "--latest"})
|
||||
result.WaitWithDefaultTimeout()
|
||||
|
Reference in New Issue
Block a user