Ticket #98 (new enhancement)

Opened 5 years ago

Last modified 3 years ago

Add RSpec helper routines

Reported by: ahelsing Owned by: somebody
Priority: minor Milestone: unscheduled
Component: omni Version:
Keywords: Cc:


Writing RSpecs is a pain.

Investigate adding some routines to make this easier for experimenters.

Change History

follow-up: ↓ 2   Changed 5 years ago by ahelsing

Possibilities include

  • script to run an RSpec through rspeclint, and/or other sanity checks
  • routine to convert an Ad to a request, putting in comments and FIXMEs in places where the experimenter needs to do something
  • routine to convert a manifest to a request, as above
  • routine to 'update' an old request RSpec so it can be re-used
    • generate/expires tags changed
    • compare to a recent Ad to check availability
    • ?

Note I'm not currently suggesting routines that would essentially take an unbound request and make it bound, graphical tools, etc

in reply to: ↑ 1   Changed 5 years ago by sedwards

Replying to ahelsing:

- script to run an RSpec through rspeclint, and/or other sanity checks

The method validate_rspec() (and it's helper method rspeclint_exists()) for running rspeclint on an RSpec is in gcf/src/geni/util/rspec_util.py

There are various other RSpec manipulation utility functions in this file. (That said, the file could probably use a little cleanup and refactoring.)

  Changed 3 years ago by ahelsing

  • milestone set to unscheduled
Note: See TracTickets for help on using tickets.