Changes

Jump to: navigation, search

OPS435 Assignment 2 for Section C

77 bytes removed, 17:21, 25 March 2021
Suggested Process
<li> Read the usage output in the docs, what option must you implement? Go ahead and implement it. <b>Commit the change.</b>
<li> Use the check script to check your work: <code>./checkA2.py -f -v TestHelp</code>. It should succeed.
<li> Investigate the <code>parse_for_user()</code> function, with the <code>usage_data_file</code>. <b>In main, call `parse_for_user()` with `output` as the argument. Investigate what's returned.</b>
<li> <code>parse_for_user()</code> should take the list of lines from the file, and instead return a list of usernames. <b>In main, print the title header and the output. Commit the change.</b>
<li> <b>Once you have `output` --> `parse_for_user()` --> correct output being printed, use if conditions to print only when `-l user` is in the command line arguments.</b>
<li> Test using <code>./checkA2.py -f -v TestList</code>. You should see some tests succeeding, but some failing. Use the check script to start implementing the functions needed for <b>-l host</b>.
<li> <b>Continue committing these changes as your proceed.</b> Your script should now be passing the TestList tests.
<li> Now implement the -d <lidate> Once option. This will filter your `parse_for_daily()` function works, call it with user list based on the argparse options, and display date provided by the contentsuser.<li> Write (or modify) a function Use <code>./checkA2.py -f -v TestDate</code> to do check your work. <b>You have completed the same for remote hosts.first milestone!</b><li> Finally, The next stage will be to implement the `--monthly` optiondaily/weekly reports. Create a new function Use <code>TestDaily</code> and get it working. start <code>TestWeekly</code> with seconds, then duration and make sure it works with remote as wellthe check script.
<li> Perform last checks and document your code. Write **why** your code is doing what it does, rather than **what** it's doing. You should have 100% of tests succeeding.
</ol>

Navigation menu