This repository has been archived by the owner on Nov 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #940 from Mark-J-Lawrence/sdv
- Loading branch information
Showing
48 changed files
with
11,228 additions
and
1 deletion.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
...nagers-parent/galasa-managers-testingtools-parent/dev.galasa.sdv.manager.ivt/build.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
plugins { | ||
id 'galasa.manager.ivt' | ||
} | ||
|
||
description = 'Galasa SDV Manager IVT' | ||
|
||
version = '0.34.0' | ||
|
||
dependencies { | ||
implementation project (':galasa-managers-cicsts-parent:dev.galasa.cicsts.ceci.manager') | ||
implementation project (':galasa-managers-core-parent:dev.galasa.core.manager') | ||
implementation project (':galasa-managers-cicsts-parent:dev.galasa.cicsts.manager') | ||
implementation project (':galasa-managers-zos-parent:dev.galasa.zos3270.manager') | ||
implementation project (':galasa-managers-zos-parent:dev.galasa.zos.manager') | ||
implementation project (':galasa-managers-core-parent:dev.galasa.artifact.manager') | ||
implementation project (':galasa-managers-testingtools-parent:dev.galasa.sdv.manager') | ||
} | ||
|
||
// Note: These values are consumed by the parent build process | ||
// They indicate which packages of functionality this OSGi bundle should be delivered inside, | ||
// or referenced from. | ||
// The settings here are gathered together by the build process to create a release.yaml file | ||
// which gathers-up all the packaging metadata about all the OSGi bundles in this component. | ||
ext.projectName=project.name | ||
ext.includeInOBR = false | ||
ext.includeInMVP = false | ||
ext.includeInBOM = false | ||
ext.includeInIsolated = false | ||
ext.includeInCodeCoverage = false | ||
ext.includeInJavadoc = false |
1 change: 1 addition & 0 deletions
1
...ers-parent/galasa-managers-testingtools-parent/dev.galasa.sdv.manager.ivt/settings.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rootProject.name = 'dev.galasa.sdv.manager.ivt' |
56 changes: 56 additions & 0 deletions
56
...nt/dev.galasa.sdv.manager.ivt/src/main/java/dev/galasa/sdv/manager/ivt/SdvManagerIVT.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/* | ||
* Copyright contributors to the Galasa project | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*/ | ||
package dev.galasa.sdv.manager.ivt; | ||
|
||
import org.apache.commons.logging.Log; | ||
|
||
import static org.assertj.core.api.Assertions.assertThat; | ||
|
||
import dev.galasa.BeforeClass; | ||
import dev.galasa.Test; | ||
import dev.galasa.cicsts.CicsRegion; | ||
import dev.galasa.cicsts.CicsTerminal; | ||
import dev.galasa.cicsts.ICicsRegion; | ||
import dev.galasa.cicsts.ICicsTerminal; | ||
import dev.galasa.core.manager.Logger; | ||
import dev.galasa.sdv.ISdvUser; | ||
import dev.galasa.sdv.SdvManagerException; | ||
import dev.galasa.sdv.SdvUser; | ||
|
||
@Test | ||
public class SdvManagerIVT { | ||
|
||
@Logger | ||
public Log logger; | ||
|
||
@CicsRegion | ||
public ICicsRegion cics; | ||
|
||
@CicsTerminal | ||
public ICicsTerminal terminal; | ||
|
||
@SdvUser(roleTag = "role1") | ||
public ISdvUser user1; | ||
|
||
private static final String SDV_TCPIPSERVICE_NAME = "SDVXSDT"; | ||
|
||
@BeforeClass | ||
public void logIntoTerminals() throws SdvManagerException { | ||
user1.logIntoTerminal(terminal); | ||
} | ||
|
||
@Test | ||
public void userUsesCeda() throws Exception { | ||
|
||
terminal.type("CEDA DI G(SDVGRP)").enter().waitForTextInField(SDV_TCPIPSERVICE_NAME); | ||
|
||
assertThat(terminal.searchText(SDV_TCPIPSERVICE_NAME)) | ||
.as("Expectation to see " + SDV_TCPIPSERVICE_NAME + " in terminal").isTrue(); | ||
terminal.pf3(); | ||
} | ||
|
||
} | ||
|
7 changes: 7 additions & 0 deletions
7
galasa-managers-parent/galasa-managers-testingtools-parent/dev.galasa.sdv.manager/bnd.bnd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
-snapshot: ${tstamp} | ||
Bundle-Name: Galasa SDV Manager | ||
Export-Package: dev.galasa.sdv | ||
Import-Package: !javax.validation.constraints,\ | ||
* | ||
|
||
|
97 changes: 97 additions & 0 deletions
97
...a-managers-parent/galasa-managers-testingtools-parent/dev.galasa.sdv.manager/build.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
plugins { | ||
id 'galasa.manager' | ||
id 'checkstyle' | ||
id 'pmd' | ||
id("com.github.spotbugs") version "4.7.0" | ||
} | ||
|
||
description = 'Galasa SDV Manager' | ||
|
||
version = '0.34.0' | ||
|
||
checkstyle { | ||
configFile = file("config/checkstyle/checkstyle.xml") | ||
toolVersion = "10.14.2" | ||
} | ||
configurations.all { | ||
attributes { | ||
attribute(Attribute.of('org.gradle.jvm.environment', String), 'standard-jvm') | ||
} | ||
} | ||
|
||
jacoco { | ||
toolVersion = "0.8.7" | ||
} | ||
|
||
pmd { | ||
consoleOutput = true | ||
toolVersion = "6.50.0" | ||
ruleSetFiles = files("config/pmd/sdvrules.xml") | ||
ruleSets = [] | ||
} | ||
|
||
dependencies { | ||
|
||
implementation project(':galasa-managers-core-parent:dev.galasa.artifact.manager') | ||
implementation project(':galasa-managers-zos-parent:dev.galasa.zos3270.manager') | ||
implementation project(':galasa-managers-cicsts-parent:dev.galasa.cicsts.manager') | ||
implementation project(':galasa-managers-comms-parent:dev.galasa.http.manager') | ||
implementation 'com.google.code.gson:gson:2.10.1' | ||
|
||
// Unit testing | ||
testImplementation 'org.junit.jupiter:junit-jupiter:5.10.2' | ||
testImplementation 'org.mockito:mockito-core:5.3.1' | ||
testImplementation 'org.mockito:mockito-junit-jupiter:5.3.1' | ||
testImplementation 'commons-io:commons-io:2.16.1' | ||
} | ||
|
||
test { | ||
useJUnitPlatform() | ||
maxHeapSize = '1G' | ||
finalizedBy jacocoTestReport // report is always generated after tests run | ||
enabled true | ||
} | ||
|
||
tasks.withType(com.github.spotbugs.snom.SpotBugsTask) { | ||
excludeFilter = file("config/spotbugs/excludes.xml") | ||
reports { | ||
xml { | ||
enabled = true | ||
} | ||
html { | ||
enabled = true | ||
} | ||
} | ||
} | ||
|
||
jacocoTestReport { | ||
enabled true | ||
dependsOn test // tests are required to run before generating the report | ||
} | ||
|
||
jacocoTestCoverageVerification { | ||
violationRules { | ||
rule { | ||
limit { | ||
counter = 'LINE' | ||
value = 'COVEREDRATIO' | ||
minimum = 0.84 | ||
} | ||
} | ||
} | ||
} | ||
|
||
check.dependsOn jacocoTestCoverageVerification | ||
|
||
// Note: These values are consumed by the parent build process | ||
// They indicate which packages of functionality this OSGi bundle should be delivered inside, | ||
// or referenced from. | ||
// The settings here are gathered together by the build process to create a release.yaml file | ||
// which gathers-up all the packaging metadata about all the OSGi bundles in this component. | ||
ext.projectName=project.name | ||
ext.includeInOBR = true | ||
ext.includeInMVP = true | ||
ext.includeInBOM = true | ||
ext.includeInIsolated = true | ||
ext.includeInCodeCoverage = true | ||
ext.includeInJavadoc = true |
Oops, something went wrong.