Skip to content

Commit

Permalink
Added Device Management Keystore Step Definition Tests
Browse files Browse the repository at this point in the history
Signed-off-by: Alberto Codutti <alberto.codutti@eurotech.com>
  • Loading branch information
Coduz committed Jun 15, 2021
1 parent 0de5b6c commit 3c41e4d
Show file tree
Hide file tree
Showing 6 changed files with 263 additions and 26 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/github-actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,27 @@ jobs:
max_attempts: 3
command: ./ci-output.sh mvn -B ${BUILD_OPTS} ${CONFIG_OVERRIDES} -Dgroups='!org.eclipse.kapua.qa.markers.junit.JUnitTests' -Dcucumber.options="--tags @account" verify
- run: bash <(curl -s https://codecov.io/bash)
test-jobEngineStepDefinitions:
needs: build-kapua
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: '8'
- uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- uses: nick-invision/retry@v2.4.0
with:
timeout_minutes: 30
retry_on: error
max_attempts: 3
command: ./ci-output.sh mvn -B ${BUILD_OPTS} ${CONFIG_OVERRIDES} -Dgroups='!org.eclipse.kapua.qa.markers.junit.JUnitTests' -Dcucumber.options="--tags @jobEngineStepDefinitions" verify
- run: bash <(curl -s https://codecov.io/bash)
test-jobEngineStartOfflineDevice:
needs: build-kapua
runs-on: ubuntu-latest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@
"classpath:features/jobEngine/JobEngineServiceStartOnlineDeviceI9n.feature",
"classpath:features/jobEngine/JobEngineServiceRestartOnlineDeviceI9n.feature",
"classpath:features/jobEngine/JobEngineServiceRestartOnlineDeviceSecondPartI9n.feature",
"classpath:features/jobEngine/JobEngineServiceStopOnlineDeviceI9n.feature"
"classpath:features/jobEngine/JobEngineServiceStopOnlineDeviceI9n.feature",
},
glue = { "org.eclipse.kapua.service.job.steps",
glue = {"org.eclipse.kapua.service.job.steps",
"org.eclipse.kapua.service.user.steps",
"org.eclipse.kapua.qa.common",
"org.eclipse.kapua.service.account.steps",
"org.eclipse.kapua.service.device.registry.steps",
},
plugin = { "pretty",
plugin = {"pretty",
"html:target/cucumber/JobEngineOnlineDeviceI9n",
"json:target/JobEngineOnlineDeviceI9n_cucumber.json" },
"json:target/JobEngineOnlineDeviceI9n_cucumber.json"},
strict = true,
monochrome = true)
public class RunJobEngineServiceOnlineDeviceI9nTest {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/*******************************************************************************
* Copyright (c) 2019, 2021 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
*******************************************************************************/
package org.eclipse.kapua.integration.service.jobEngine.stepDefinitions;

import cucumber.api.CucumberOptions;
import org.eclipse.kapua.qa.common.cucumber.CucumberWithProperties;
import org.junit.runner.RunWith;

@RunWith(CucumberWithProperties.class)
@CucumberOptions(
features = {
"classpath:features/jobEngine/JobEngineServiceKeystoreStepDefinitionsI9n.feature"
},
glue = {"org.eclipse.kapua.service.job.steps",
"org.eclipse.kapua.service.user.steps",
"org.eclipse.kapua.qa.common",
"org.eclipse.kapua.service.account.steps",
"org.eclipse.kapua.service.device.registry.steps",
},
plugin = {"pretty",
"html:target/cucumber/JobEngineOnlineDeviceI9n",
"json:target/JobEngineOnlineDeviceI9n_cucumber.json"},
strict = true,
monochrome = true)
public class RunJobEngineServiceKeystoreStepDefinitionsI9nTest {
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Feature: Device Management Keystore Service Tests
Given Start Broker

#
# Setup
# Tests
#

Scenario: Request Keystores to a Device
Expand Down
Loading

0 comments on commit 3c41e4d

Please sign in to comment.