1
0
mirror of https://github.com/rancher/os.git synced 2025-10-08 18:33:29 +00:00
Files
.github
assets
cmd
compose
config
docker
docs
hostname
images
init
scripts
selinux
tests
assets
cloud_config_hostname_test.go
common_test.go
consoles_test.go
custom_docker_test.go
dhcp_hostname_test.go
environment_test.go
http_proxy_test.go
install_test.go
kernel_headers_test.go
lenient_service_parsing_test.go
misc_test.go
mounts_test.go
network_from_url_test.go
network_on_boot_test.go
network_test.go
oem_test.go
preload_test.go
ros_config_test.go
runcmd_test.go
shared_mount_test.go
ssh_key_merge_test.go
subdir_test.go
swap_test.go
sysctl_test.go
tls_test.go
write_files_test.go
util
vendor
.dockerignore
.drone.yml
.gitignore
Dockerfile.dapper
LICENSE
Makefile
README.md
main.go
os-config.tpl.yml
trash.conf
os/tests/mounts_test.go

18 lines
615 B
Go
Raw Normal View History

package integration
import . "gopkg.in/check.v1"
func (s *QemuSuite) TestMounts(c *C) {
err := s.RunQemu("--cloud-config", "./tests/assets/test_23/cloud-config.yml", "--second-drive")
c.Assert(err, IsNil)
s.CheckCall(c, "cat /home/rancher/test | grep test")
s.CheckCall(c, "mkdir -p /home/rancher/a /home/rancher/b /home/rancher/c")
s.CheckCall(c, "sudo mkfs.ext4 /dev/vdb")
s.CheckCall(c, "sudo cloud-init-execute")
s.CheckCall(c, "mount | grep /home/rancher/a")
s.CheckCall(c, "mount | grep /home/rancher/b")
s.CheckCall(c, "mount | grep /home/rancher/c")
}