mirror of
https://github.com/rancher/os.git
synced 2025-07-16 08:05:51 +00:00
failing test exactly as albertdb reported in #1899
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
parent
12409e7e20
commit
0ecdfff839
24
tests/ros_services.go
Normal file
24
tests/ros_services.go
Normal file
@ -0,0 +1,24 @@
|
||||
package integration
|
||||
|
||||
import . "gopkg.in/check.v1"
|
||||
|
||||
func (s *QemuSuite) TestRosLocalService(c *C) {
|
||||
s.RunQemu(c)
|
||||
|
||||
s.CheckCall(c, `echo "FROM $(sudo system-docker images --format '{{.Repository}}:{{.Tag}}' | grep os-base)" > Dockerfile
|
||||
sudo system-docker build -t testimage .
|
||||
|
||||
echo "test:" > test.yml
|
||||
echo " image: testimage" >> test.yml
|
||||
echo " entrypoint: ls" >> test.yml
|
||||
echo " labels:" >> test.yml
|
||||
echo " io.rancher.os.scope: system" >> test.yml
|
||||
echo " io.rancher.os.after: console" >> test.yml
|
||||
`)
|
||||
|
||||
s.CheckCall(c, `sudo cp test.yml /var/lib/rancher/conf/test.yml`)
|
||||
s.CheckCall(c, `sudo ros service enable /var/lib/rancher/conf/test.yml`)
|
||||
s.CheckCall(c, `sudo ros service up /var/lib/rancher/conf/test.yml`)
|
||||
|
||||
s.CheckCall(c, `sudo ros service logs test | grep bin`)
|
||||
}
|
Loading…
Reference in New Issue
Block a user