当前位置: 首页>>代码示例>>Python>>正文


Python Rally._wpCacheStatus方法代码示例

本文整理汇总了Python中pyral.Rally._wpCacheStatus方法的典型用法代码示例。如果您正苦于以下问题:Python Rally._wpCacheStatus方法的具体用法?Python Rally._wpCacheStatus怎么用?Python Rally._wpCacheStatus使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在pyral.Rally的用法示例。


在下文中一共展示了Rally._wpCacheStatus方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: test_named_non_default_workspace_use_default_project

# 需要导入模块: from pyral import Rally [as 别名]
# 或者: from pyral.Rally import _wpCacheStatus [as 别名]
def test_named_non_default_workspace_use_default_project():
    """
        Using valid Rally access credentials, connect specifying
        a valid non-default workspace but not specifying a project.
        Return status should be OK, the Rally instance's RallyContextHelper
        _inflated value should be 'narrow'

        Expanded this to incorporate two scenarios
            1) default project in default workspace is a valid project name
                in the named non-default workspace
            2) default project in default workspace is not a valid project name
                in the named non-default workspace
              
    """
    workspace = 'Foonman Internationale'
    rally = Rally(server=TRIAL, user=TRIAL_USER, password=TRIAL_PSWD, workspace=workspace, warn=False)
    ai_proj = rally.getProject()
    assert str(ai_proj.Name) == 'Shopaholic'   # is valid on both default and 'Foonman Internationale'
    assert rally._wpCacheStatus() == 'narrow'

    workspace = 'Over Regulation Central'
    rally = Rally(server=TRIAL, user=TRIAL_USER, password=TRIAL_PSWD, workspace=workspace, warn=False)
    ai_proj = rally.getProject()
    assert str(ai_proj.Name) == 'Picky About Lint'   # is valid only in 'Wonka Factory Inspection'
    assert rally._wpCacheStatus() == 'narrow'
开发者ID:M1ntcraft3r,项目名称:RallyRestToolkitForPython,代码行数:27,代码来源:test_inflation.py

示例2: test_named_non_default_workspace_use_default_project

# 需要导入模块: from pyral import Rally [as 别名]
# 或者: from pyral.Rally import _wpCacheStatus [as 别名]
def test_named_non_default_workspace_use_default_project():
    """
        Using valid Rally access credentials, connect specifying
        a valid non-default workspace but not specifying a project.
        Return status should be OK, the Rally instance's RallyContextHelper
        _inflated value should be 'narrow'

        Expanded this to incorporate two scenarios
            1) default project in default workspace is a valid project name
                in the named non-default workspace
            2) default project in default workspace is not a valid project name
                in the named non-default workspace
              
    """
    workspace = 'SCM Workspace'
    rally = Rally(server=TRIAL, user=TRIAL_USER, password=TRIAL_PSWD, workspace=workspace, warn=False)
    ai_proj = rally.getProject()
    assert str(ai_proj.Name) == 'Sample Project'  
    assert rally._wpCacheStatus() == 'narrow'

    workspace = 'JIRA Testing'
    rally = Rally(server=TRIAL, user=TRIAL_USER, password=TRIAL_PSWD, workspace=workspace, warn=False)
    ai_proj = rally.getProject()
    assert str(ai_proj.Name) == 'GData Testing'   # is valid only in 'JIRA Testing'
    assert rally._wpCacheStatus() == 'narrow'
开发者ID:Cyrilplus,项目名称:RallyRestToolkitForPython,代码行数:27,代码来源:test_inflation.py

示例3: test_named_non_default_workspace_use_default_project

# 需要导入模块: from pyral import Rally [as 别名]
# 或者: from pyral.Rally import _wpCacheStatus [as 别名]
def test_named_non_default_workspace_use_default_project():
    """
        Using valid Rally access credentials, connect specifying
        a valid non-default workspace but not specifying a project.
        Return status should be OK, the Rally instance's RallyContextHelper
        _inflated value should be 'narrow'

        Expanded this to incorporate two scenarios
            1) default project in default workspace is a valid project name
                in the named non-default workspace
            2) default project in default workspace is not a valid project name
                in the named non-default workspace
              
    """
    #default_workspace = 'User Story Pattern'
    workspace = 'Integrations'
    rally = Rally(server=PREVIEW, user=PREVIEW_USER, password=PREVIEW_PSWD, workspace=workspace)
    ai_proj = rally.getProject()
    assert str(ai_proj.Name) == 'Shopping Team'   # is valid on both default and 'Integrations'
    assert rally._wpCacheStatus() == 'narrow'

    workspace = 'Healthcare Story Pattern 1'
    rally = Rally(server=PREVIEW, user=PREVIEW_USER, password=PREVIEW_PSWD, workspace=workspace)
    ai_proj = rally.getProject()
    assert str(ai_proj.Name) == 'Big Healthcare'   # is valid only in 'Healthcare Story Pattern 1'
    assert rally._wpCacheStatus() == 'narrow'
开发者ID:lenciel,项目名称:pyral,代码行数:28,代码来源:test_inflation.py

示例4: test_default_connection

# 需要导入模块: from pyral import Rally [as 别名]
# 或者: from pyral.Rally import _wpCacheStatus [as 别名]
def test_default_connection():
    """
        Using a known valid Rally server and access credentials, 
        connect without specifying workspace or project.
        Return status should be OK, 
        Rally._wpCacheStatus should be 'minimal'
    """
    rally = Rally(server=TRIAL, user=TRIAL_USER, password=TRIAL_PSWD)
    response = rally.get('Project', fetch=False, limit=10)
    assert response != None
    assert response.status_code == 200
    assert rally._wpCacheStatus() == 'minimal'
开发者ID:RallyTools,项目名称:RallyRestToolkitForPython,代码行数:14,代码来源:test_inflation.py

示例5: test_named_default_workspace_named_default_project

# 需要导入模块: from pyral import Rally [as 别名]
# 或者: from pyral.Rally import _wpCacheStatus [as 别名]
def test_named_default_workspace_named_default_project():
    """
        Using valid Rally access credentials, connect
        specifying the workspace name (which is the default value), 
        specifying the name of project (which is the default value).
        Return status should be OK, the Rally instance's RallyContextHelper
        _inflated value should be 'minimal'
    """
    rally = Rally(server=TRIAL, user=TRIAL_USER, password=TRIAL_PSWD,
                  workspace=DEFAULT_WORKSPACE, project=DEFAULT_PROJECT)
    response = rally.get('Project')
    assert response != None
    assert response.status_code == 200
    assert rally._wpCacheStatus() == 'minimal'
开发者ID:RallyTools,项目名称:RallyRestToolkitForPython,代码行数:16,代码来源:test_inflation.py

示例6: test_default_workspace_non_default_valid_project

# 需要导入模块: from pyral import Rally [as 别名]
# 或者: from pyral.Rally import _wpCacheStatus [as 别名]
def test_default_workspace_non_default_valid_project():
    """
        Using valid Rally access credentials, connect
        without specifying the workspace, specify the name of project (not the default)
        which is valid for the default workspace.
        Return status should be OK, the Rally instance's RallyContextHelper
        _inflated value should be 'minimal'
    """
    project = 'My Project'
    rally = Rally(server=TRIAL, user=TRIAL_USER, password=TRIAL_PSWD,
                  project=project)
    response = rally.get('Project', fetch=False)
    assert response != None
    assert response.status_code == 200
    assert rally._wpCacheStatus() == 'minimal'
开发者ID:RallyTools,项目名称:RallyRestToolkitForPython,代码行数:17,代码来源:test_inflation.py

示例7: test_named_non_default_workspace_named_valid_project

# 需要导入模块: from pyral import Rally [as 别名]
# 或者: from pyral.Rally import _wpCacheStatus [as 别名]
def test_named_non_default_workspace_named_valid_project():
    """
        Using valid Rally access credentials, connect specifying
        a valid non-default workspace and a valid project.
        Return status should be OK, the Rally instance's RallyContextHelper
        _inflated value should be 'minimal'
    """
    workspace = 'Jellystone Quarry'
    project   = 'Rock of Destruction'
    rally = Rally(server=TRIAL, user=TRIAL_USER, password=TRIAL_PSWD,
                  workspace=workspace, project=project)
    response = rally.get('Project')
    assert response != None
    assert response.status_code == 200
    assert rally._wpCacheStatus() == 'narrow'
开发者ID:M1ntcraft3r,项目名称:RallyRestToolkitForPython,代码行数:17,代码来源:test_inflation.py

示例8: test_default_workspace_with_named_default_project

# 需要导入模块: from pyral import Rally [as 别名]
# 或者: from pyral.Rally import _wpCacheStatus [as 别名]
def test_default_workspace_with_named_default_project():
    """
        Using valid Rally access credentials, connect
        without specifying the workspace, specify the name of project
        which is the default project name.
        Return status should be OK, the Rally instance's RallyContextHelper
        _inflated value should be 'minimal'
    """
    project = 'Shopping Team'
    rally = Rally(server=PREVIEW, user=PREVIEW_USER, password=PREVIEW_PSWD,
                  project=project)
    response = rally.get('Project', fetch=False)
    assert response != None
    assert response.status_code == 200
    assert rally._wpCacheStatus() == 'minimal'
开发者ID:lenciel,项目名称:pyral,代码行数:17,代码来源:test_inflation.py

示例9: test_named_default_workspace_named_default_project

# 需要导入模块: from pyral import Rally [as 别名]
# 或者: from pyral.Rally import _wpCacheStatus [as 别名]
def test_named_default_workspace_named_default_project():
    """
        Using valid Rally access credentials, connect
        specifying the workspace name (which is the default value), 
        specifying the name of project (which is the default value).
        Return status should be OK, the Rally instance's RallyContextHelper
        _inflated value should be 'minimal'
    """
    workspace = 'User Story Pattern'
    project   = 'Shopping Team'
    rally = Rally(server=PREVIEW, user=PREVIEW_USER, password=PREVIEW_PSWD,
                  workspace=workspace, project=project)
    response = rally.get('Project')
    assert response != None
    assert response.status_code == 200
    assert rally._wpCacheStatus() == 'minimal'
开发者ID:lenciel,项目名称:pyral,代码行数:18,代码来源:test_inflation.py

示例10: test_named_non_default_workspace_named_valid_project

# 需要导入模块: from pyral import Rally [as 别名]
# 或者: from pyral.Rally import _wpCacheStatus [as 别名]
def test_named_non_default_workspace_named_valid_project():
    """
        Using valid Rally access credentials, connect specifying
        a valid non-default workspace and a valid project.
        Return status should be OK, the Rally instance's RallyContextHelper
        _inflated value should be 'minimal'
    """
    workspace   = "Kip's Playground"
    alt_project = 'Modus Operandi'
    rally = Rally(server=TRIAL, user=TRIAL_USER, password=TRIAL_PSWD, workspace=workspace, warn=False)
    response = rally.get('Project')
    assert response != None
    assert response.status_code == 200
    assert rally._wpCacheStatus() == 'narrow'

    rally.setProject(alt_project)
    proj = rally.getProject()
    assert proj.Name == alt_project
开发者ID:RallyTools,项目名称:RallyRestToolkitForPython,代码行数:20,代码来源:test_inflation.py

示例11: test_named_non_default_workspace_use_default_project

# 需要导入模块: from pyral import Rally [as 别名]
# 或者: from pyral.Rally import _wpCacheStatus [as 别名]
def test_named_non_default_workspace_use_default_project():
    """
        Using valid Rally access credentials, connect specifying
        a valid non-default workspace but not specifying a project.
        Return status should be OK, the Rally instance's RallyContextHelper
        _inflated value should be 'narrow'

        Expanded this to incorporate two scenarios
            1) default project in default workspace is a valid project name
                in the named non-default workspace
            2) default project in default workspace is not a valid project name
                in the named non-default workspace
              
    """
    rally = Rally(server=AGICEN, user=AGICEN_USER, password=AGICEN_PSWD,
                  workspace=ALTERNATE_WORKSPACE, warn=False)
    ai_proj = rally.getProject()
    assert str(ai_proj.Name) == 'Sample Project'  
    assert rally._wpCacheStatus() == 'narrow'
开发者ID:amcolosk,项目名称:RallyRestToolkitForPython,代码行数:21,代码来源:test_inflation.py


注:本文中的pyral.Rally._wpCacheStatus方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。