@@ -24,6 +24,11 @@ describe('configure-docker module test suite', () => {
2424 'sudo apt-get install -y conntrack'
2525 ) ;
2626 } ) ;
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+ } ) ;
2732 test ( 'waits for docker to be ready' , ( ) => {
2833 expect ( logExecSync ) . toHaveBeenCalledWith (
2934 "docker version -f '{{.Server.Version}} - {{.Client.Version}}'"
@@ -43,6 +48,11 @@ describe('configure-docker module test suite', () => {
4348 'sudo apt-get install -y conntrack'
4449 ) ;
4550 } ) ;
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+ } ) ;
4656 test ( 'installs cni plugins' , ( ) => {
4757 expect ( download . installCniPlugins ) . toHaveBeenCalledTimes ( 1 ) ;
4858 } ) ;
@@ -63,6 +73,11 @@ describe('configure-docker module test suite', () => {
6373 'sudo apt-get install -y conntrack'
6474 ) ;
6575 } ) ;
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+ } ) ;
6681 test ( 'installs cni plugins' , ( ) => {
6782 expect ( download . installCniPlugins ) . toHaveBeenCalledTimes ( 1 ) ;
6883 } ) ;
0 commit comments