Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 872597 Details for
Bug 1032259
nitrate.TestCase(**hash) doesn't respect 'arguments '
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
reproducer_2
reproducer.py (text/plain), 3.62 KB, created by
Lukáš Zachar
on 2014-03-10 08:33:18 UTC
(
hide
)
Description:
reproducer_2
Filename:
MIME Type:
Creator:
Lukáš Zachar
Created:
2014-03-10 08:33:18 UTC
Size:
3.62 KB
patch
obsolete
>import nitrate > >""" > +----------------------------+----------------+-----------+-----------------------------+ > | Field | Type | Null | Description | > +----------------------------+----------------+-----------+-----------------------------+ > | product | Integer | Required | ID of Product | > | category | Integer | Required | ID of Category | > | priority | Integer | Required | ID of Priority | > | summary | String | Required | | > | case_status | Integer | Optional | ID of case status | > | plan | Array/Str/Int | Optional | ID or List of plan_ids | > | component | Integer/String | Optional | ID of Priority | > | default_tester | String | Optional | Login of tester | > | estimated_time | String | Optional | HH:MM:SS Format | > | is_automated | Integer | Optional | 0: Manual, 1: Auto, 2: Both | > | is_automated_proposed | Boolean | Optional | Default 0 | > | script | String | Optional | | > | arguments | String | Optional | | > | requirement | String | Optional | | > | alias | String | Optional | Must be unique | > | action | String | Optional | | > | effect | String | Optional | Expected Result | > | setup | String | Optional | | > | breakdown | String | Optional | | > | tag | Array/String | Optional | String Comma separated | > | bug | Array/String | Optional | String Comma separated | > | extra_link | String | Optional | reference link | > +----------------------------+----------------+-----------+-----------------------------+ >""" ># required >VALUES = { >"product" : nitrate.Product(name='RHEL Tests'), >"category" : nitrate.Category(product=nitrate.Product(name='RHEL Tests'), category='Sanity'), >"priority" : nitrate.Priority(2), >"summary" : "some summary text", > ># optional >"case_status" : nitrate.CaseStatus('CONFIRMED'), >"plan" : [10769], >## component" : ???? >"default_tester" : 'lzachar@redhat.com', >"estimated_time" : '00:00:01', >"is_automated" : 1, >"is_automated_proposed" : 1, >"script" : '/nonexistent/script/path/', >"arguments" : 'THIS="is argument', >"requirement" : "requirement1 and 2", >#alias ?? >"action" : "do something", >"effect" : "something will happen", >"setup" : "build a plane", >"breakdown" : "in case of emergency break the glass", >"tag" : "tag1,tag2", >"bug" : "1,2,3", >"extra_link" : "http://localhost", >} > >new_case = nitrate.TestCase(**VALUES) >for key in sorted(VALUES.keys()): > print key, '(', VALUES[key] ,') -->', > try: > print getattr(new_case, key) > except AttributeError: > print '!! AttributeError !!' >print '*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*--*-*-*-*-*-*-*-*-*-*-*-*-*-*' >for attribute in sorted(dir(new_case)): > if attribute in ['update', 'search']: > continue > if not attribute.startswith('_'): > print attribute, '-->', getattr(new_case, attribute) >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1032259
: 872597