@@ -18,7 +18,7 @@ public void parseUsingDefaultAccessMode() {
1818 assertThat (bind .getAccessMode (), is (AccessMode .DEFAULT ));
1919 assertThat (bind .getSecMode (), is (SELContext .none ));
2020 assertThat (bind .getNoCopy (), nullValue ());
21- assertThat (bind .getPropagationMode (), is (PropagationMode .DEFAULT ));
21+ assertThat (bind .getPropagationMode (), is (PropagationMode .DEFAULT_MODE ));
2222 }
2323
2424 @ Test
@@ -29,7 +29,7 @@ public void parseReadWrite() {
2929 assertThat (bind .getAccessMode (), is (rw ));
3030 assertThat (bind .getSecMode (), is (SELContext .none ));
3131 assertThat (bind .getNoCopy (), nullValue ());
32- assertThat (bind .getPropagationMode (), is (PropagationMode .DEFAULT ));
32+ assertThat (bind .getPropagationMode (), is (PropagationMode .DEFAULT_MODE ));
3333 }
3434
3535 @ Test
@@ -40,7 +40,7 @@ public void parseReadWriteNoCopy() {
4040 assertThat (bind .getAccessMode (), is (rw ));
4141 assertThat (bind .getSecMode (), is (SELContext .none ));
4242 assertThat (bind .getNoCopy (), is (true ));
43- assertThat (bind .getPropagationMode (), is (PropagationMode .DEFAULT ));
43+ assertThat (bind .getPropagationMode (), is (PropagationMode .DEFAULT_MODE ));
4444 }
4545
4646 @ Test
@@ -51,7 +51,7 @@ public void parseReadWriteShared() {
5151 assertThat (bind .getAccessMode (), is (rw ));
5252 assertThat (bind .getSecMode (), is (SELContext .none ));
5353 assertThat (bind .getNoCopy (), nullValue ());
54- assertThat (bind .getPropagationMode (), is (PropagationMode .mount_shared ));
54+ assertThat (bind .getPropagationMode (), is (PropagationMode .SHARED ));
5555 }
5656
5757 @ Test
@@ -62,7 +62,7 @@ public void parseReadWriteSlave() {
6262 assertThat (bind .getAccessMode (), is (rw ));
6363 assertThat (bind .getSecMode (), is (SELContext .none ));
6464 assertThat (bind .getNoCopy (), nullValue ());
65- assertThat (bind .getPropagationMode (), is (PropagationMode .mount_slave ));
65+ assertThat (bind .getPropagationMode (), is (PropagationMode .SLAVE ));
6666 }
6767
6868 @ Test
@@ -73,7 +73,7 @@ public void parseReadWritePrivate() {
7373 assertThat (bind .getAccessMode (), is (rw ));
7474 assertThat (bind .getSecMode (), is (SELContext .none ));
7575 assertThat (bind .getNoCopy (), nullValue ());
76- assertThat (bind .getPropagationMode (), is (PropagationMode .mount_private ));
76+ assertThat (bind .getPropagationMode (), is (PropagationMode .PRIVATE ));
7777 }
7878
7979 @ Test
@@ -84,7 +84,7 @@ public void parseReadOnly() {
8484 assertThat (bind .getAccessMode (), is (ro ));
8585 assertThat (bind .getSecMode (), is (SELContext .none ));
8686 assertThat (bind .getNoCopy (), nullValue ());
87- assertThat (bind .getPropagationMode (), is (PropagationMode .DEFAULT ));
87+ assertThat (bind .getPropagationMode (), is (PropagationMode .DEFAULT_MODE ));
8888 }
8989
9090 @ Test
@@ -95,15 +95,15 @@ public void parseSELOnly() {
9595 assertThat (bind .getAccessMode (), is (AccessMode .DEFAULT ));
9696 assertThat (bind .getSecMode (), is (SELContext .single ));
9797 assertThat (bind .getNoCopy (), nullValue ());
98- assertThat (bind .getPropagationMode (), is (PropagationMode .DEFAULT ));
98+ assertThat (bind .getPropagationMode (), is (PropagationMode .DEFAULT_MODE ));
9999
100100 bind = Bind .parse ("/host:/container:z" );
101101 assertThat (bind .getPath (), is ("/host" ));
102102 assertThat (bind .getVolume ().getPath (), is ("/container" ));
103103 assertThat (bind .getAccessMode (), is (AccessMode .DEFAULT ));
104104 assertThat (bind .getSecMode (), is (SELContext .shared ));
105105 assertThat (bind .getNoCopy (), nullValue ());
106- assertThat (bind .getPropagationMode (), is (PropagationMode .DEFAULT ));
106+ assertThat (bind .getPropagationMode (), is (PropagationMode .DEFAULT_MODE ));
107107 }
108108
109109 @ Test
@@ -114,7 +114,7 @@ public void parseReadWriteSEL() {
114114 assertThat (bind .getAccessMode (), is (rw ));
115115 assertThat (bind .getSecMode (), is (SELContext .single ));
116116 assertThat (bind .getNoCopy (), nullValue ());
117- assertThat (bind .getPropagationMode (), is (PropagationMode .DEFAULT ));
117+ assertThat (bind .getPropagationMode (), is (PropagationMode .DEFAULT_MODE ));
118118 }
119119
120120 @ Test
@@ -125,7 +125,7 @@ public void parseReadOnlySEL() {
125125 assertThat (bind .getAccessMode (), is (ro ));
126126 assertThat (bind .getSecMode (), is (SELContext .shared ));
127127 assertThat (bind .getNoCopy (), nullValue ());
128- assertThat (bind .getPropagationMode (), is (PropagationMode .DEFAULT ));
128+ assertThat (bind .getPropagationMode (), is (PropagationMode .DEFAULT_MODE ));
129129 }
130130
131131 @ Test (expectedExceptions = IllegalArgumentException .class , expectedExceptionsMessageRegExp = "Error parsing Bind.*" )
0 commit comments