@@ -24,6 +24,11 @@ describe('configure-docker module test suite', () => {
24
24
'sudo apt-get install -y conntrack'
25
25
) ;
26
26
} ) ;
27
+ test ( 'disables fs protection (HOST_JUJU_LOCK_PERMISSION with minikube 1.31)' , ( ) => {
28
+ expect ( logExecSync ) . toHaveBeenCalledWith (
29
+ 'sudo sysctl fs.protected_regular=0'
30
+ ) ;
31
+ } ) ;
27
32
test ( 'waits for docker to be ready' , ( ) => {
28
33
expect ( logExecSync ) . toHaveBeenCalledWith (
29
34
"docker version -f '{{.Server.Version}} - {{.Client.Version}}'"
@@ -43,6 +48,11 @@ describe('configure-docker module test suite', () => {
43
48
'sudo apt-get install -y conntrack'
44
49
) ;
45
50
} ) ;
51
+ test ( 'disables fs protection (HOST_JUJU_LOCK_PERMISSION with minikube 1.31)' , ( ) => {
52
+ expect ( logExecSync ) . toHaveBeenCalledWith (
53
+ 'sudo sysctl fs.protected_regular=0'
54
+ ) ;
55
+ } ) ;
46
56
test ( 'installs cni plugins' , ( ) => {
47
57
expect ( download . installCniPlugins ) . toHaveBeenCalledTimes ( 1 ) ;
48
58
} ) ;
@@ -63,6 +73,11 @@ describe('configure-docker module test suite', () => {
63
73
'sudo apt-get install -y conntrack'
64
74
) ;
65
75
} ) ;
76
+ test ( 'disables fs protection (HOST_JUJU_LOCK_PERMISSION with minikube 1.31)' , ( ) => {
77
+ expect ( logExecSync ) . toHaveBeenCalledWith (
78
+ 'sudo sysctl fs.protected_regular=0'
79
+ ) ;
80
+ } ) ;
66
81
test ( 'installs cni plugins' , ( ) => {
67
82
expect ( download . installCniPlugins ) . toHaveBeenCalledTimes ( 1 ) ;
68
83
} ) ;
0 commit comments