@@ -31,24 +31,24 @@ def test_autofs__cache_first_set_to_true(
31
31
1. Create NFS export
32
32
2. Create auto.master map
33
33
3. Create auto.export map
34
- 4. Add /export (auto.export) key to auto.master
34
+ 4. Add /var/ export (auto.export) key to auto.master
35
35
5. Add "NFS export" key as "export" to auto.export
36
36
6. Enable autofs responder
37
37
7. Set [autofs]/cache_first = $cache_first
38
38
8. Start SSSD
39
39
9. Reload autofs daemon
40
40
:steps:
41
- 1. Access /export/export
41
+ 1. Access /var/ export/export
42
42
2. Dump automount maps "automount -m"
43
43
:expectedresults:
44
44
1. Directory can be accessed and it is correctly mounted to the NFS share
45
- 2. /export contains auto.export map and "export" key
45
+ 2. /var/ export contains auto.export map and "export" key
46
46
:customerscenario: False
47
47
"""
48
48
nfs_export = nfs .export ("export" ).add ()
49
49
auto_master = provider .automount .map ("auto.master" ).add ()
50
50
auto_export = provider .automount .map ("auto.export" ).add ()
51
- auto_master .key ("/export" ).add (info = auto_export )
51
+ auto_master .key ("/var/ export" ).add (info = auto_export )
52
52
key = auto_export .key ("export" ).add (info = nfs_export )
53
53
54
54
# Start SSSD
@@ -60,11 +60,11 @@ def test_autofs__cache_first_set_to_true(
60
60
client .automount .reload ()
61
61
62
62
# Check that we can mount the exported directory
63
- assert client .automount .mount ("/export/export" , nfs_export ), "Unable to mount /export/export!"
63
+ assert client .automount .mount ("/var/ export/export" , nfs_export ), "Unable to mount /var /export/export!"
64
64
65
65
# Check that the maps are correctly fetched
66
66
assert client .automount .dumpmaps () == {
67
- "/export" : {"map" : "auto.export" , "keys" : [str (key )]},
67
+ "/var/ export" : {"map" : "auto.export" , "keys" : [str (key )]},
68
68
}, "Automount maps do not match!"
69
69
70
70
@@ -163,26 +163,26 @@ def test_autofs__works_with_some_offline_domains(client: Client, nfs: NFS, provi
163
163
1. Create NFS export
164
164
2. Create auto.master map
165
165
3. Create auto.export map
166
- 4. Add /export (auto.export) key to auto.master
166
+ 4. Add /var/ export (auto.export) key to auto.master
167
167
5. Add "NFS export" key as "export" to auto.export
168
168
6. Create two fake LDAP domains that will be offline (the provider is online)
169
169
7. Enable autofs responder
170
170
8. Start SSSD
171
171
9. Reload autofs daemon
172
172
:steps:
173
- 1. Access /export/export
173
+ 1. Access /var/ export/export
174
174
2. Dump automount maps "automount -m"
175
175
:expectedresults:
176
176
1. Directory can be accessed and it is correctly mounted to the NFS share
177
- 2. /export contains auto.export map and "export" key
177
+ 2. /var/ export contains auto.export map and "export" key
178
178
:customerscenario: False
179
179
"""
180
180
181
181
# Create autofs maps
182
182
nfs_export = nfs .export ("export" ).add ()
183
183
auto_master = provider .automount .map ("auto.master" ).add ()
184
184
auto_export = provider .automount .map ("auto.export" ).add ()
185
- auto_master .key ("/export" ).add (info = auto_export )
185
+ auto_master .key ("/var/ export" ).add (info = auto_export )
186
186
key = auto_export .key ("export" ).add (info = nfs_export )
187
187
188
188
# Create fake domains, these will be offline
@@ -207,9 +207,9 @@ def test_autofs__works_with_some_offline_domains(client: Client, nfs: NFS, provi
207
207
client .automount .reload ()
208
208
209
209
# Check that we can mount the exported directory
210
- assert client .automount .mount ("/export/export" , nfs_export ), "Unable to mount /export/export!"
210
+ assert client .automount .mount ("/var/ export/export" , nfs_export ), "Unable to mount /var /export/export!"
211
211
212
212
# Check that the maps are correctly fetched
213
213
assert client .automount .dumpmaps () == {
214
- "/export" : {"map" : "auto.export" , "keys" : [str (key )]},
214
+ "/var/ export" : {"map" : "auto.export" , "keys" : [str (key )]},
215
215
}, "Automount maps do not match!"
0 commit comments