Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
Merge pull request #940 from Mark-J-Lawrence/sdv
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-J-Lawrence authored Jun 7, 2024
2 parents 4975bac + 282d606 commit b9a17ff
Show file tree
Hide file tree
Showing 48 changed files with 11,228 additions and 1 deletion.
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
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rootProject.name = 'dev.galasa.sdv.manager.ivt'
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();
}

}

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,\
*


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
Loading

0 comments on commit b9a17ff

Please sign in to comment.