Jira: https://issues.apache.org/jira/browse/OOZIE-2364
Build: https://builds.apache.org/job/PreCommit-OOZIE-Build/1220/

###################################################################################
########################## LAST 100 LINES OF THE CONSOLE 
###########################
[...truncated 955.53 KB...]
                + "</sla:info>";
        Element eSla = XmlUtils.parseXml(slaXML);

        SLAEventBean regEvent =
            SLADbOperations.createSlaRegistrationEvent(eSla, null, "id1", 
SLAEvent.SlaAppType.WORKFLOW_JOB, "user1", "group1");
        assertEquals(SLAEvent.SlaAppType.WORKFLOW_JOB, regEvent.getAppType());
        assertEquals(new Date(nomDate.getTime() + 5 * 60 * 1000), 
regEvent.getExpectedEnd());
        assertEquals("group1", regEvent.getGroupName());
        assertEquals("id1", regEvent.getSlaId());
        assertEquals("user1", regEvent.getUser());

        regEvent =
            SLADbOperations.createSlaRegistrationEvent(eSla, "id1", 
SLAEvent.SlaAppType.WORKFLOW_JOB, "user1", "group1", null);
        assertEquals(SLAEvent.SlaAppType.WORKFLOW_JOB, regEvent.getAppType());
        assertEquals(new Date(nomDate.getTime() + 5 * 60 * 1000), 
regEvent.getExpectedEnd());
        assertEquals("group1", regEvent.getGroupName());
        assertEquals("id1", regEvent.getSlaId());
        assertEquals("user1", regEvent.getUser());
    }
}

error: patch failed: 
core/src/test/java/org/apache/oozie/util/db/TestSLADbOperations.java:1
error: core/src/test/java/org/apache/oozie/util/db/TestSLADbOperations.java: 
patch does not apply
Checking patch 
core/src/test/java/org/apache/oozie/util/db/TestSLADbXOperations.java...
error: while searching for:
/**
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.apache.oozie.util.db;

import java.util.Date;
import org.apache.oozie.SLAEventBean;
import org.apache.oozie.client.SLAEvent;
import org.apache.oozie.test.XTestCase;
import org.apache.oozie.util.DateUtils;
import org.apache.oozie.util.XmlUtils;
import org.jdom.Element;

public class TestSLADbXOperations extends XTestCase {

    @SuppressWarnings("deprecation")
    public void testCreateSlaRegistrationEventMinReqFields() throws Exception {
        Date nomDate = DateUtils.parseDateOozieTZ("2014-01-01T01:01Z");
        String slaXML = " <sla:info xmlns:sla='uri:oozie:sla:0.2'>"
                + " <sla:nominal-time>" + DateUtils.formatDateOozieTZ(nomDate) 
+ "</sla:nominal-time>"
                + " <sla:should-end>5</sla:should-end>"
                + "</sla:info>";
        Element eSla = XmlUtils.parseXml(slaXML);

        SLAEventBean regEvent =
            SLADbXOperations.createSlaRegistrationEvent(eSla, "id1", 
SLAEvent.SlaAppType.WORKFLOW_JOB, "user1", "group1");
        assertEquals(SLAEvent.SlaAppType.WORKFLOW_JOB, regEvent.getAppType());
        assertEquals(new Date(nomDate.getTime() + 5 * 60 * 1000), 
regEvent.getExpectedEnd());
        assertEquals("group1", regEvent.getGroupName());
        assertEquals("id1", regEvent.getSlaId());
        assertEquals("user1", regEvent.getUser());
    }
}

error: patch failed: 
core/src/test/java/org/apache/oozie/util/db/TestSLADbXOperations.java:1
error: core/src/test/java/org/apache/oozie/util/db/TestSLADbXOperations.java: 
patch does not apply
Checking patch docs/src/site/twiki/CoordinatorFunctionalSpec.twiki...
error: docs/src/site/twiki/CoordinatorFunctionalSpec.twiki: No such file or 
directory
Checking patch docs/src/site/twiki/DG_CommandLineTool.twiki...
error: docs/src/site/twiki/DG_CommandLineTool.twiki: No such file or directory
Checking patch tools/src/main/java/org/apache/oozie/tools/OozieDBCLI.java...
Hunk #1 succeeded at 1138 (offset 53 lines).
Checking patch webapp/src/main/webapp/WEB-INF/web.xml...
Patch failed to apply to head of branch

Adding comment to JIRA
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0  
0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0100 
  199    0     0  100   199      0    133  0:00:01  0:00:01 --:--:--   133100  
1774    0  1575  100   199   1001    126  0:00:01  0:00:01 --:--:--  1127
{"self":"https://issues.apache.org/jira/rest/api/2/issue/12888618/comment/16934319","id":"16934319","author":{"self":"https://issues.apache.org/jira/rest/api/2/user?username=hadoopqa","name":"hadoopqa","key":"hadoopqa","avatarUrls":{"48x48":"https://issues.apache.org/jira/secure/useravatar?ownerId=hadoopqa&avatarId=10393","24x24":"https://issues.apache.org/jira/secure/useravatar?size=small&ownerId=hadoopqa&avatarId=10393","16x16":"https://issues.apache.org/jira/secure/useravatar?size=xsmall&ownerId=hadoopqa&avatarId=10393","32x32":"https://issues.apache.org/jira/secure/useravatar?size=medium&ownerId=hadoopqa&avatarId=10393"},"displayName":"Hadoop
 QA","active":true,"timeZone":"Etc/UTC"},"body":"\nTesting JIRA 
OOZIE-2364\n\nCleaning local git 
workspace\n\n----------------------------\n\n{color:red}-1{color} Patch failed 
to apply to head of 
branch\n\n----------------------------\n","updateAuthor":{"self":"https://issues.apache.org/jira/rest/api/2/user?username=hadoopqa","name":"hadoopqa","key":"hadoopqa","avatarUrls":{"48x48":"https://issues.apache.org/jira/secure/useravatar?ownerId=hadoopqa&avatarId=10393","24x24":"https://issues.apache.org/jira/secure/useravatar?size=small&ownerId=hadoopqa&avatarId=10393","16x16":"https://issues.apache.org/jira/secure/useravatar?size=xsmall&ownerId=hadoopqa&avatarId=10393","32x32":"https://issues.apache.org/jira/secure/useravatar?size=medium&ownerId=hadoopqa&avatarId=10393"},"displayName":"Hadoop
 
QA","active":true,"timeZone":"Etc/UTC"},"created":"2019-09-20T11:48:53.154+0000","updated":"2019-09-20T11:48:53.154+0000"}
test-patch exit code: 1

Build step 'Execute shell' marked build as failure
[description-setter] Description set: OOZIE-2364
Archiving artifacts
Recording test results
ERROR: Step ?Publish JUnit test result report? failed: No test report files 
were found. Configuration error?
Email was triggered for: Failure - Any
Sending email for trigger: Failure - Any



###################################################################################
############################## FAILED TESTS (if any) 
##############################
No tests ran.

Reply via email to