AbortedConsole Output

Skipping 4,992 KB.. Full Log
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
###############################################################################
# Copyright (c) 2017, 2020 Eurotech and/or its affiliates and others
#
# This program and the accompanying materials are made
# available under the terms of the Eclipse Public License 2.0
# which is available at https://www.eclipse.org/legal/epl-2.0/
#
# SPDX-License-Identifier: EPL-2.0
#
# Contributors:
#     Eurotech - initial API and implementation
###############################################################################
@unit @deviceRegistry @deviceEvents
Feature: Device Event CRUD tests
    The Device Event service is responsible for handling the incoming device
    events.
SLF4J: Failed to load class "org.slf4j.impl.StaticMDCBinder".
SLF4J: Defaulting to no-operation MDCAdapter implementation.
SLF4J: See http://www.slf4j.org/codes.html#no_static_mdc_binder for further details.

  Scenario: Create a regular event                    # features/DeviceEvent.feature:20
      Create a regular event. The event should not be null and should
      have a regular entity ID. Also the event entity shoould match the event
      creator parameters.

    Given A device named "first"                      # DeviceRegistrySteps.createNamedDevice(String)
    When I search for a device with the remembered ID # DeviceRegistrySteps.findDeviceWithRememberedId()
    Then I find the device                            # DeviceRegistrySteps.deviceIsNotNull()
    And A device named "second"                       # DeviceRegistrySteps.createNamedDevice(String)
    And A "CREATE" event from device "first"          # DeviceRegistrySteps.createRegularEvent(String,String)
    Then No exception was thrown                      # BasicSteps.noExceptionCaught()
    And The event matches the creator parameters      # DeviceRegistrySteps.checkCreatedEventAgainstCreatorParameters()
Exception raised as expected: org.eclipse.kapua.KapuaIllegalNullArgumentException, An illegal null value was provided for the argument deviceEventCreator.scopeId.

  Scenario: Create an event with a null scope ID                                                                      # features/DeviceEvent.feature:33
      It should be impossible to create an event with a null scope ID. Such attempt
      must raise an exception.

    Given A device named "first"                                                                                      # DeviceRegistrySteps.createNamedDevice(String)
    And A device named "second"                                                                                       # DeviceRegistrySteps.createNamedDevice(String)
    Given A null scope                                                                                                # BasicSteps.setNullScope()
    And I expect the exception "KapuaIllegalNullArgumentException" with the text "An illegal null value was provided" # BasicSteps.setExpectedExceptionDetails(String,String)
    When A "CREATE" event from device "first"                                                                         # DeviceRegistrySteps.createRegularEvent(String,String)
    Then An exception was thrown                                                                                      # BasicSteps.exceptionCaught()

  Scenario: Find an event by its ID                   # features/DeviceEvent.feature:44
      It must be possible to find an event entity based on the event ID.

    Given A device named "first"                      # DeviceRegistrySteps.createNamedDevice(String)
    And A device named "second"                       # DeviceRegistrySteps.createNamedDevice(String)
    And A "CREATE" event from device "first"          # DeviceRegistrySteps.createRegularEvent(String,String)
    When I search for an event with the remembered ID # DeviceRegistrySteps.findEventById()
    Then The event matches the creator parameters     # DeviceRegistrySteps.checkCreatedEventAgainstCreatorParameters()

  Scenario: Find a non existing event           # features/DeviceEvent.feature:53
      Searching for an event with a non existing entity ID should return null. No
      exception must be thrown.

    Given A device named "first"                # DeviceRegistrySteps.createNamedDevice(String)
    And A device named "second"                 # DeviceRegistrySteps.createNamedDevice(String)
    And A "CREATE" event from device "first"    # DeviceRegistrySteps.createRegularEvent(String,String)
    When I search for an event with a random ID # DeviceRegistrySteps.findEventByRandomId()
    Then There is no such event                 # DeviceRegistrySteps.eventIsNull()

  Scenario: Delete an existing event                  # features/DeviceEvent.feature:63
      It must be possible to delete an existing event entity from the database.

    Given A device named "first"                      # DeviceRegistrySteps.createNamedDevice(String)
    And A device named "second"                       # DeviceRegistrySteps.createNamedDevice(String)
    And A "CREATE" event from device "first"          # DeviceRegistrySteps.createRegularEvent(String,String)
    When I search for an event with the remembered ID # DeviceRegistrySteps.findEventById()
    Then The event matches the creator parameters     # DeviceRegistrySteps.checkCreatedEventAgainstCreatorParameters()
    When I delete the event with the remembered ID    # DeviceRegistrySteps.deleteEvent()
    And I search for an event with the remembered ID  # DeviceRegistrySteps.findEventById()
    Then There is no such event                       # DeviceRegistrySteps.eventIsNull()
Exception raised as expected: org.eclipse.kapua.KapuaEntityNotFoundException, The entity of type deviceEvent with id/name 2,888,047,432,387,751,475 was not found.

  Scenario: Delete a non existent event                                                                                   # features/DeviceEvent.feature:75
      Trying to delete a non existent event (no matching entity ID) must cause an
      exception to be thrown.

    Given A device named "first"                                                                                          # DeviceRegistrySteps.createNamedDevice(String)
    And A device named "second"                                                                                           # DeviceRegistrySteps.createNamedDevice(String)
    And I expect the exception "KapuaEntityNotFoundException" with the text "The entity of type deviceEvent with id/name" # BasicSteps.setExpectedExceptionDetails(String,String)
    And A "CREATE" event from device "first"                                                                              # DeviceRegistrySteps.createRegularEvent(String,String)
    When I delete an event with a random ID                                                                               # DeviceRegistrySteps.deleteEventWithRandomId()
    Then An exception was thrown                                                                                          # BasicSteps.exceptionCaught()

  Scenario: Count events in empty scope               # features/DeviceEvent.feature:86
      Counting events in an empty (non existing) scope must return a count of 0.
      No exception should be thrown.

    Given A device named "first"                      # DeviceRegistrySteps.createNamedDevice(String)
    And A device named "second"                       # DeviceRegistrySteps.createNamedDevice(String)
    And I have 15 "CREATE" events from device "first" # DeviceRegistrySteps.createANumberOfEvents(int,String,String)
    When I count events for scope 42                  # DeviceRegistrySteps.countEventsInScope(int)
    Then I count 0                                    # BasicSteps.checkCountResult(Long)

  Scenario: Basic Device Event queries                 # features/DeviceEvent.feature:96
      It must be possible to perform basic event entity queries.

    Given A device named "first"                       # DeviceRegistrySteps.createNamedDevice(String)
    And A device named "second"                        # DeviceRegistrySteps.createNamedDevice(String)
    And I have 10 "WRITE" events from device "first"   # DeviceRegistrySteps.createANumberOfEvents(int,String,String)
    And I have 15 "CREATE" events from device "first"  # DeviceRegistrySteps.createANumberOfEvents(int,String,String)
    And I have 20 "EXECUTE" events from device "first" # DeviceRegistrySteps.createANumberOfEvents(int,String,String)
    When I query for "CREATE" events                   # DeviceRegistrySteps.queryForSpecificEvents(String)
    Then I find 15 device events                       # DeviceRegistrySteps.checkEventListForNumberOfItems(int)
    When I query for "WRITE" events                    # DeviceRegistrySteps.queryForSpecificEvents(String)
    Then I find 10 device events                       # DeviceRegistrySteps.checkEventListForNumberOfItems(int)

  Scenario: Event factory sanity checks                                  # features/DeviceEvent.feature:109
    Then All device event factory functions must return non null objects # DeviceRegistrySteps.exerciseAllEventFactoryFunctions()

  Scenario: Event service domain check               # features/DeviceEvent.feature:112
    Then The device event domain data can be updated # DeviceRegistrySteps.checkDeviceEventDomainUpdate()
###############################################################################
# Copyright (c) 2017, 2020 Eurotech and/or its affiliates and others
#
# This program and the accompanying materials are made
# available under the terms of the Eclipse Public License 2.0
# which is available at https://www.eclipse.org/legal/epl-2.0/
#
# SPDX-License-Identifier: EPL-2.0
#
# Contributors:
#     Eurotech - initial API and implementation
###############################################################################
@unit @deviceRegistry @device
Feature: Device Registry CRUD tests
    The Device registry Service is responsible for CRUD operations for devices in the Kapua
    database.
Exception raised as expected: org.eclipse.kapua.KapuaIllegalNullArgumentException, An illegal null value was provided for the argument deviceCreator.clientId.

  Scenario: Create a single device with null clientID value                                                                                                      # features/DeviceRegistry.feature:20
      Try to create a single device with ClientID set to NULL.
      An exception should be thrown.

    Given I expect the exception "KapuaIllegalNullArgumentException" with the text "An illegal null value was provided for the argument deviceCreator.clientId." # BasicSteps.setExpectedExceptionDetails(String,String)
    When I create a device with null clientID                                                                                                                    # DeviceRegistrySteps.iCreateADeviceWithNullClientID()
    Then An exception was thrown                                                                                                                                 # BasicSteps.exceptionCaught()

  Scenario: Creating a single device with valid clientID # features/DeviceRegistry.feature:28
      Create a single test device. The resulting device must have a unique clientID assigned
      by the creation process.

    Given I create a device with name "device"           # DeviceRegistrySteps.iCreateADeviceWithName(String)
    When I search for a device with name "device"        # DeviceRegistrySteps.iSearchForADeviceWithName(String)
    Then I find device with clientId "device"            # DeviceRegistrySteps.iFindDeviceWithClientId(String)
    And No exception was thrown                          # BasicSteps.noExceptionCaught()

  Scenario: Creating a single device with case sensitive clientID # features/DeviceRegistry.feature:37
      Create a single device with case sensitive clientID name.
      Kapua should not return any error.

    Given I create a device with name "testDevice"                # DeviceRegistrySteps.iCreateADeviceWithName(String)
    When I search for a device with name "testDevice"             # DeviceRegistrySteps.iSearchForADeviceWithName(String)
    Then I find device with clientId "testDevice"                 # DeviceRegistrySteps.iFindDeviceWithClientId(String)
    And No exception was thrown                                   # BasicSteps.noExceptionCaught()

  Scenario: Creating a single device with spaces in clientID # features/DeviceRegistry.feature:46
      Create a single device with space in clientID.
      Kapua should not return any error.

    Given I create a device with name "test Device"          # DeviceRegistrySteps.iCreateADeviceWithName(String)
    When I search for a device with name "test Device"       # DeviceRegistrySteps.iSearchForADeviceWithName(String)
    Then I find device with clientId "test Device"           # DeviceRegistrySteps.iFindDeviceWithClientId(String)
    And No exception was thrown                              # BasicSteps.noExceptionCaught()
Exception raised as expected: org.eclipse.kapua.KapuaIllegalNullArgumentException, An illegal null value was provided for the argument deviceCreator.clientId.

  Scenario: Create a single device with an empty string for clientID                                                                                             # features/DeviceRegistry.feature:55
      Create a single device with clientID that contains an empty string for it.
      Kapua should return an error.

    Given I expect the exception "KapuaIllegalNullArgumentException" with the text "An illegal null value was provided for the argument deviceCreator.clientId." # BasicSteps.setExpectedExceptionDetails(String,String)
    When I create a device with name ""                                                                                                                          # DeviceRegistrySteps.iCreateADeviceWithName(String)
    Then An exception was thrown                                                                                                                                 # BasicSteps.exceptionCaught()

  Scenario: Creating a single device with clientID that contains 255 characters                                                                                                                                                                                                                            # features/DeviceRegistry.feature:63
      Create a single device with clientID that contains 255 characters.
      Kapua should not return any error.

    Given I create a device with name "validDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDeviceva"    # DeviceRegistrySteps.iCreateADeviceWithName(String)
    When I search for a device with name "validDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDeviceva" # DeviceRegistrySteps.iSearchForADeviceWithName(String)
    Then I find device with clientId "validDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDeviceva"     # DeviceRegistrySteps.iFindDeviceWithClientId(String)
    And No exception was thrown                                                                                                                                                                                                                                                                            # BasicSteps.noExceptionCaught()
Exception raised as expected: org.eclipse.kapua.KapuaIllegalArgumentException, An illegal value was provided for the argument deviceCreator.clientId: Value over than allowed max length. Max length is 255.

  Scenario: Creating a single device with clientID that contains 256 characters                                                                                                                                                                                                                         # features/DeviceRegistry.feature:72
      Create a single device with clientID that contains 256 characters.
      Kapua should return an error.

    Given I expect the exception "KapuaIllegalArgumentException" with the text "Value over than allowed max length. Max length is 255."                                                                                                                                                                 # BasicSteps.setExpectedExceptionDetails(String,String)
    When I create a device with name "validDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDevicevalidDeviceval" # DeviceRegistrySteps.iCreateADeviceWithName(String)
    Then An exception was thrown                                                                                                                                                                                                                                                                        # BasicSteps.exceptionCaught()
Exception raised as expected: org.eclipse.kapua.KapuaIllegalArgumentException, An illegal value was provided for the argument deviceCreator.clientId: deviceName#.
Exception raised as expected: org.eclipse.kapua.KapuaIllegalArgumentException, An illegal value was provided for the argument deviceCreator.clientId: deviceName+.
Exception raised as expected: org.eclipse.kapua.KapuaIllegalArgumentException, An illegal value was provided for the argument deviceCreator.clientId: deviceName*.
Exception raised as expected: org.eclipse.kapua.KapuaIllegalArgumentException, An illegal value was provided for the argument deviceCreator.clientId: deviceName&.
Exception raised as expected: org.eclipse.kapua.KapuaIllegalArgumentException, An illegal value was provided for the argument deviceCreator.clientId: deviceName,.
Exception raised as expected: org.eclipse.kapua.KapuaIllegalArgumentException, An illegal value was provided for the argument deviceCreator.clientId: deviceName?.
Exception raised as expected: org.eclipse.kapua.KapuaIllegalArgumentException, An illegal value was provided for the argument deviceCreator.clientId: deviceName>.
Exception raised as expected: org.eclipse.kapua.KapuaIllegalArgumentException, An illegal value was provided for the argument deviceCreator.clientId: deviceName/.

  Scenario: Creating a single device with clientID that contains invalid characters                                                                    # features/DeviceRegistry.feature:80
      Create a single device with clientID that contains invalid characters.
      Kapua should return an error.

    Given I expect the exception "KapuaIllegalArgumentException" with the text "An illegal value was provided for the argument deviceCreator.clientId" # BasicSteps.setExpectedExceptionDetails(String,String)
    When I try to create devices with invalid symbols "#+*&,?>/" in name                                                                               # DeviceRegistrySteps.iTryToCreateDevicesWithInvalidSymbolsInName(String)
    Then An exception was thrown                                                                                                                       # BasicSteps.exceptionCaught()
Exception raised as expected: org.eclipse.kapua.KapuaIllegalArgumentException, An illegal value was provided for the argument deviceCreator.clientId: testDevice::.

  #This scenario must be separated from the above scenario because upper scenario cannot contain (::) characters in a row.
  Scenario: Creating a single device with clientID that contains invalid character                                                                     # features/DeviceRegistry.feature:89
      Create a single device with clientID invalid special character ::.
      Kapua should return an error.

    Given I expect the exception "KapuaIllegalArgumentException" with the text "An illegal value was provided for the argument deviceCreator.clientId" # BasicSteps.setExpectedExceptionDetails(String,String)
    When I create a device with name "testDevice::"                                                                                                    # DeviceRegistrySteps.iCreateADeviceWithName(String)
    Then An exception was thrown                                                                                                                       # BasicSteps.exceptionCaught()
Exception raised as expected: org.eclipse.kapua.KapuaDuplicateNameException, An entity with the same name testDevice already exists.

  Scenario: Creating two device with the same clientID                                                                                 # features/DeviceRegistry.feature:97
      Try to create two devices with same clientID.
      Kapua should return an error.

    Given I expect the exception "KapuaDuplicateNameException" with the text "An entity with the same name testDevice already exists." # BasicSteps.setExpectedExceptionDetails(String,String)
    When I create a device with name "testDevice"                                                                                      # DeviceRegistrySteps.iCreateADeviceWithName(String)
    And I create a device with name "testDevice"                                                                                       # DeviceRegistrySteps.iCreateADeviceWithName(String)
    Then An exception was thrown                                                                                                       # BasicSteps.exceptionCaught()

  Scenario: All device parameters must match the device creator # features/DeviceRegistry.feature:106
      Create a test device and check whether it was created correctly. All the device
      parameters must match the device creator specifications.

    Given A device named "testDevice"                           # DeviceRegistrySteps.createNamedDevice(String)
    Then The device matches the creator parameters              # DeviceRegistrySteps.checkCreatedDeviceAgainstCreatorParameters()

  Scenario: Case sensitiveness of named device searches                   # features/DeviceRegistry.feature:113
      Searching by client ID is case sensitive.

    Given A device named "CaseSensitiveTestName"                          # DeviceRegistrySteps.createNamedDevice(String)
    When I search for a device with the client ID "CaseSensitiveTestName" # DeviceRegistrySteps.findDeviceWithClientId(String)
    Then I find device with clientId "CaseSensitiveTestName"              # DeviceRegistrySteps.iFindDeviceWithClientId(String)

  Scenario: Find device by registry ID                # features/DeviceRegistry.feature:120
      It must be possible to find a device in the registry by its registry ID.

    Given A device named "TestDevice"                 # DeviceRegistrySteps.createNamedDevice(String)
    When I search for a device with the remembered ID # DeviceRegistrySteps.findDeviceWithRememberedId()
    Then The device matches the creator parameters    # DeviceRegistrySteps.checkCreatedDeviceAgainstCreatorParameters()

  Scenario: Find device by client ID                      # features/DeviceRegistry.feature:127
      It must be possible to find a device in the registry by its Client ID.

    Given A device named "TestDevice"                     # DeviceRegistrySteps.createNamedDevice(String)
    Then I find the device based on clientID "TestDevice" # DeviceRegistrySteps.findDeviceByRememberedClientId(String)

  Scenario: Try to find a device with an invalid registry ID  # features/DeviceRegistry.feature:133
      Searching for a nonexistent device should not raise any exception.
      Empty list should be returned.

    When I search for a device with a nonexisting registry ID # DeviceRegistrySteps.findDeviceWithRandomId()
    Then There is no such device                              # DeviceRegistrySteps.noSuchDevice()

  Scenario: Try to find a device with an invalid client ID    # features/DeviceRegistry.feature:140
      Searching for a nonexistent device should not raise any exception.
      Empty list should be returned.

    When I search for a device with a nonexisting registry ID # DeviceRegistrySteps.findDeviceWithRandomId()
    Then There is no such device                              # DeviceRegistrySteps.noSuchDevice()

  Scenario: Device query - find by BIOS version                  # features/DeviceRegistry.feature:147
      It must be possible to construct arbitrary device registry queries. In this case
      several test devices are created with different BIOS version values.
      A query based on the BIOS version must only return the correct device.

    Given A device with BIOS version "1.1.0" named "TestDevice1" # DeviceRegistrySteps.createNamedDeviceWithBiosVersion(String,String)
    Given A device with BIOS version "1.2.0" named "TestDevice2" # DeviceRegistrySteps.createNamedDeviceWithBiosVersion(String,String)
    Given A device with BIOS version "1.3.0" named "TestDevice3" # DeviceRegistrySteps.createNamedDeviceWithBiosVersion(String,String)
    When I query for devices with BIOS version "1.1.0"           # DeviceRegistrySteps.queryForDevicesBasedOnBiosVersion(String)
    And I extract the device with correct BIOS version           # DeviceRegistrySteps.getFirstDeviceFromList()
    Then The device client id is "TestDevice1"                   # DeviceRegistrySteps.checkDeviceClientName(String)

  Scenario: Device queries                                              # features/DeviceRegistry.feature:159
      Test several variants of device registry queries.
      Kapua should not return any error.

    Given I create 100 randomly named devices with BIOS version "1.1.0" # DeviceRegistrySteps.generateABunchOfTestDevices(int,String)
    Given I create 201 randomly named devices with BIOS version "1.2.0" # DeviceRegistrySteps.generateABunchOfTestDevices(int,String)
    Given I create 98 randomly named devices with BIOS version "1.3.0"  # DeviceRegistrySteps.generateABunchOfTestDevices(int,String)
    When I query for devices with BIOS version "1.1.0"                  # DeviceRegistrySteps.queryForDevicesBasedOnBiosVersion(String)
    Then I find 100 devices                                             # DeviceRegistrySteps.checkListForNumberOfItems(int)
    When I query for devices with BIOS version "1.3.0"                  # DeviceRegistrySteps.queryForDevicesBasedOnBiosVersion(String)
    Then I find 98 devices                                              # DeviceRegistrySteps.checkListForNumberOfItems(int)
    When I query for devices with BIOS different from "1.2.0"           # DeviceRegistrySteps.queryForDevicesWithDifferentBiosVersion(String)
    Then I find 201 devices                                             # DeviceRegistrySteps.checkListForNumberOfItems(int)

  Scenario: Count devices with a specific BIOS version                 # features/DeviceRegistry.feature:173
      It must be possible to count devices based on arbitrary rules.
      To this end several devices are created with different BIOS version.
      A device count based on the BIOS version value is performed. Only
      the number of devices that match the specified BIOS version is
      returned.

    Given I create 15 randomly named devices with BIOS version "1.1.0" # DeviceRegistrySteps.generateABunchOfTestDevices(int,String)
    Given I create 25 randomly named devices with BIOS version "1.2.0" # DeviceRegistrySteps.generateABunchOfTestDevices(int,String)
    Given I create 35 randomly named devices with BIOS version "1.3.0" # DeviceRegistrySteps.generateABunchOfTestDevices(int,String)
    When I count devices with BIOS version "1.2.0"                     # DeviceRegistrySteps.countDevicesWithBIOSVersion(String)
    Then I count 25                                                    # BasicSteps.checkCountResult(Long)

  Scenario: Try to update the device client ID                           # features/DeviceRegistry.feature:186
      The Client ID of a device cannot be changed after creation. Any attempt to
      after this ID must be silently ignored. No exception should be raised.

    Given A device named "TestDevice"                                    # DeviceRegistrySteps.createNamedDevice(String)
    When I update the device clientID from "TestDevice" to "NewClientId" # DeviceRegistrySteps.iUpdateTheDeviceClientIDToNewClientId(String,String)
    Then I find device with clientId "TestDevice"                        # DeviceRegistrySteps.iFindDeviceWithClientId(String)
Exception raised as expected: org.eclipse.kapua.KapuaEntityNotFoundException, The entity of type device with id/name 6,838,102,044,060,533,755 was not found.

  Scenario: Update a non existing device                                                                             # features/DeviceRegistry.feature:194
      An attempt to update a non existing device should raise an exception.

    Given A device named "TestDevice"                                                                                # DeviceRegistrySteps.createNamedDevice(String)
    And I expect the exception "KapuaEntityNotFoundException" with the text "The entity of type device with id/name" # BasicSteps.setExpectedExceptionDetails(String,String)
    When I update a device with an invalid ID                                                                        # DeviceRegistrySteps.updateDeviceWithInvalidId()
    Then An exception was thrown                                                                                     # BasicSteps.exceptionCaught()

  Scenario: Delete an existing device from the registry     # features/DeviceRegistry.feature:202
      It must be possible to delete a device from the registry. To this
      end a test device is created and subsequently deleted.
      A search for this device should yield a null but no exception.

    Given A device named "TestDevice"                       # DeviceRegistrySteps.createNamedDevice(String)
    When I delete the device with the clientId "TestDevice" # DeviceRegistrySteps.deleteDeviceWithClientId(String)
    Then There is no device with the client ID "TestDevice" # DeviceRegistrySteps.checkWhetherNamedDeviceStillExists(String)
Exception raised as expected: org.eclipse.kapua.KapuaEntityNotFoundException, The entity of type DeviceImpl with id/name 1,640,994,179,399,839,720 was not found.

  Scenario: Try to delete a non existing device from the registry                                                          # features/DeviceRegistry.feature:211
      If a user tries to delete a non existing device from the registry an
      exception must be raised.

    Given I expect the exception "KapuaEntityNotFoundException" with the text "The entity of type DeviceImpl with id/name" # BasicSteps.setExpectedExceptionDetails(String,String)
    When When I delete a device with nonexisting ID                                                                        # DeviceRegistrySteps.deleteDeviceWithRandomIds()
    Then An exception was thrown                                                                                           # BasicSteps.exceptionCaught()

  Scenario: Device factory sanity checks                          # features/DeviceRegistry.feature:219
      The Account factory must instantiate and return valid items. For this test it is enough
      that the items returned are not null.

    Then All device factory functions must return non null values # DeviceRegistrySteps.exerciseAllDeviceFactoryFunctions()
###############################################################################
# Copyright (c) 2017, 2020 Eurotech and/or its affiliates and others
#
# This program and the accompanying materials are made
# available under the terms of the Eclipse Public License 2.0
# which is available at https://www.eclipse.org/legal/epl-2.0/
#
# SPDX-License-Identifier: EPL-2.0
#
# Contributors:
#     Eurotech - initial API and implementation
###############################################################################
@unit @deviceRegistry @deviceConnection
Feature: Device Registry Connection tests
    The Device Registry Connection service is responsible for performing CRUD operations
    regarding device connections on the Kapua database.

  Scenario: Regular connection               # features/DeviceRegistryConnection.feature:20
      It must be possible to create a device connection entry in the database. The entry
      must match the creator parameters. The connection status must also be
      implicitly set to CONNECTED.

    Given The User ID 1                      # BasicSteps.setSpecificUserId(Integer)
    And Scope with ID 1                      # BasicSteps.setSpecificScopeId(Integer)
    And I have the following connection      # DeviceRegistrySteps.createConnections(CucConnection>)
    Then The connection object is regular    # DeviceRegistrySteps.checkConnectionObject()
    And The connection details match         # DeviceRegistrySteps.checkConnectionDetails(CucConnection>)
    And The connection status is "CONNECTED" # DeviceRegistrySteps.checkDeviceConnectionStatus(String)

  Scenario: Device connection update        # features/DeviceRegistryConnection.feature:36
      It must be possible to change the data of an existing device connection database
      entry.

    Given The User ID 1                     # BasicSteps.setSpecificUserId(Integer)
    And Scope with ID 1                     # BasicSteps.setSpecificScopeId(Integer)
    And I have the following connection     # DeviceRegistrySteps.createConnections(CucConnection>)
    When I modify the connection details to # DeviceRegistrySteps.updateConnectionDetails(CucConnection>)
    Then No exception was thrown            # BasicSteps.noExceptionCaught()
    And The connection details match        # DeviceRegistrySteps.checkConnectionDetails(CucConnection>)

  Scenario: Try to modify the connection client ID                 # features/DeviceRegistryConnection.feature:53
      It must not be possible to change the client ID of an existing device connection.
      Attempts to change the client ID must be silently ignored. No exceptions must
      be thrown.

    Given The User ID 1                                            # BasicSteps.setSpecificUserId(Integer)
    And Scope with ID 1                                            # BasicSteps.setSpecificScopeId(Integer)
    And I have the following connection                            # DeviceRegistrySteps.createConnections(CucConnection>)
    When I try to modify the connection client Id to "testClient2" # DeviceRegistrySteps.changeConnectionClientId(String)
    Then No exception was thrown                                   # BasicSteps.noExceptionCaught()
    And The connection client ID remains unchanged                 # DeviceRegistrySteps.checkThatClientIdHasNotChanged()

  Scenario: Count connections in scope   # features/DeviceRegistryConnection.feature:67
      It must be possible to count all the connections in a given scope.

    Given Scope with ID 1                # BasicSteps.setSpecificScopeId(Integer)
    And I have the following connections # DeviceRegistrySteps.createConnections(CucConnection>)
    Then No exception was thrown         # BasicSteps.noExceptionCaught()
    And I count 7 connections in scope 1 # DeviceRegistrySteps.countConnectioncInScope(int,int)

  Scenario: Count connections in empty scope # features/DeviceRegistryConnection.feature:83
      Counting connections for an empty (nonexisting) scope must not raise any exception.
      A regular result (in this case 0) must be returned.

    Given Scope with ID 1                    # BasicSteps.setSpecificScopeId(Integer)
    And I have the following connections     # DeviceRegistrySteps.createConnections(CucConnection>)
    Then I count 0 connections in scope 42   # DeviceRegistrySteps.countConnectioncInScope(int,int)
Exception raised as expected: org.eclipse.kapua.KapuaEntityNotFoundException, The entity of type deviceConnection with id/name 805,189,923,939,101,515 was not found.

  Scenario: Try to change an existing connection ID                                                                            # features/DeviceRegistryConnection.feature:99
      It must not be possible to change the ID of an existing connection. Trying to
      do so must result in an exception being thrown.

    Given The User ID 1                                                                                                        # BasicSteps.setSpecificUserId(Integer)
    And Scope with ID 1                                                                                                        # BasicSteps.setSpecificScopeId(Integer)
    And I have the following connection                                                                                        # DeviceRegistrySteps.createConnections(CucConnection>)
    And I expect the exception "KapuaEntityNotFoundException" with the text "The entity of type deviceConnection with id/name" # BasicSteps.setExpectedExceptionDetails(String,String)
    When I try to modify the connection Id                                                                                     # DeviceRegistrySteps.changeConnectionIdRandomly()
    Then An exception was thrown                                                                                               # BasicSteps.exceptionCaught()

  Scenario: Find a connection by its IDs                       # features/DeviceRegistryConnection.feature:112
      It must be possible to find a specific connection in the database based on
      its scope and entity IDs.

    Given The User ID 1                                        # BasicSteps.setSpecificUserId(Integer)
    And Scope with ID 1                                        # BasicSteps.setSpecificScopeId(Integer)
    And I have the following connection                        # DeviceRegistrySteps.createConnections(CucConnection>)
    When I search for a connection by scope and connection IDs # DeviceRegistrySteps.findConnectionByScopeAndConnectionId()
    Then The connection details match                          # DeviceRegistrySteps.checkConnectionDetails(CucConnection>)

  Scenario: I try to find a non-existing connection # features/DeviceRegistryConnection.feature:126
      Searching for a non existing connection must not raise any exception. A null
      reference must be returned instead.

    Given The User ID 1                             # BasicSteps.setSpecificUserId(Integer)
    And Scope with ID 1                             # BasicSteps.setSpecificScopeId(Integer)
    And I have the following connection             # DeviceRegistrySteps.createConnections(CucConnection>)
    When I search for a random connection ID        # DeviceRegistrySteps.searchForARandomConnectionId()
    Then No connection was found                    # DeviceRegistrySteps.checkThatConnectionIsNull()

  Scenario: Find a connection by its client ID                      # features/DeviceRegistryConnection.feature:138
      It must be possible to find a specific connection in the database based on its
      scope and client IDs.

    Given The User ID 1                                             # BasicSteps.setSpecificUserId(Integer)
    And Scope with ID 1                                             # BasicSteps.setSpecificScopeId(Integer)
    And I have the following connections                            # DeviceRegistrySteps.createConnections(CucConnection>)
    When I search for a connection with the client ID "testClient3" # DeviceRegistrySteps.findConnectionByClientId(String)
    Then The connection details match                               # DeviceRegistrySteps.checkConnectionDetails(CucConnection>)

  Scenario: Search for a non existent client ID                       # features/DeviceRegistryConnection.feature:155
      Searching for a non existing connection must not raise any exception. A null
      reference must be returned instead.

    Given The User ID 1                                               # BasicSteps.setSpecificUserId(Integer)
    And Scope with ID 1                                               # BasicSteps.setSpecificScopeId(Integer)
    And I have the following connections                              # DeviceRegistrySteps.createConnections(CucConnection>)
    When I search for a connection with the client ID "nonexistentId" # DeviceRegistrySteps.findConnectionByClientId(String)
    Then No connection was found                                      # DeviceRegistrySteps.checkThatConnectionIsNull()

  Scenario: The Client ID is case sensitive                         # features/DeviceRegistryConnection.feature:170
    Given The User ID 1                                             # BasicSteps.setSpecificUserId(Integer)
    And Scope with ID 1                                             # BasicSteps.setSpecificScopeId(Integer)
    And I have the following connections                            # DeviceRegistrySteps.createConnections(CucConnection>)
    When I search for a connection with the client ID "TESTClient1" # DeviceRegistrySteps.findConnectionByClientId(String)
    Then No connection was found                                    # DeviceRegistrySteps.checkThatConnectionIsNull()
    When I search for a connection with the client ID "testClient1" # DeviceRegistrySteps.findConnectionByClientId(String)
    Then The connection details match                               # DeviceRegistrySteps.checkConnectionDetails(CucConnection>)

  Scenario: Delete a connection from the database                   # features/DeviceRegistryConnection.feature:183
      It must be possible to delete a specific entry fron the connection database.

    Given The User ID 1                                             # BasicSteps.setSpecificUserId(Integer)
    And Scope with ID 1                                             # BasicSteps.setSpecificScopeId(Integer)
    And I have the following connections                            # DeviceRegistrySteps.createConnections(CucConnection>)
    And I search for a connection with the client ID "testClient3"  # DeviceRegistrySteps.findConnectionByClientId(String)
    And I delete the existing connection                            # DeviceRegistrySteps.deleteExistingConnection()
    When I search for a connection with the client ID "testClient3" # DeviceRegistrySteps.findConnectionByClientId(String)
    Then No connection was found                                    # DeviceRegistrySteps.checkThatConnectionIsNull()
Exception raised as expected: org.eclipse.kapua.KapuaEntityNotFoundException, The entity of type deviceConnection with id/name 7,064,150,752,237,003,939 was not found.

  Scenario: Delete a non existing connection                                                                                   # features/DeviceRegistryConnection.feature:199
      Trying to delete a non existent connection should result in an exception
      being thrown.

    Given The User ID 1                                                                                                        # BasicSteps.setSpecificUserId(Integer)
    And Scope with ID 1                                                                                                        # BasicSteps.setSpecificScopeId(Integer)
    And I have the following connection                                                                                        # DeviceRegistrySteps.createConnections(CucConnection>)
    And I expect the exception "KapuaEntityNotFoundException" with the text "The entity of type deviceConnection with id/name" # BasicSteps.setExpectedExceptionDetails(String,String)
    When I try to delete a random connection ID                                                                                # DeviceRegistrySteps.deleteRandomConnection()
    Then An exception was thrown                                                                                               # BasicSteps.exceptionCaught()

  Scenario: Generic connection query                                                   # features/DeviceRegistryConnection.feature:212
      It must be possible to query for connections in the database based on various
      parameters.

    Given The User ID 1                                                                # BasicSteps.setSpecificUserId(Integer)
    And Scope with ID 1                                                                # BasicSteps.setSpecificScopeId(Integer)
    And I have the following connections                                               # DeviceRegistrySteps.createConnections(CucConnection>)
    When I query for all connections with the parameter "protocol" set to "udp"        # DeviceRegistrySteps.cueryForConnections(String,String)
    Then I find 5 connections                                                          # DeviceRegistrySteps.checkResultListLength(int)
    When I query for all connections with the parameter "serverIp" set to "127.0.0.11" # DeviceRegistrySteps.cueryForConnections(String,String)
    Then I find 4 connections                                                          # DeviceRegistrySteps.checkResultListLength(int)

  Scenario: Connection Service factory sanity checks                  # features/DeviceRegistryConnection.feature:236
    Then All connection factory functions must return non null values # DeviceRegistrySteps.exerciseAllConnectionFactoryFunctions()

  Scenario: Check the sanity of the Device Connection Domain data initialization # features/DeviceRegistryConnection.feature:239
    Then The device connection domain defaults are correctly initialized         # DeviceRegistrySteps.checkConnectionDomainInitialization()

  Scenario: Check the Device Connection Domain data seetting # features/DeviceRegistryConnection.feature:242
    Then The device connection domain data can be updated    # DeviceRegistrySteps.checkDeviceConnectionDomainUpdate()
###############################################################################
# Copyright (c) 2017, 2020 Eurotech and/or its affiliates and others
#
# This program and the accompanying materials are made
# available under the terms of the Eclipse Public License 2.0
# which is available at https://www.eclipse.org/legal/epl-2.0/
#
# SPDX-License-Identifier: EPL-2.0
#
# Contributors:
#     Eurotech - initial API and implementation
###############################################################################
@unit @deviceRegistry @deviceRegistryValidation
Feature: Device Registry Validation Tests
    The Device Registry Validation helper is responsible for validating parameters
    and permissions before any operation is performed on the database.

  Scenario: Validate a regular creator               # features/DeviceRegistryValidation.feature:20
      Create a regular device creator. The validator should OK it.

    Given A regular device creator                   # DeviceRegistrySteps.prepareDefaultDeviceCreator()
    When I create a device from the existing creator # DeviceRegistrySteps.createDeviceFromExistingCreator()
    Then No exception was thrown                     # BasicSteps.noExceptionCaught()
Exception raised as expected: org.eclipse.kapua.KapuaIllegalNullArgumentException, An illegal null value was provided for the argument deviceCreator.

  Scenario: Validate a null creator                                                                                   # features/DeviceRegistryValidation.feature:27
      Create a null device creator. The validator should throw an exception.

    Given A null device creator                                                                                       # DeviceRegistrySteps.createANullDeviceCreator()
    And I expect the exception "KapuaIllegalNullArgumentException" with the text "An illegal null value was provided" # BasicSteps.setExpectedExceptionDetails(String,String)
    When I create a device from the existing creator                                                                  # DeviceRegistrySteps.createDeviceFromExistingCreator()
    Then An exception was thrown                                                                                      # BasicSteps.exceptionCaught()
Exception raised as expected: org.eclipse.kapua.KapuaIllegalNullArgumentException, An illegal null value was provided for the argument deviceCreator.scopeId.

  Scenario: Validate a device creator with a null scope ID                                                            # features/DeviceRegistryValidation.feature:35
      Create a regular device creator. Assign a null scope ID. The validator
      should throw an exception.

    Given A regular device creator                                                                                    # DeviceRegistrySteps.prepareDefaultDeviceCreator()
    And I expect the exception "KapuaIllegalNullArgumentException" with the text "An illegal null value was provided" # BasicSteps.setExpectedExceptionDetails(String,String)
    When I set the creator scope ID to null                                                                           # DeviceRegistrySteps.setDeviceCreatorScopeToNull()
    And I create a device from the existing creator                                                                   # DeviceRegistrySteps.createDeviceFromExistingCreator()
    Then An exception was thrown                                                                                      # BasicSteps.exceptionCaught()
Exception raised as expected: org.eclipse.kapua.KapuaIllegalNullArgumentException, An illegal null value was provided for the argument deviceCreator.clientId.

  Scenario: Validate a device creator with a null client ID                                                           # features/DeviceRegistryValidation.feature:45
      Create a regular device creator. Assign a null client ID. The validator
      should throw an exception.

    Given A regular device creator                                                                                    # DeviceRegistrySteps.prepareDefaultDeviceCreator()
    And I expect the exception "KapuaIllegalNullArgumentException" with the text "An illegal null value was provided" # BasicSteps.setExpectedExceptionDetails(String,String)
    When I set the creator client ID to null                                                                          # DeviceRegistrySteps.setDeviceCreatorClientToNull()
    And I create a device from the existing creator                                                                   # DeviceRegistrySteps.createDeviceFromExistingCreator()
    Then An exception was thrown                                                                                      # BasicSteps.exceptionCaught()
Exception raised as expected: org.eclipse.kapua.KapuaIllegalNullArgumentException, An illegal null value was provided for the argument device.

  Scenario: Validate a null device                                                                                    # features/DeviceRegistryValidation.feature:55
      Create a null device object. The validator should throw an
      exception.

    Given A null device                                                                                               # DeviceRegistrySteps.createANullDevice()
    And I expect the exception "KapuaIllegalNullArgumentException" with the text "An illegal null value was provided" # BasicSteps.setExpectedExceptionDetails(String,String)
    When I update some device parameters                                                                              # DeviceRegistrySteps.updateDeviceParameters()
    Then An exception was thrown                                                                                      # BasicSteps.exceptionCaught()

  Scenario: Validate a regular device search          # features/DeviceRegistryValidation.feature:64
      Validate the parameters for a device search. Both ScopeID and DeviceID
      are not null. The validator should be OK with it.

    Given Scope with ID 15                            # BasicSteps.setSpecificScopeId(Integer)
    And The device ID 4321                            # DeviceRegistrySteps.setDeviceId(String)
    When I search for a device with the remembered ID # DeviceRegistrySteps.findDeviceWithRememberedId()
    Then No exception was thrown                      # BasicSteps.noExceptionCaught()
Exception raised as expected: org.eclipse.kapua.KapuaIllegalNullArgumentException, An illegal null value was provided for the argument entityId.

  Scenario: Validate a device search with a null device ID                                                              # features/DeviceRegistryValidation.feature:73
      Validate the parameters for a device search. ScopeID is valid, but the DeviceID
      is null. The validator should throw an exception.

    Given Scope with ID 15                                                                                              # BasicSteps.setSpecificScopeId(Integer)
    And The device ID null                                                                                              # DeviceRegistrySteps.setDeviceId(String)
    Given I expect the exception "KapuaIllegalNullArgumentException" with the text "An illegal null value was provided" # BasicSteps.setExpectedExceptionDetails(String,String)
    When I search for a device with the remembered ID                                                                   # DeviceRegistrySteps.findDeviceWithRememberedId()
    Then An exception was thrown                                                                                        # BasicSteps.exceptionCaught()
Exception raised as expected: org.eclipse.kapua.KapuaIllegalNullArgumentException, An illegal null value was provided for the argument scopeId.

  Scenario: Validate a device search with a null scope ID                                                               # features/DeviceRegistryValidation.feature:83
      Validate the parameters for a device search. DeviceID is valid, but ScopeID
      is null. The validator should throw an exception.

    Given A null scope                                                                                                  # BasicSteps.setNullScope()
    And The device ID 4321                                                                                              # DeviceRegistrySteps.setDeviceId(String)
    Given I expect the exception "KapuaIllegalNullArgumentException" with the text "An illegal null value was provided" # BasicSteps.setExpectedExceptionDetails(String,String)
    When I search for a device with the remembered ID                                                                   # DeviceRegistrySteps.findDeviceWithRememberedId()
    Then An exception was thrown                                                                                        # BasicSteps.exceptionCaught()
Exception raised as expected: org.eclipse.kapua.KapuaIllegalNullArgumentException, An illegal null value was provided for the argument id.

  Scenario: Validate deleting a device with a null device ID                                                            # features/DeviceRegistryValidation.feature:94
      Validate the parameters for deleting a device. ScopeID is valid, but the DeviceID
      is null. The validator should throw an exception.

    Given Scope with ID 15                                                                                              # BasicSteps.setSpecificScopeId(Integer)
    And The device ID null                                                                                              # DeviceRegistrySteps.setDeviceId(String)
    Given I expect the exception "KapuaIllegalNullArgumentException" with the text "An illegal null value was provided" # BasicSteps.setExpectedExceptionDetails(String,String)
    When I delete the device with the remembered ID                                                                     # DeviceRegistrySteps.deleteDeviceWithRememberedId()
    Then An exception was thrown                                                                                        # BasicSteps.exceptionCaught()
Exception raised as expected: org.eclipse.kapua.KapuaIllegalNullArgumentException, An illegal null value was provided for the argument scopeId.

  Scenario: Validate deleting a device with a null scope ID                                                             # features/DeviceRegistryValidation.feature:104
      Validate the parameters for deleting a device. DeviceID is valid, but ScopeID
      is null. The validator should throw an exception.

    Given A null scope                                                                                                  # BasicSteps.setNullScope()
    And The device ID 4321                                                                                              # DeviceRegistrySteps.setDeviceId(String)
    Given I expect the exception "KapuaIllegalNullArgumentException" with the text "An illegal null value was provided" # BasicSteps.setExpectedExceptionDetails(String,String)
    When I delete the device with the remembered ID                                                                     # DeviceRegistrySteps.deleteDeviceWithRememberedId()
    Then An exception was thrown                                                                                        # BasicSteps.exceptionCaught()

  Scenario: Validate a regular device client search             # features/DeviceRegistryValidation.feature:114
      Validate the parameters for a client id based search. Both the Scope ID and the
      Client ID are valid. The validator should OK it.

    Given Scope with ID 42                                      # BasicSteps.setSpecificScopeId(Integer)
    When I search for a device with the client ID "test_client" # DeviceRegistrySteps.findDeviceWithClientId(String)
    Then No exception was thrown                                # BasicSteps.noExceptionCaught()
Exception raised as expected: org.eclipse.kapua.KapuaIllegalNullArgumentException, An illegal null value was provided for the argument scopeId.

  Scenario: Validate a device client search with null scope                                                             # features/DeviceRegistryValidation.feature:122
      Validate the parameters for a client id based search. The Scope ID is null and the
      Client ID is valid. The validator should throw an exception.

    Given A null scope                                                                                                  # BasicSteps.setNullScope()
    Given I expect the exception "KapuaIllegalNullArgumentException" with the text "An illegal null value was provided" # BasicSteps.setExpectedExceptionDetails(String,String)
    When I search for a device with the client ID "test_client"                                                         # DeviceRegistrySteps.findDeviceWithClientId(String)
    Then An exception was thrown                                                                                        # BasicSteps.exceptionCaught()
Exception raised as expected: org.eclipse.kapua.KapuaIllegalNullArgumentException, An illegal null value was provided for the argument clientId.

  Scenario: Validate a device client based search with a null client ID                                                 # features/DeviceRegistryValidation.feature:131
      Validate the parameters for a client id based search. The Scope ID is valid but the
      Client ID is null. The validator should throw an exception.
      Note: a string with the content 'null' is taken as a null string. Just a cucumber workaround.

    Given Scope with ID 42                                                                                              # BasicSteps.setSpecificScopeId(Integer)
    Given I expect the exception "KapuaIllegalNullArgumentException" with the text "An illegal null value was provided" # BasicSteps.setExpectedExceptionDetails(String,String)
    When I search for a device with the client ID "null"                                                                # DeviceRegistrySteps.findDeviceWithClientId(String)
    Then An exception was thrown                                                                                        # BasicSteps.exceptionCaught()
Exception raised as expected: org.eclipse.kapua.KapuaIllegalNullArgumentException, An illegal null value was provided for the argument clientId.

  Scenario: Validate a device client based search with an empty client ID                                               # features/DeviceRegistryValidation.feature:141
      Validate the parameters for a client id based search. The Scope ID is valid while the
      Client ID is an empty string. The validator should throw an exception.

    Given Scope with ID 42                                                                                              # BasicSteps.setSpecificScopeId(Integer)
    Given I expect the exception "KapuaIllegalNullArgumentException" with the text "An illegal null value was provided" # BasicSteps.setExpectedExceptionDetails(String,String)
    When I search for a device with the client ID ""                                                                    # DeviceRegistrySteps.findDeviceWithClientId(String)
    Then An exception was thrown                                                                                        # BasicSteps.exceptionCaught()

  Scenario: Validate a regular device query # features/DeviceRegistryValidation.feature:150
      Validate the parameters for a regulat device query. Neither the query nor the query
      Scope ID is null. The validator should be OK with it.

    Given A regular query                   # DeviceRegistrySteps.createRegularQuery()
    When I perform the remembered query     # DeviceRegistrySteps.queryForDevices()
    Then No exception was thrown            # BasicSteps.noExceptionCaught()
Exception raised as expected: org.eclipse.kapua.KapuaIllegalNullArgumentException, An illegal null value was provided for the argument query.

  Scenario: Validate a null device query                                                                              # features/DeviceRegistryValidation.feature:158
      Validate a null device query. The validator should throw an exception.

    Given A null query                                                                                                # DeviceRegistrySteps.createNullQuery()
    And I expect the exception "KapuaIllegalNullArgumentException" with the text "An illegal null value was provided" # BasicSteps.setExpectedExceptionDetails(String,String)
    When I perform the remembered query                                                                               # DeviceRegistrySteps.queryForDevices()
    Then An exception was thrown                                                                                      # BasicSteps.exceptionCaught()

  Scenario: Validate a device query with a null Scope ID # features/DeviceRegistryValidation.feature:166
      Validate a faulty device query. The query is not null, but the query Scope ID
      is null. The validator should throw an exception.

    Given A query with a null Scope ID                   # DeviceRegistrySteps.createQueryWithNullScopeId()
    When I perform the remembered query                  # DeviceRegistrySteps.queryForDevices()
    And No exception was thrown                          # BasicSteps.noExceptionCaught()

  Scenario: Validate a regular device count                # features/DeviceRegistryValidation.feature:174
      Validate the parameters for a regulat device count. Neither the query nor the query
      Scope ID is null. The validator should be OK with it.

    Given A regular query                                  # DeviceRegistrySteps.createRegularQuery()
    When I count the devices based on the remembered query # DeviceRegistrySteps.countForDevices()
    Then No exception was thrown                           # BasicSteps.noExceptionCaught()
Exception raised as expected: org.eclipse.kapua.KapuaIllegalNullArgumentException, An illegal null value was provided for the argument query.

  Scenario: Validate a null device count                                                                              # features/DeviceRegistryValidation.feature:182
      Validate a device count with a null query. The validator should throw an exception.

    Given A null query                                                                                                # DeviceRegistrySteps.createNullQuery()
    And I expect the exception "KapuaIllegalNullArgumentException" with the text "An illegal null value was provided" # BasicSteps.setExpectedExceptionDetails(String,String)
    When I count the devices based on the remembered query                                                            # DeviceRegistrySteps.countForDevices()
    Then An exception was thrown                                                                                      # BasicSteps.exceptionCaught()

70 Scenarios (70 passed)
294 Steps (294 passed)
0m58.303s

[INFO] Tests run: 364, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 60.753 s - in org.eclipse.kapua.service.device.registry.test.RunDeviceRegistryUnitTest
[INFO] 
[INFO] Results:
[INFO] 
[INFO] Tests run: 364, Failures: 0, Errors: 0, Skipped: 0
[INFO] 
[INFO] 
[INFO] --- jacoco-maven-plugin:0.7.9:report (default-report) @ kapua-device-registry-test ---
[INFO] Loading execution data file /jobs/genie.kapua/develop/workspace/service/device/registry/test/target/jacoco.exec
[INFO] Analyzed bundle 'kapua-device-registry-test' with 0 classes
[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ kapua-device-registry-test ---
[INFO] 
[INFO] --- maven-source-plugin:2.4:jar-no-fork (attach-sources) @ kapua-device-registry-test ---
[INFO] No sources in project. Archive not created.
[INFO] 
[INFO] --- jacoco-extras:0.1.1:xml (default) @ kapua-device-registry-test ---
[INFO] Loading execution data file /jobs/genie.kapua/develop/workspace/service/device/registry/test/target/jacoco.exec
[INFO] 
[INFO] --------< org.eclipse.kapua:kapua-device-management-asset-job >---------
[INFO] Building kapua-device-management-asset-job 1.4.0-SNAPSHOT      [113/184]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-checkstyle-plugin:2.17:check (checkstyle-check) @ kapua-device-management-asset-job ---
[INFO] 
[INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (default-prepare-agent) @ kapua-device-management-asset-job ---
[INFO] argLine set to -javaagent:/home/hudson/genie.kapua/.jenkins/jobs/develop/workspace/.repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/jobs/genie.kapua/develop/workspace/service/device/management/asset/job/target/jacoco.exec
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ kapua-device-management-asset-job ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 10 resources
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:copy-resources (process-about.html) @ kapua-device-management-asset-job ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) @ kapua-device-management-asset-job ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ kapua-device-management-asset-job ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /jobs/genie.kapua/develop/workspace/service/device/management/asset/job/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.6.1:testCompile (default-testCompile) @ kapua-device-management-asset-job ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.20:test (default-test) @ kapua-device-management-asset-job ---
[INFO] No tests to run.
[INFO] 
[INFO] --- jacoco-maven-plugin:0.7.9:report (default-report) @ kapua-device-management-asset-job ---
[INFO] Skipping JaCoCo execution due to missing execution data file.
[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ kapua-device-management-asset-job ---
[INFO] 
[INFO] --- maven-source-plugin:2.4:jar-no-fork (attach-sources) @ kapua-device-management-asset-job ---
[INFO] Building jar: /jobs/genie.kapua/develop/workspace/service/device/management/asset/job/target/kapua-device-management-asset-job-1.4.0-SNAPSHOT-sources.jar
[INFO] 
[INFO] --- jacoco-extras:0.1.1:xml (default) @ kapua-device-management-asset-job ---
[INFO] 
[INFO] --------< org.eclipse.kapua:kapua-device-management-bundle-job >--------
[INFO] Building kapua-device-management-bundle-job 1.4.0-SNAPSHOT     [114/184]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-checkstyle-plugin:2.17:check (checkstyle-check) @ kapua-device-management-bundle-job ---
[INFO] 
[INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (default-prepare-agent) @ kapua-device-management-bundle-job ---
[INFO] argLine set to -javaagent:/home/hudson/genie.kapua/.jenkins/jobs/develop/workspace/.repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/jobs/genie.kapua/develop/workspace/service/device/management/bundle/job/target/jacoco.exec
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ kapua-device-management-bundle-job ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 8 resources
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:copy-resources (process-about.html) @ kapua-device-management-bundle-job ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) @ kapua-device-management-bundle-job ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ kapua-device-management-bundle-job ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /jobs/genie.kapua/develop/workspace/service/device/management/bundle/job/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.6.1:testCompile (default-testCompile) @ kapua-device-management-bundle-job ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.20:test (default-test) @ kapua-device-management-bundle-job ---
[INFO] No tests to run.
[INFO] 
[INFO] --- jacoco-maven-plugin:0.7.9:report (default-report) @ kapua-device-management-bundle-job ---
[INFO] Skipping JaCoCo execution due to missing execution data file.
[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ kapua-device-management-bundle-job ---
[INFO] 
[INFO] --- maven-source-plugin:2.4:jar-no-fork (attach-sources) @ kapua-device-management-bundle-job ---
[INFO] Building jar: /jobs/genie.kapua/develop/workspace/service/device/management/bundle/job/target/kapua-device-management-bundle-job-1.4.0-SNAPSHOT-sources.jar
[INFO] 
[INFO] --- jacoco-extras:0.1.1:xml (default) @ kapua-device-management-bundle-job ---
[INFO] 
[INFO] -------< org.eclipse.kapua:kapua-device-management-command-job >--------
[INFO] Building kapua-device-management-command-job 1.4.0-SNAPSHOT    [115/184]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-checkstyle-plugin:2.17:check (checkstyle-check) @ kapua-device-management-command-job ---
[INFO] 
[INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (default-prepare-agent) @ kapua-device-management-command-job ---
[INFO] argLine set to -javaagent:/home/hudson/genie.kapua/.jenkins/jobs/develop/workspace/.repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/jobs/genie.kapua/develop/workspace/service/device/management/command/job/target/jacoco.exec
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ kapua-device-management-command-job ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 10 resources
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:copy-resources (process-about.html) @ kapua-device-management-command-job ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) @ kapua-device-management-command-job ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ kapua-device-management-command-job ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /jobs/genie.kapua/develop/workspace/service/device/management/command/job/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.6.1:testCompile (default-testCompile) @ kapua-device-management-command-job ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.20:test (default-test) @ kapua-device-management-command-job ---
[INFO] No tests to run.
[INFO] 
[INFO] --- jacoco-maven-plugin:0.7.9:report (default-report) @ kapua-device-management-command-job ---
[INFO] Skipping JaCoCo execution due to missing execution data file.
[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ kapua-device-management-command-job ---
[INFO] 
[INFO] --- maven-source-plugin:2.4:jar-no-fork (attach-sources) @ kapua-device-management-command-job ---
[INFO] Building jar: /jobs/genie.kapua/develop/workspace/service/device/management/command/job/target/kapua-device-management-command-job-1.4.0-SNAPSHOT-sources.jar
[INFO] 
[INFO] --- jacoco-extras:0.1.1:xml (default) @ kapua-device-management-command-job ---
[INFO] 
[INFO] ----< org.eclipse.kapua:kapua-device-management-configuration-job >-----
[INFO] Building kapua-device-management-configuration-job 1.4.0-SNAPSHOT [116/184]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-checkstyle-plugin:2.17:check (checkstyle-check) @ kapua-device-management-configuration-job ---
[INFO] 
[INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (default-prepare-agent) @ kapua-device-management-configuration-job ---
[INFO] argLine set to -javaagent:/home/hudson/genie.kapua/.jenkins/jobs/develop/workspace/.repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/jobs/genie.kapua/develop/workspace/service/device/management/configuration/job/target/jacoco.exec
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ kapua-device-management-configuration-job ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 10 resources
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:copy-resources (process-about.html) @ kapua-device-management-configuration-job ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) @ kapua-device-management-configuration-job ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ kapua-device-management-configuration-job ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /jobs/genie.kapua/develop/workspace/service/device/management/configuration/job/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.6.1:testCompile (default-testCompile) @ kapua-device-management-configuration-job ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.20:test (default-test) @ kapua-device-management-configuration-job ---
[INFO] No tests to run.
[INFO] 
[INFO] --- jacoco-maven-plugin:0.7.9:report (default-report) @ kapua-device-management-configuration-job ---
[INFO] Skipping JaCoCo execution due to missing execution data file.
[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ kapua-device-management-configuration-job ---
[INFO] 
[INFO] --- maven-source-plugin:2.4:jar-no-fork (attach-sources) @ kapua-device-management-configuration-job ---
[INFO] Building jar: /jobs/genie.kapua/develop/workspace/service/device/management/configuration/job/target/kapua-device-management-configuration-job-1.4.0-SNAPSHOT-sources.jar
[INFO] 
[INFO] --- jacoco-extras:0.1.1:xml (default) @ kapua-device-management-configuration-job ---
[INFO] 
[INFO] -------< org.eclipse.kapua:kapua-device-management-packages-job >-------
[INFO] Building kapua-device-management-packages-job 1.4.0-SNAPSHOT   [117/184]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-checkstyle-plugin:2.17:check (checkstyle-check) @ kapua-device-management-packages-job ---
[INFO] 
[INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (default-prepare-agent) @ kapua-device-management-packages-job ---
[INFO] argLine set to -javaagent:/home/hudson/genie.kapua/.jenkins/jobs/develop/workspace/.repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/jobs/genie.kapua/develop/workspace/service/device/management/packages/job/target/jacoco.exec
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ kapua-device-management-packages-job ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 11 resources
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:copy-resources (process-about.html) @ kapua-device-management-packages-job ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) @ kapua-device-management-packages-job ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ kapua-device-management-packages-job ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /jobs/genie.kapua/develop/workspace/service/device/management/packages/job/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.6.1:testCompile (default-testCompile) @ kapua-device-management-packages-job ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.20:test (default-test) @ kapua-device-management-packages-job ---
[INFO] No tests to run.
[INFO] 
[INFO] --- jacoco-maven-plugin:0.7.9:report (default-report) @ kapua-device-management-packages-job ---
[INFO] Skipping JaCoCo execution due to missing execution data file.
[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ kapua-device-management-packages-job ---
[INFO] 
[INFO] --- maven-source-plugin:2.4:jar-no-fork (attach-sources) @ kapua-device-management-packages-job ---
[INFO] Building jar: /jobs/genie.kapua/develop/workspace/service/device/management/packages/job/target/kapua-device-management-packages-job-1.4.0-SNAPSHOT-sources.jar
[INFO] 
[INFO] --- jacoco-extras:0.1.1:xml (default) @ kapua-device-management-packages-job ---
[INFO] 
[INFO] ----< org.eclipse.kapua:kapua-device-management-registry-internal >-----
[INFO] Building kapua-device-management-registry-internal 1.4.0-SNAPSHOT [118/184]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-checkstyle-plugin:2.17:check (checkstyle-check) @ kapua-device-management-registry-internal ---
[INFO] 
[INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (default-prepare-agent) @ kapua-device-management-registry-internal ---
[INFO] argLine set to -javaagent:/home/hudson/genie.kapua/.jenkins/jobs/develop/workspace/.repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/jobs/genie.kapua/develop/workspace/service/device/management/registry/internal/target/jacoco.exec
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ kapua-device-management-registry-internal ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 12 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) @ kapua-device-management-registry-internal ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ kapua-device-management-registry-internal ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /jobs/genie.kapua/develop/workspace/service/device/management/registry/internal/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.6.1:testCompile (default-testCompile) @ kapua-device-management-registry-internal ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.20:test (default-test) @ kapua-device-management-registry-internal ---
[INFO] No tests to run.
[INFO] 
[INFO] --- jacoco-maven-plugin:0.7.9:report (default-report) @ kapua-device-management-registry-internal ---
[INFO] Skipping JaCoCo execution due to missing execution data file.
[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ kapua-device-management-registry-internal ---
[INFO] 
[INFO] --- maven-source-plugin:2.4:jar-no-fork (attach-sources) @ kapua-device-management-registry-internal ---
[INFO] Building jar: /jobs/genie.kapua/develop/workspace/service/device/management/registry/internal/target/kapua-device-management-registry-internal-1.4.0-SNAPSHOT-sources.jar
[INFO] 
[INFO] --- jacoco-extras:0.1.1:xml (default) @ kapua-device-management-registry-internal ---
[INFO] 
[INFO] -------< org.eclipse.kapua:kapua-device-management-job-internal >-------
[INFO] Building kapua-device-management-job-internal 1.4.0-SNAPSHOT   [119/184]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-checkstyle-plugin:2.17:check (checkstyle-check) @ kapua-device-management-job-internal ---
[INFO] 
[INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (default-prepare-agent) @ kapua-device-management-job-internal ---
[INFO] argLine set to -javaagent:/home/hudson/genie.kapua/.jenkins/jobs/develop/workspace/.repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/jobs/genie.kapua/develop/workspace/service/device/management/job/internal/target/jacoco.exec
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ kapua-device-management-job-internal ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 6 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) @ kapua-device-management-job-internal ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ kapua-device-management-job-internal ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /jobs/genie.kapua/develop/workspace/service/device/management/job/internal/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.6.1:testCompile (default-testCompile) @ kapua-device-management-job-internal ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.20:test (default-test) @ kapua-device-management-job-internal ---
[INFO] No tests to run.
[INFO] 
[INFO] --- jacoco-maven-plugin:0.7.9:report (default-report) @ kapua-device-management-job-internal ---
[INFO] Skipping JaCoCo execution due to missing execution data file.
[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ kapua-device-management-job-internal ---
[INFO] 
[INFO] --- maven-source-plugin:2.4:jar-no-fork (attach-sources) @ kapua-device-management-job-internal ---
[INFO] Building jar: /jobs/genie.kapua/develop/workspace/service/device/management/job/internal/target/kapua-device-management-job-internal-1.4.0-SNAPSHOT-sources.jar
[INFO] 
[INFO] --- jacoco-extras:0.1.1:xml (default) @ kapua-device-management-job-internal ---
[INFO] 
[INFO] ---------< org.eclipse.kapua:kapua-device-management-all-api >----------
[INFO] Building kapua-device-management-all-api 1.4.0-SNAPSHOT        [120/184]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-checkstyle-plugin:2.17:check (checkstyle-check) @ kapua-device-management-all-api ---
[INFO] 
[INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (default-prepare-agent) @ kapua-device-management-all-api ---
[INFO] argLine set to -javaagent:/home/hudson/genie.kapua/.jenkins/jobs/develop/workspace/.repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/jobs/genie.kapua/develop/workspace/service/device/management/all/api/target/jacoco.exec
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ kapua-device-management-all-api ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /jobs/genie.kapua/develop/workspace/service/device/management/all/api/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) @ kapua-device-management-all-api ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ kapua-device-management-all-api ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /jobs/genie.kapua/develop/workspace/service/device/management/all/api/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.6.1:testCompile (default-testCompile) @ kapua-device-management-all-api ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.20:test (default-test) @ kapua-device-management-all-api ---
[INFO] No tests to run.
[INFO] 
[INFO] --- jacoco-maven-plugin:0.7.9:report (default-report) @ kapua-device-management-all-api ---
[INFO] Skipping JaCoCo execution due to missing execution data file.
[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ kapua-device-management-all-api ---
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] 
[INFO] --- maven-source-plugin:2.4:jar-no-fork (attach-sources) @ kapua-device-management-all-api ---
[INFO] No sources in project. Archive not created.
[INFO] 
[INFO] --- jacoco-extras:0.1.1:xml (default) @ kapua-device-management-all-api ---
[INFO] 
[INFO] ---------< org.eclipse.kapua:kapua-device-management-all-job >----------
[INFO] Building kapua-device-management-all-job 1.4.0-SNAPSHOT        [121/184]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-checkstyle-plugin:2.17:check (checkstyle-check) @ kapua-device-management-all-job ---
[INFO] 
[INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (default-prepare-agent) @ kapua-device-management-all-job ---
[INFO] argLine set to -javaagent:/home/hudson/genie.kapua/.jenkins/jobs/develop/workspace/.repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/jobs/genie.kapua/develop/workspace/service/device/management/all/job/target/jacoco.exec
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ kapua-device-management-all-job ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /jobs/genie.kapua/develop/workspace/service/device/management/all/job/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) @ kapua-device-management-all-job ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ kapua-device-management-all-job ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /jobs/genie.kapua/develop/workspace/service/device/management/all/job/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.6.1:testCompile (default-testCompile) @ kapua-device-management-all-job ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.20:test (default-test) @ kapua-device-management-all-job ---
[INFO] No tests to run.
[INFO] 
[INFO] --- jacoco-maven-plugin:0.7.9:report (default-report) @ kapua-device-management-all-job ---
[INFO] Skipping JaCoCo execution due to missing execution data file.
[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ kapua-device-management-all-job ---
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] 
[INFO] --- maven-source-plugin:2.4:jar-no-fork (attach-sources) @ kapua-device-management-all-job ---
[INFO] No sources in project. Archive not created.
[INFO] 
[INFO] --- jacoco-extras:0.1.1:xml (default) @ kapua-device-management-all-job ---
[INFO] 
[INFO] ------------------< org.eclipse.kapua:kapua-endpoint >------------------
[INFO] Building kapua-endpoint 1.4.0-SNAPSHOT                         [122/184]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO] 
[INFO] --- maven-checkstyle-plugin:2.17:check (checkstyle-check) @ kapua-endpoint ---
[INFO] 
[INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (default-prepare-agent) @ kapua-endpoint ---
[INFO] argLine set to -javaagent:/home/hudson/genie.kapua/.jenkins/jobs/develop/workspace/.repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/jobs/genie.kapua/develop/workspace/service/endpoint/target/jacoco.exec
[INFO] 
[INFO] --- jacoco-maven-plugin:0.7.9:report (default-report) @ kapua-endpoint ---
[INFO] Skipping JaCoCo execution due to missing execution data file.
[INFO] 
[INFO] --- maven-source-plugin:2.4:jar-no-fork (attach-sources) @ kapua-endpoint ---
[INFO] 
[INFO] --- jacoco-extras:0.1.1:xml (default) @ kapua-endpoint ---
[INFO] 
[INFO] ----------------< org.eclipse.kapua:kapua-endpoint-api >----------------
[INFO] Building kapua-endpoint-api 1.4.0-SNAPSHOT                     [123/184]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-checkstyle-plugin:2.17:check (checkstyle-check) @ kapua-endpoint-api ---
[INFO] 
[INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (default-prepare-agent) @ kapua-endpoint-api ---
[INFO] argLine set to -javaagent:/home/hudson/genie.kapua/.jenkins/jobs/develop/workspace/.repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/jobs/genie.kapua/develop/workspace/service/endpoint/api/target/jacoco.exec
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ kapua-endpoint-api ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /jobs/genie.kapua/develop/workspace/service/endpoint/api/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) @ kapua-endpoint-api ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ kapua-endpoint-api ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /jobs/genie.kapua/develop/workspace/service/endpoint/api/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.6.1:testCompile (default-testCompile) @ kapua-endpoint-api ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.20:test (default-test) @ kapua-endpoint-api ---
[INFO] No tests to run.
[INFO] 
[INFO] --- jacoco-maven-plugin:0.7.9:report (default-report) @ kapua-endpoint-api ---
[INFO] Skipping JaCoCo execution due to missing execution data file.
[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ kapua-endpoint-api ---
[INFO] 
[INFO] --- maven-source-plugin:2.4:jar-no-fork (attach-sources) @ kapua-endpoint-api ---
[INFO] Building jar: /jobs/genie.kapua/develop/workspace/service/endpoint/api/target/kapua-endpoint-api-1.4.0-SNAPSHOT-sources.jar
[INFO] 
[INFO] --- jacoco-extras:0.1.1:xml (default) @ kapua-endpoint-api ---
[INFO] 
[INFO] -------------< org.eclipse.kapua:kapua-endpoint-internal >--------------
[INFO] Building kapua-endpoint-internal 1.4.0-SNAPSHOT                [124/184]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-checkstyle-plugin:2.17:check (checkstyle-check) @ kapua-endpoint-internal ---
[INFO] 
[INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (default-prepare-agent) @ kapua-endpoint-internal ---
[INFO] argLine set to -javaagent:/home/hudson/genie.kapua/.jenkins/jobs/develop/workspace/.repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/jobs/genie.kapua/develop/workspace/service/endpoint/internal/target/jacoco.exec
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ kapua-endpoint-internal ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 12 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) @ kapua-endpoint-internal ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ kapua-endpoint-internal ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /jobs/genie.kapua/develop/workspace/service/endpoint/internal/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.6.1:testCompile (default-testCompile) @ kapua-endpoint-internal ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.20:test (default-test) @ kapua-endpoint-internal ---
[INFO] No tests to run.
[INFO] 
[INFO] --- jacoco-maven-plugin:0.7.9:report (default-report) @ kapua-endpoint-internal ---
[INFO] Skipping JaCoCo execution due to missing execution data file.
[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ kapua-endpoint-internal ---
[INFO] 
[INFO] --- maven-source-plugin:2.4:jar-no-fork (attach-sources) @ kapua-endpoint-internal ---
[INFO] Building jar: /jobs/genie.kapua/develop/workspace/service/endpoint/internal/target/kapua-endpoint-internal-1.4.0-SNAPSHOT-sources.jar
[INFO] 
[INFO] --- jacoco-extras:0.1.1:xml (default) @ kapua-endpoint-internal ---
[INFO] 
[INFO] ------------< org.eclipse.kapua:kapua-endpoint-test-steps >-------------
[INFO] Building kapua-endpoint-test-steps 1.4.0-SNAPSHOT              [125/184]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-checkstyle-plugin:2.17:check (checkstyle-check) @ kapua-endpoint-test-steps ---
[INFO] 
[INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (default-prepare-agent) @ kapua-endpoint-test-steps ---
[INFO] argLine set to -javaagent:/home/hudson/genie.kapua/.jenkins/jobs/develop/workspace/.repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/jobs/genie.kapua/develop/workspace/service/endpoint/test-steps/target/jacoco.exec
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ kapua-endpoint-test-steps ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /jobs/genie.kapua/develop/workspace/service/endpoint/test-steps/src/main/resources
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:copy-resources (process-about.html) @ kapua-endpoint-test-steps ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) @ kapua-endpoint-test-steps ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ kapua-endpoint-test-steps ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /jobs/genie.kapua/develop/workspace/service/endpoint/test-steps/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.6.1:testCompile (default-testCompile) @ kapua-endpoint-test-steps ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.20:test (default-test) @ kapua-endpoint-test-steps ---
[INFO] No tests to run.
[INFO] 
[INFO] --- jacoco-maven-plugin:0.7.9:report (default-report) @ kapua-endpoint-test-steps ---
[INFO] Skipping JaCoCo execution due to missing execution data file.
[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ kapua-endpoint-test-steps ---
[INFO] 
[INFO] --- maven-source-plugin:2.4:jar-no-fork (attach-sources) @ kapua-endpoint-test-steps ---
[INFO] Building jar: /jobs/genie.kapua/develop/workspace/service/endpoint/test-steps/target/kapua-endpoint-test-steps-1.4.0-SNAPSHOT-sources.jar
[INFO] 
[INFO] --- jacoco-extras:0.1.1:xml (default) @ kapua-endpoint-test-steps ---
[INFO] 
[INFO] ----------------< org.eclipse.kapua:kapua-job-internal >----------------
[INFO] Building kapua-job-internal 1.4.0-SNAPSHOT                     [126/184]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-checkstyle-plugin:2.17:check (checkstyle-check) @ kapua-job-internal ---
[INFO] 
[INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (default-prepare-agent) @ kapua-job-internal ---
[INFO] argLine set to -javaagent:/home/hudson/genie.kapua/.jenkins/jobs/develop/workspace/.repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/jobs/genie.kapua/develop/workspace/service/job/internal/target/jacoco.exec
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ kapua-job-internal ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 29 resources
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:copy-resources (process-about.html) @ kapua-job-internal ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) @ kapua-job-internal ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ kapua-job-internal ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /jobs/genie.kapua/develop/workspace/service/job/internal/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.6.1:testCompile (default-testCompile) @ kapua-job-internal ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.20:test (default-test) @ kapua-job-internal ---
[INFO] No tests to run.
[INFO] 
[INFO] --- jacoco-maven-plugin:0.7.9:report (default-report) @ kapua-job-internal ---
[INFO] Skipping JaCoCo execution due to missing execution data file.
[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ kapua-job-internal ---
[INFO] 
[INFO] --- maven-source-plugin:2.4:jar-no-fork (attach-sources) @ kapua-job-internal ---
[INFO] Building jar: /jobs/genie.kapua/develop/workspace/service/job/internal/target/kapua-job-internal-1.4.0-SNAPSHOT-sources.jar
[INFO] 
[INFO] --- jacoco-extras:0.1.1:xml (default) @ kapua-job-internal ---
[INFO] 
[INFO] ---------------< org.eclipse.kapua:kapua-job-test-steps >---------------
[INFO] Building kapua-job-test-steps 1.4.0-SNAPSHOT                   [127/184]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-checkstyle-plugin:2.17:check (checkstyle-check) @ kapua-job-test-steps ---
[INFO] 
[INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (default-prepare-agent) @ kapua-job-test-steps ---
[INFO] argLine set to -javaagent:/home/hudson/genie.kapua/.jenkins/jobs/develop/workspace/.repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/jobs/genie.kapua/develop/workspace/service/job/test-steps/target/jacoco.exec
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ kapua-job-test-steps ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /jobs/genie.kapua/develop/workspace/service/job/test-steps/src/main/resources
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:copy-resources (process-about.html) @ kapua-job-test-steps ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) @ kapua-job-test-steps ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ kapua-job-test-steps ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /jobs/genie.kapua/develop/workspace/service/job/test-steps/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.6.1:testCompile (default-testCompile) @ kapua-job-test-steps ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.20:test (default-test) @ kapua-job-test-steps ---
[INFO] No tests to run.
[INFO] 
[INFO] --- jacoco-maven-plugin:0.7.9:report (default-report) @ kapua-job-test-steps ---
[INFO] Skipping JaCoCo execution due to missing execution data file.
[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ kapua-job-test-steps ---
[INFO] 
[INFO] --- maven-source-plugin:2.4:jar-no-fork (attach-sources) @ kapua-job-test-steps ---
[INFO] Building jar: /jobs/genie.kapua/develop/workspace/service/job/test-steps/target/kapua-job-test-steps-1.4.0-SNAPSHOT-sources.jar
[INFO] 
[INFO] --- jacoco-extras:0.1.1:xml (default) @ kapua-job-test-steps ---
[INFO] 
[INFO] --------------< org.eclipse.kapua:kapua-scheduler-quartz >--------------
[INFO] Building kapua-scheduler-quartz 1.4.0-SNAPSHOT                 [128/184]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-checkstyle-plugin:2.17:check (checkstyle-check) @ kapua-scheduler-quartz ---
[INFO] 
[INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (default-prepare-agent) @ kapua-scheduler-quartz ---
[INFO] argLine set to -javaagent:/home/hudson/genie.kapua/.jenkins/jobs/develop/workspace/.repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/jobs/genie.kapua/develop/workspace/service/scheduler/quartz/target/jacoco.exec
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ kapua-scheduler-quartz ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 29 resources
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:copy-resources (process-about.html) @ kapua-scheduler-quartz ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) @ kapua-scheduler-quartz ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ kapua-scheduler-quartz ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /jobs/genie.kapua/develop/workspace/service/scheduler/quartz/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.6.1:testCompile (default-testCompile) @ kapua-scheduler-quartz ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.20:test (default-test) @ kapua-scheduler-quartz ---
[INFO] No tests to run.
[INFO] 
[INFO] --- jacoco-maven-plugin:0.7.9:report (default-report) @ kapua-scheduler-quartz ---
[INFO] Skipping JaCoCo execution due to missing execution data file.
[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ kapua-scheduler-quartz ---
[INFO] 
[INFO] --- maven-source-plugin:2.4:jar-no-fork (attach-sources) @ kapua-scheduler-quartz ---
[INFO] Building jar: /jobs/genie.kapua/develop/workspace/service/scheduler/quartz/target/kapua-scheduler-quartz-1.4.0-SNAPSHOT-sources.jar
[INFO] 
[INFO] --- jacoco-extras:0.1.1:xml (default) @ kapua-scheduler-quartz ---
[INFO] 
[INFO] ------------------< org.eclipse.kapua:kapua-job-test >------------------
[INFO] Building kapua-job-test 1.4.0-SNAPSHOT                         [129/184]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-checkstyle-plugin:2.17:check (checkstyle-check) @ kapua-job-test ---
[INFO] 
[INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (default-prepare-agent) @ kapua-job-test ---
[INFO] argLine set to -javaagent:/home/hudson/genie.kapua/.jenkins/jobs/develop/workspace/.repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/jobs/genie.kapua/develop/workspace/service/job/test/target/jacoco.exec
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ kapua-job-test ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /jobs/genie.kapua/develop/workspace/service/job/test/src/main/resources
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:copy-resources (process-about.html) @ kapua-job-test ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) @ kapua-job-test ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ kapua-job-test ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 6 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.6.1:testCompile (default-testCompile) @ kapua-job-test ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-surefire-plugin:2.20:test (default-test) @ kapua-job-test ---
[INFO] 
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running org.eclipse.kapua.service.job.test.RunJobUnitTest
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[INFO] 
[INFO] Results:
[INFO] 
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO] 
[ERROR] There are test failures.

Please refer to /jobs/genie.kapua/develop/workspace/service/job/test/target/surefire-reports for the individual test results.
Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream.
The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
Command was /bin/sh -c cd /jobs/genie.kapua/develop/workspace/service/job/test && /opt/public/common/java/oracle/jdk1.8.0_202_x64/jre/bin/java -javaagent:/home/hudson/genie.kapua/.jenkins/jobs/develop/workspace/.repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/jobs/genie.kapua/develop/workspace/service/job/test/target/jacoco.exec -Xmx1024m -jar /jobs/genie.kapua/develop/workspace/service/job/test/target/surefire/surefirebooter4253961965771621683.jar /jobs/genie.kapua/develop/workspace/service/job/test/target/surefire 2020-12-17T04-48-51_701-jvmRun1 surefire1061426383920734224tmp surefire_154743098576044276366tmp
Error occurred in starting fork, check output in log
Process Exit Code: 143
org.apache.maven.surefire.booter.SurefireBooterForkException: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
Command was /bin/sh -c cd /jobs/genie.kapua/develop/workspace/service/job/test && /opt/public/common/java/oracle/jdk1.8.0_202_x64/jre/bin/java -javaagent:/home/hudson/genie.kapua/.jenkins/jobs/develop/workspace/.repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/jobs/genie.kapua/develop/workspace/service/job/test/target/jacoco.exec -Xmx1024m -jar /jobs/genie.kapua/develop/workspace/service/job/test/target/surefire/surefirebooter4253961965771621683.jar /jobs/genie.kapua/develop/workspace/service/job/test/target/surefire 2020-12-17T04-48-51_701-jvmRun1 surefire1061426383920734224tmp surefire_154743098576044276366tmp
Error occurred in starting fork, check output in log
Process Exit Code: 143
	at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:679)
	at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:533)
	at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:279)
	at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:243)
	at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:1077)
	at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:907)
	at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:785)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:957)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:289)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:193)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225)
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347)

[INFO] 
[INFO] --- jacoco-maven-plugin:0.7.9:report (default-report) @ kapua-job-test ---
[INFO] Loading execution data file /jobs/genie.kapua/develop/workspace/service/job/test/target/jacoco.exec
[INFO] Analyzed bundle 'kapua-job-test' with 0 classes
[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ kapua-job-test ---
[INFO] 
[INFO] --- maven-source-plugin:2.4:jar-no-fork (attach-sources) @ kapua-job-test ---
[INFO] No sources in project. Archive not created.
[INFO] 
[INFO] --- jacoco-extras:0.1.1:xml (default) @ kapua-job-test ---
[INFO] Loading execution data file /jobs/genie.kapua/develop/workspace/service/job/test/target/jacoco.exec
[INFO] 
[INFO] ------------< org.eclipse.kapua:kapua-scheduler-test-steps >------------
[INFO] Building kapua-scheduler-test-steps 1.4.0-SNAPSHOT             [130/184]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-checkstyle-plugin:2.17:check (checkstyle-check) @ kapua-scheduler-test-steps ---
[INFO] 
[INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (default-prepare-agent) @ kapua-scheduler-test-steps ---
[INFO] argLine set to -javaagent:/home/hudson/genie.kapua/.jenkins/jobs/develop/workspace/.repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/jobs/genie.kapua/develop/workspace/service/scheduler/test-steps/target/jacoco.exec
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ kapua-scheduler-test-steps ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /jobs/genie.kapua/develop/workspace/service/scheduler/test-steps/src/main/resources
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:copy-resources (process-about.html) @ kapua-scheduler-test-steps ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) @ kapua-scheduler-test-steps ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ kapua-scheduler-test-steps ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /jobs/genie.kapua/develop/workspace/service/scheduler/test-steps/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.6.1:testCompile (default-testCompile) @ kapua-scheduler-test-steps ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.20:test (default-test) @ kapua-scheduler-test-steps ---
[INFO] No tests to run.
[INFO] 
[INFO] --- jacoco-maven-plugin:0.7.9:report (default-report) @ kapua-scheduler-test-steps ---
[INFO] Skipping JaCoCo execution due to missing execution data file.
[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ kapua-scheduler-test-steps ---
[INFO] 
[INFO] --- maven-source-plugin:2.4:jar-no-fork (attach-sources) @ kapua-scheduler-test-steps ---
[INFO] Building jar: /jobs/genie.kapua/develop/workspace/service/scheduler/test-steps/target/kapua-scheduler-test-steps-1.4.0-SNAPSHOT-sources.jar
[INFO] 
[INFO] --- jacoco-extras:0.1.1:xml (default) @ kapua-scheduler-test-steps ---
[INFO] 
[INFO] ---------------< org.eclipse.kapua:kapua-scheduler-test >---------------
[INFO] Building kapua-scheduler-test 1.4.0-SNAPSHOT                   [131/184]
[INFO] --------------------------------[ jar ]---------------------------------
WARN: Unable to locate 'report-task.txt' in the workspace. Did the SonarScanner succeed?
Build was aborted
Aborted by alberto.codutti@eurotech.com
[htmlpublisher] Archiving HTML reports...
[htmlpublisher] Archiving at PROJECT level /home/hudson/genie.kapua/.jenkins/jobs/develop/workspace/dev-tools/cucumber-reports/target/kapua-cucumber-report to /home/hudson/genie.kapua/.jenkins/jobs/develop/htmlreports/Cucumber_20reports
Recording test results
[Checks API] No suitable checks publisher found.
Started calculate disk usage of build
Finished Calculation of disk usage of build in 0 seconds
Started calculate disk usage of workspace
Finished Calculation of disk usage of workspace in 0 seconds
Finished: ABORTED