Lines Matching refs:obj

36         obj = self.getjson()['body']
39 if ns.upper() in obj['NS']:
40 assert obj['NS'][ns.upper()] == ns_value, '%s match' % ns
50 obj = self.getjson()['body']
52 assert obj['UID'] == os.geteuid(), 'uid match'
53 assert obj['GID'] == os.getegid(), 'gid match'
57 obj = self.getjson()['body']
62 assert obj['UID'] == nobody_uid, 'uid of nobody'
63 assert obj['GID'] == nogroup_gid, 'gid of %s' % nogroup
71 obj = self.getjson()['body']
73 assert obj['UID'] == 0, 'uid match user=root'
74 assert obj['GID'] == 0, 'gid match user=root'
83 obj = self.getjson()['body']
85 assert obj['UID'] == 0, 'uid match user=root group=nogroup'
86 assert obj['GID'] == nogroup_gid, 'gid match user=root group=nogroup'
99 obj = self.getjson()['body']
101 assert obj['UID'] == 0, 'uid match uidmap'
102 assert obj['GID'] == 0, 'gid match gidmap'
112 obj = self.getjson()['body']
114 assert obj['UID'] == nobody_uid, 'uid match'
115 assert obj['GID'] == nogroup_gid, 'gid match'
119 obj = self.getjson()['body']
122 assert obj['UID'] == nobody_uid, 'uid nobody'
123 assert obj['GID'] == nogroup_gid, 'gid nobody'
131 obj = self.getjson()['body']
133 assert obj['UID'] == 0, 'uid nobody user=root'
134 assert obj['GID'] == 0, 'gid nobody user=root'
143 obj = self.getjson()['body']
145 assert obj['UID'] == 0, 'uid match user=root group=nogroup'
146 assert obj['GID'] == nogroup_gid, 'gid match user=root group=nogroup'
159 obj = self.getjson()['body']
161 assert obj['UID'] == 0, 'uid match uidmap user=root'
162 assert obj['GID'] == 0, 'gid match gidmap user=root'
174 obj = self.getjson()['body']
176 assert obj['UID'] == nobody_uid, 'uid match uidmap user=nobody'
177 assert obj['GID'] == nogroup_gid, 'gid match uidmap user=nobody'
191 obj = self.getjson()['body']
199 if ns.upper() in obj['NS']:
201 obj['NS'][ns.upper()]
205 assert obj['NS']['MNT'] != getns('mnt'), 'mnt set'
206 assert obj['NS']['USER'] != getns('user'), 'user set'
230 obj = self.getjson()['body']
232 assert obj['PID'] == 2, 'pid of container is 2'
256 obj = self.getjson()['body']
259 if ns.upper() in obj['NS']:
261 obj['NS'][ns.upper()]
290 obj = self.getjson(url='/?file=/go/app')['body']
292 assert obj['FileExists'] == True, 'app relative to rootfs'
294 obj = self.getjson(url='/?file=/bin/sh')['body']
295 assert obj['FileExists'] == False, 'file should not exists'
311 obj = self.getjson(url='/?file=/go/app')['body']
313 assert obj['FileExists'] == True, 'app relative to rootfs'
315 obj = self.getjson(url='/?file=/bin/sh')['body']
316 assert obj['FileExists'] == False, 'file should not exists'
350 obj = self.getjson(url='/?mounts=true')['body']
353 "/ /tmp" not in obj['Mounts'] and "tmpfs" not in obj['Mounts']
360 obj = self.getjson(url='/?mounts=true')['body']
363 "/ /tmp" in obj['Mounts'] and "tmpfs" in obj['Mounts']