{ "info": { "author": "Chris Hirsch", "author_email": "chris@base2technology.com", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python", "Topic :: Software Development :: Testing" ], "description": "==========================\nrobotframework-unixfilesystem\n==========================\n\n**robotframework-unixfilesystem** is a `Robot Framework\n`_ test library to test\nUNIX filesystem attributes like permissions, ownership etc.\n\nInstallation\n++++++++++++\n\nTo install, just fetch the latest version from PyPI:.\n\n pip install --upgrade robotframework-unixfilesystem\n\nUsage\n+++++\n\nSetup in the robotframework Settings section:\n\n============ ================\n Setting Value\n============ ================\nLibrary UnixFilesystemLibrary\n============ ================\n\n\\\n\nThese keyword actions are available::\n\n Get Owner From Path:\n Does an lstat on the Path and returns the owner of the file/directory:\n \n Arguments:\n - path: the path to the file/directory you wish to get ownership \n on (e.g. /tmp/test.txt or ../foo)\n Return:\n - owner: returns the owner of the file (e.g. root or chris)\n\n Owner From Path Should Match:\n Does an lstat on the Path and checks to see if the supplied owner matches.\n Returns True if a match is found or False otherwise.\n \n Arguments:\n - owner: the username to check against ownership of the path \n (e.g. root or chris)\n - path: the path to the file/directory you wish to get ownership \n on (e.g. /tmp/test.txt or ../foo)\n Return:\n - returns True if the owner of the Path matches Owner, False otherwise\n\n Get Permissions From Path As Octal\n Gets the permissions via lstat of the supplied Path and returns those permissions as \n an octal value.\n\n Arguments:\n - path: the path to the file/directory you wish to get ownership on \n (e.g. /tmp/test.txt or ../foo)\n Return:\n - permissions: Returns the octal permissions of the path (e.g. 0755 or 0644)\n\n Permissions From Path Should Match:\n Gets the permissions via lstat of the supplied Path and checks if those permissions\n match the supplied Permissions.\n Returns True if a match is found or False otherwise.\n\n Arguments:\n - path: the path to the file/directory you wish to get ownership on \n (e.g. /tmp/test.txt or ../foo)\n - permissions: octal permissions (e.g. 0755 or 0644)\n Return:\n - returns True if the owner of the Path matches Permissions, False otherwise\n\n\n\nHere is an example of how to use the library:\n\n================== ========================== =================================== \n Action Argument Argument \n================== ========================== ===================================\n${Owner}= Get Owner From Path path=/tmp/test.txt\nShould Match ${Owner} root\n================== ========================== =================================== \n\nHere is an example of how to check that the owner of a path matches the supplied owner\n\n============================ ========================== =================================== \n Action Argument Argument \n============================ ========================== =================================== \nOwner From Path Should Match root path=/tmp/text.txt\n============================ ========================== =================================== \n\nHere is an example of how to get permissions from the path as an octal\n\n================== ================================== =================================== \n Action Argument Argument \n================== ================================== ===================================\n${Permissions} Get Permissions From Path as Octal path=/tmp/\nShould Match ${Permissions} 0644\n================== ================================== ===================================\n\nHere is an example of how to check that permissions from the path match the octal\n\n================================== ========================== \n Action Argument \n================================== ========================== \nPermissions From Path Should Match 0644\n================================== ========================== \n\n\n\nLicense\n+++++++\n\nThe robotframework-unixfilesystem is licensed under the `Apache 2.0 License\n`_.", "description_content_type": null, "docs_url": null, "download_url": null, "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ChrisHirsch/robotframework-unixfilesystem", "keywords": "robotframework testing testautomation unix filesystem attributes", "license": "Apache License 2.0", "maintainer": null, "maintainer_email": null, "name": "robotframework-unixfilesystemlibrary", "package_url": "https://pypi.org/project/robotframework-unixfilesystemlibrary/", "platform": "any", "project_url": "https://pypi.org/project/robotframework-unixfilesystemlibrary/", "project_urls": { "Homepage": "https://github.com/ChrisHirsch/robotframework-unixfilesystem" }, "release_url": "https://pypi.org/project/robotframework-unixfilesystemlibrary/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "Robot Framework UNIX Filesystem Library", "version": "0.1.0" }, "last_serial": 1778832, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "6cac5cef249e889fae83133e9acbafa1", "sha256": "75a0ae6daa98ca6c0ba544b22a58c372b3eea573ab0ad28d0da05e5d268cd70a" }, "downloads": -1, "filename": "robotframework-unixfilesystemlibrary-0.0.1.tar.gz", "has_sig": false, "md5_digest": "6cac5cef249e889fae83133e9acbafa1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2918, "upload_time": "2015-08-27T14:45:46", "url": "https://files.pythonhosted.org/packages/74/4c/2bdce0c22e01e5ea5e821126c6c48bcaeaa5d9330f3e82ddbd226fcee9b5/robotframework-unixfilesystemlibrary-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "37d7c3383a33a8e84d7a9b0fccf25b6e", "sha256": "f880b059e37c0d62f2797305803d3187a2afc856d82642707300631e2f6056a1" }, "downloads": -1, "filename": "robotframework-unixfilesystemlibrary-0.0.2.tar.gz", "has_sig": false, "md5_digest": "37d7c3383a33a8e84d7a9b0fccf25b6e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3023, "upload_time": "2015-09-18T21:29:21", "url": "https://files.pythonhosted.org/packages/9b/ea/ac5db2867a45e3367dc1f2141c5317375635bb10b1f949dbb14b9903822c/robotframework-unixfilesystemlibrary-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "5c59fa34540c5a0a67e8c728e14ae3b7", "sha256": "c3bf7e71c8ee70c341b834645b15983c83744a5b5fe77cf2a0372681be81e3c0" }, "downloads": -1, "filename": "robotframework-unixfilesystemlibrary-0.0.3.tar.gz", "has_sig": false, "md5_digest": "5c59fa34540c5a0a67e8c728e14ae3b7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3056, "upload_time": "2015-09-18T22:05:35", "url": "https://files.pythonhosted.org/packages/fe/f7/ec8f9619de35fc733892653552cc9aed6ac5d334fb06ea9a1a14ce0ee6ea/robotframework-unixfilesystemlibrary-0.0.3.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "9e7f04c4389e34f121f191cc6a7d5a14", "sha256": "602e9f490a830cdf13d8d463707aad1a3836c99052af58dee5bb4868e451db10" }, "downloads": -1, "filename": "robotframework-unixfilesystemlibrary-0.1.0.tar.gz", "has_sig": false, "md5_digest": "9e7f04c4389e34f121f191cc6a7d5a14", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3145, "upload_time": "2015-10-20T20:41:46", "url": "https://files.pythonhosted.org/packages/c5/80/6b4b8870429e7bc817afae121670330274e6a25a2afd7fbd669fd4a2a6b8/robotframework-unixfilesystemlibrary-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9e7f04c4389e34f121f191cc6a7d5a14", "sha256": "602e9f490a830cdf13d8d463707aad1a3836c99052af58dee5bb4868e451db10" }, "downloads": -1, "filename": "robotframework-unixfilesystemlibrary-0.1.0.tar.gz", "has_sig": false, "md5_digest": "9e7f04c4389e34f121f191cc6a7d5a14", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3145, "upload_time": "2015-10-20T20:41:46", "url": "https://files.pythonhosted.org/packages/c5/80/6b4b8870429e7bc817afae121670330274e6a25a2afd7fbd669fd4a2a6b8/robotframework-unixfilesystemlibrary-0.1.0.tar.gz" } ] }