[JIRA] Commented: (HUDSON-7104) Clearcase Plug-in 1.3 polling broken

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[JIRA] Commented: (HUDSON-7104) Clearcase Plug-in 1.3 polling broken

Kohsuke Kawaguchi
Administrator

    [ http://issues.hudson-ci.org/browse/HUDSON-7104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=144523#action_144523 ]

eraonel commented on HUDSON-7104:
---------------------------------

Hi,

I have looked at the one test case that where viewpath is changed to filepath. What is the relevance of this line:

  List<ClearCaseChangeLogEntry> entries = action.getChanges(new Date(), "IGNORED", new String[]{"Release_2_1_int"}, new String[]{"vobs/projects/Server"});

Is is a viewpath that is unrelated to what is defined in cleartool command. Also I can see that getChanges() is used in test code only but not in prod. code. Is this method replaced?

br,

//mike

public void assertViewPathIsRemovedFromFilePaths() throws Exception {
        context.checking(new Expectations() {
                {
                    one(cleartool).lshistory(with(any(String.class)), with(any(Date.class)),
                                             with(any(String.class)), with(any(String.class)), with(any(String[].class)));
                    will(returnValue(new StringReader(
                                                      "\"20070827.085901\" \"user\" \"action\" \"/view/ralef_0.2_nightly/vobs/Tools/framework/util/QT.h\" \"/main/comain\"  \"mkelem\"\n")));
                }
            });

        BaseChangeLogAction action = new BaseChangeLogAction(cleartool, 1000,null);
        action.setExtendedViewPath("/view/ralef_0.2_nightly");
        List<ClearCaseChangeLogEntry> entries = action.getChanges(new Date(), "IGNORED", new String[]{"Release_2_1_int"}, new String[]{"vobs/projects/Server"});
        assertEquals("Number of history entries are incorrect", 1, entries.size());
        ClearCaseChangeLogEntry entry = entries.get(0);
        assertEquals("File path is incorrect", "/vobs/Tools/framework/util/QT.h", entry.getElements().get(0).getFile());
    }

> Clearcase Plug-in 1.3 polling broken
> ------------------------------------
>
>                 Key: HUDSON-7104
>                 URL: http://issues.hudson-ci.org/browse/HUDSON-7104
>             Project: Hudson
>          Issue Type: Bug
>          Components: clearcase
>    Affects Versions: current
>         Environment: RedHat Linux
>            Reporter: javakrieg
>            Assignee: vlatombe
>         Attachments: build.xml
>
>
> I was using Hudson 1.366.  After I installed the new Clearcase 1.3 plug-in, I noticed that polling no longer detected changes in my Clearcase vobs.  Polling would generate a normal report, but report no issues found.
> I just updated to Hudson 1.368 and the same thing is still happening.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira