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'
Exemple #2
0
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'
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'
Exemple #4
0
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'
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'
Exemple #6
0
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'
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'
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'
Exemple #9
0
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'
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'
Exemple #11
0
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'
Exemple #12
0
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'
Exemple #13
0
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'
Exemple #14
0
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 = 'Sample Project'
    rally = Rally(server=AGICEN,
                  user=AGICEN_USER,
                  password=AGICEN_PSWD,
                  project=project)
    response = rally.get('Project', fetch=False)
    assert response != None
    assert response.status_code == 200
    assert rally._wpCacheStatus() == 'minimal'
Exemple #15
0
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'
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
Exemple #17
0
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 = 'JIRA Manual Testing'
    project = 'Another Sample Project'
    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'
Exemple #18
0
def test_named_default_workspace_named_valid_project():
    """
        Using valid Rally access credentials, connect
        specifying the workspace name (which is the default value), 
        specifying the name of a valid project (not the default value).
        Return status should be OK, the Rally instance's RallyContextHelper
        _inflated value should be 'minimal'
    """
    workspace = 'User Story Pattern'
    project = 'Online Store'
    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'
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'
Exemple #20
0
def test_named_default_workspace_use_default_project():
    """
        Using valid Rally access credentials, connect
        specifying the workspace name (which is the default value), 
        without specifying the name of project.
        Return status should be OK, the Rally instance's RallyContextHelper
        _inflated value should be 'minimal'
    """
    workspace = 'User Story Pattern'
    rally = Rally(server=PREVIEW,
                  user=PREVIEW_USER,
                  password=PREVIEW_PSWD,
                  workspace=workspace)
    response = rally.get('Project')
    assert response != None
    assert response.status_code == 200
    project = response.next()
    assert project.Name == 'Shopping Team'
    assert rally._wpCacheStatus() == 'minimal'
Exemple #21
0
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
Exemple #22
0
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'