Cask Data Application Platform - Develop Build and Test

Build: #1985 failed

Job: Unit Test Job failed

Stages & jobs

  1. Unit Test Stage

Job result summary

Completed
Duration
114 minutes
Agent
bamboo-agent17
Revision
b85a4ac1951fdb302a2b9a52a06088f9fd23d734 b85a4ac1951fdb302a2b9a52a06088f9fd23d734
Total tests
2031
Fixed in
#1986 (Child of CDAP-DRC-3529)

Tests

  • 2,031 tests in total
  • 7 tests failed
  • 7 failures are new
  • 12 tests were quarantined / skipped
  • 65 minutes taken in total.
New test failures 7
Status Test Duration
Collapse Failed AuthorizationTest testAddDropPartitions History
< 1 sec
java.lang.AssertionError: expected:<[]> but was:<[Privilege{authorizable=dataset:outputNS.store, action=READ}, Privilege{authorizable=namespace:authorization, action=ADMIN}, Privilege{authorizable=stream:authorization.dataStream, action=ADMIN}, Privilege{authorizable=dataset:outputNS.store, action=ADMIN}, Privilege{authorizable=application:authorization.WriterApp, action=ADMIN}, Privilege{authorizable=artifact:authorization.CrossNsDatasetAccessApp, action=ADMIN}, Privilege{authorizable=namespace:outputNS, action=ADMIN}, Privilege{authorizable=dataset_type:outputNS.keyValueTable, action=ADMIN}]>
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.failNotEquals(Assert.java:743)
	at org.junit.Assert.assertEquals(Assert.java:118)
	at org.junit.Assert.assertEquals(Assert.java:144)
	at co.cask.cdap.security.AuthorizationTest.setupTest(AuthorizationTest.java:189)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
(48 more lines...)
Collapse Failed AuthorizationTest testCrossNSFlowlet History
1 sec
java.lang.RuntimeException: co.cask.cdap.common.BadRequestException: Program 'program:authorization.WriterApp.-SNAPSHOT.flow.dataFlow' is not running.
	at com.google.common.base.Throwables.propagate(Throwables.java:160)
	at co.cask.cdap.test.internal.DefaultApplicationManager.stopProgram(DefaultApplicationManager.java:153)
	at co.cask.cdap.test.AbstractProgramManager.stop(AbstractProgramManager.java:65)
	at co.cask.cdap.security.AuthorizationTest.testCrossNSDatasetAccessFromFlowlet(AuthorizationTest.java:845)
	at co.cask.cdap.security.AuthorizationTest.testCrossNSFlowlet(AuthorizationTest.java:777)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
(58 more lines...)
Collapse Failed AuthorizationTest testCrossNSSpark History
< 1 sec
java.lang.AssertionError: expected:<[]> but was:<[Privilege{authorizable=dataset:outputNS.store, action=READ}, Privilege{authorizable=namespace:authorization, action=ADMIN}, Privilege{authorizable=stream:authorization.dataStream, action=ADMIN}, Privilege{authorizable=dataset:outputNS.store, action=ADMIN}, Privilege{authorizable=application:authorization.WriterApp, action=ADMIN}, Privilege{authorizable=artifact:authorization.CrossNsDatasetAccessApp, action=ADMIN}, Privilege{authorizable=namespace:outputNS, action=ADMIN}, Privilege{authorizable=dataset_type:outputNS.keyValueTable, action=ADMIN}]>
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.failNotEquals(Assert.java:743)
	at org.junit.Assert.assertEquals(Assert.java:118)
	at org.junit.Assert.assertEquals(Assert.java:144)
	at co.cask.cdap.security.AuthorizationTest.setupTest(AuthorizationTest.java:189)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
(48 more lines...)
Collapse Failed AuthorizationTest testMRStreamAuth History
< 1 sec
java.lang.AssertionError: expected:<[]> but was:<[Privilege{authorizable=dataset:outputNS.store, action=READ}, Privilege{authorizable=namespace:authorization, action=ADMIN}, Privilege{authorizable=stream:authorization.dataStream, action=ADMIN}, Privilege{authorizable=dataset:outputNS.store, action=ADMIN}, Privilege{authorizable=application:authorization.WriterApp, action=ADMIN}, Privilege{authorizable=artifact:authorization.CrossNsDatasetAccessApp, action=ADMIN}, Privilege{authorizable=namespace:outputNS, action=ADMIN}, Privilege{authorizable=dataset_type:outputNS.keyValueTable, action=ADMIN}]>
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.failNotEquals(Assert.java:743)
	at org.junit.Assert.assertEquals(Assert.java:118)
	at org.junit.Assert.assertEquals(Assert.java:144)
	at co.cask.cdap.security.AuthorizationTest.setupTest(AuthorizationTest.java:189)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
(48 more lines...)
Collapse Failed AuthorizationTest testSparkStreamAuth History
< 1 sec
java.lang.AssertionError: expected:<[]> but was:<[Privilege{authorizable=dataset:outputNS.store, action=READ}, Privilege{authorizable=namespace:authorization, action=ADMIN}, Privilege{authorizable=stream:authorization.dataStream, action=ADMIN}, Privilege{authorizable=dataset:outputNS.store, action=ADMIN}, Privilege{authorizable=application:authorization.WriterApp, action=ADMIN}, Privilege{authorizable=artifact:authorization.CrossNsDatasetAccessApp, action=ADMIN}, Privilege{authorizable=namespace:outputNS, action=ADMIN}, Privilege{authorizable=dataset_type:outputNS.keyValueTable, action=ADMIN}]>
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.failNotEquals(Assert.java:743)
	at org.junit.Assert.assertEquals(Assert.java:118)
	at org.junit.Assert.assertEquals(Assert.java:144)
	at co.cask.cdap.security.AuthorizationTest.setupTest(AuthorizationTest.java:189)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
(48 more lines...)
Collapse Failed AuthorizationTest testStreams History
< 1 sec
java.lang.AssertionError: expected:<[]> but was:<[Privilege{authorizable=dataset:outputNS.store, action=READ}, Privilege{authorizable=namespace:authorization, action=ADMIN}, Privilege{authorizable=stream:authorization.dataStream, action=ADMIN}, Privilege{authorizable=dataset:outputNS.store, action=ADMIN}, Privilege{authorizable=application:authorization.WriterApp, action=ADMIN}, Privilege{authorizable=artifact:authorization.CrossNsDatasetAccessApp, action=ADMIN}, Privilege{authorizable=namespace:outputNS, action=ADMIN}, Privilege{authorizable=dataset_type:outputNS.keyValueTable, action=ADMIN}]>
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.failNotEquals(Assert.java:743)
	at org.junit.Assert.assertEquals(Assert.java:118)
	at org.junit.Assert.assertEquals(Assert.java:144)
	at co.cask.cdap.security.AuthorizationTest.setupTest(AuthorizationTest.java:189)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
(48 more lines...)
Collapse Failed AuthorizationTest testWorkerStreamAuth History
< 1 sec
java.lang.AssertionError: expected:<[]> but was:<[Privilege{authorizable=dataset:outputNS.store, action=READ}, Privilege{authorizable=namespace:authorization, action=ADMIN}, Privilege{authorizable=stream:authorization.dataStream, action=ADMIN}, Privilege{authorizable=dataset:outputNS.store, action=ADMIN}, Privilege{authorizable=application:authorization.WriterApp, action=ADMIN}, Privilege{authorizable=artifact:authorization.CrossNsDatasetAccessApp, action=ADMIN}, Privilege{authorizable=namespace:outputNS, action=ADMIN}, Privilege{authorizable=dataset_type:outputNS.keyValueTable, action=ADMIN}]>
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.failNotEquals(Assert.java:743)
	at org.junit.Assert.assertEquals(Assert.java:118)
	at org.junit.Assert.assertEquals(Assert.java:144)
	at co.cask.cdap.security.AuthorizationTest.setupTest(AuthorizationTest.java:189)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
(48 more lines...)