Tests: added tests for setting user and group.

This commit is contained in:
Tiago Natel
2019-11-11 14:36:22 +00:00
parent abbad122bb
commit c6a11260e8
2 changed files with 95 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
import json
import os
def application(environ, start_response):
uid = os.geteuid()
gid = os.getegid()
out = json.dumps({
'UID': uid,
'GID': gid,
}).encode('utf-8')
start_response('200 OK', [
('Content-Length', str(len(out))),
('Content-Type', 'application/json')
])
return [out]