[jbosstools-issues] [JBoss JIRA] (JBIDE-21726) Test OpenShiftProjectCacheTest.testConnectionChanged() fails

Viacheslav Kabanovich (JIRA) issues at jboss.org
Sat Feb 20 03:15:00 EST 2016


     [ https://issues.jboss.org/browse/JBIDE-21726?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Viacheslav Kabanovich updated JBIDE-21726:
------------------------------------------
    Description: 
0. Connection is preset with one project.
1. Test fires project added. OpenShiftProjectCache processes that correctly.
2. Test requests cache.getProjectsFor(conn) - it correctly returns list with the project, but that will happen even if step 1 fails because of loading inside cache.getProjectsFor(conn) the project preset in step 0.
3. Test fires removal of project from connection. OpenShiftProjectCache processes that correctly.
4. Test requests cache.getProjectsFor(conn) - it incorrectly returns list with the project, though not because of step 3 failure, but by the same reason as in step 2.

Solution 1: for this test connection should return empty list of projects.
Solution 2: start with connection that has 2 projects, and before firing events call  cache.getProjectsFor(conn) - that will provide the initial loading projects into cache. 



  was:
0. Connection is preset with one project.
1. Test fires project added. OpenShiftProjectCache processes that correctly.
2. Test requests cache.getProjectsFor(conn) - it correctly returns list with the project, but that will happen even if step 1 fails because of loading inside cache.getProjectsFor(conn) the project preset in step 0.
3. Test fires removal of project from connection. OpenShiftProjectCache processes that correctly.
4. Test requests cache.getProjectsFor(conn) - it incorrectly returns list with the project, though not because of step 3 failure, but by the same reason as in step 2.

Solution: for this test connection should return empty list of projects.




> Test OpenShiftProjectCacheTest.testConnectionChanged() fails
> ------------------------------------------------------------
>
>                 Key: JBIDE-21726
>                 URL: https://issues.jboss.org/browse/JBIDE-21726
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: openshift
>    Affects Versions: 4.3.1.Beta2
>            Reporter: Viacheslav Kabanovich
>             Fix For: 4.3.1.CR1
>
>
> 0. Connection is preset with one project.
> 1. Test fires project added. OpenShiftProjectCache processes that correctly.
> 2. Test requests cache.getProjectsFor(conn) - it correctly returns list with the project, but that will happen even if step 1 fails because of loading inside cache.getProjectsFor(conn) the project preset in step 0.
> 3. Test fires removal of project from connection. OpenShiftProjectCache processes that correctly.
> 4. Test requests cache.getProjectsFor(conn) - it incorrectly returns list with the project, though not because of step 3 failure, but by the same reason as in step 2.
> Solution 1: for this test connection should return empty list of projects.
> Solution 2: start with connection that has 2 projects, and before firing events call  cache.getProjectsFor(conn) - that will provide the initial loading projects into cache. 



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jbosstools-issues mailing list