8000 Test failure running as not jeanconn · Issue #179 · sot/mica · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Test failure running as not jeanconn #179
Open
@taldcroft

Description

@taldcroft

Presumably I could have the right credentials, but this should probably just be skipped if the credentials file isn't there.

=================================== FAILURES ===================================
______________________________ test_write_reports ______________________________

    @pytest.mark.skipif('not HAS_SYBASE_ACCESS', reason='Report test requires Sybase/OCAT access')
    @pytest.mark.skipif('not HAS_SC_ARCHIVE', reason='Report test requires mica starcheck archive')
    def test_write_reports():
        """
        Make a report and database
        """
        tempdir = tempfile.mkdtemp()
        # Get a temporary file, but then delete it, because report.py will only
        # make a new table if the supplied file doesn't exist
        fh, fn = tempfile.mkstemp(dir=tempdir, suffix='.db3')
        os.unlink(fn)
        report.REPORT_ROOT = tempdir
        report.REPORT_SERVER = fn
        for obsid in [20001, 15175, 54778]:
>           report.main(obsid)

../../../../x86_64-linux_CentOS-6/lib/python2.7/site-packages/mica/report/tests/test_write_report.py:35: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../../../x86_64-linux_CentOS-6/lib/python2.7/site-packages/mica/report/report.py:501: in main
    links = obs_links(obsid, summary['seq_nbr'], summary['lts_lt_plan'])
../../../../x86_64-linux_CentOS-6/lib/python2.7/site-packages/mica/report/report.py:342: in obs_links
    vv, vvid = official_vv(obsid)
../../../../x86_64-linux_CentOS-6/lib/python2.7/site-packages/mica/report/report.py:262: in official_vv
    vv_db = Ska.DBI.DBI(dbi='sybase', server='sqlsao', user='jeanconn', database='axafvv')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <Ska.DBI.DBI.DBI object at 0x7ff9138e8d10>, dbi = 'sybase'
server = 'sqlsao', user = 'jeanconn', passwd = None, database = 'axafvv'
numpy = True, autocommit = True, verbose = False
authdir = '/proj/sot/ska/data/aspect_authorization', kwargs = {}
DEFAULTS = {'sqlite': {'server': 'db.sql3'}, 'sybase': {'database': 'aca', 'server': 'sybase', 'user': 'aca_ops'}}
dbapi2 = <module 'Sybase' from '/proj/sot/ska/arch/x86_64-linux_CentOS-6/lib/python2.7/site-packages/python_sybase-0.39-py2.7-linux-x86_64.egg/Sybase.pyc'>
passwd_file = '/proj/sot/ska/data/aspect_authorization/sqlsao-axafvv-jeanconn'
e = IOError(13, 'Permission denied')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0