CiscoCloud / distributive

Unit testing for the cloud
Apache License 2.0
147 stars 20 forks source link

Unable to find the file size. #159

Open cooldharma06 opened 7 years ago

cooldharma06 commented 7 years ago

Hi Team,

i am testing the distributive, and i want to check the file size. Is there any way to check the file size - similar to diskUsage in distributive. I referred the https://github.com/CiscoCloud/distributive/wiki/Checks-and-Checklists link also. I am unable to find it.

Kindly suggest some solution regarding this.

thanks, dharmalingam s

stevendborrelli commented 7 years ago

I don't think file sizes are supported right now. If you know the content, would a checksum work?

cooldharma06 commented 7 years ago

ok thank you @stevendborrelli. Its a log file which grows and have some fixed size, if it exceeds the max size we are doing operation. For that we need, i think checksum wont work in this scenario. If any other way is there means kindly let me know.

Or Any other option to validate the file creation or modification date & time.