You've already forked jenkins-lib
mirror of
https://github.com/firstBitMarksistskaya/jenkins-lib.git
synced 2025-08-25 20:09:25 +02:00
More tests
This commit is contained in:
@@ -60,7 +60,10 @@ class ConfigurationReaderTest {
|
|||||||
assertThat(jobConfiguration.getSmokeTestOptions().getVrunnerSettings()).contains("./tools/vrunner-smoke.json");
|
assertThat(jobConfiguration.getSmokeTestOptions().getVrunnerSettings()).contains("./tools/vrunner-smoke.json");
|
||||||
assertThat(jobConfiguration.getSmokeTestOptions().isPublishToAllureReport()).isFalse();
|
assertThat(jobConfiguration.getSmokeTestOptions().isPublishToAllureReport()).isFalse();
|
||||||
assertThat(jobConfiguration.getSmokeTestOptions().isPublishToJUnitReport()).isTrue();
|
assertThat(jobConfiguration.getSmokeTestOptions().isPublishToJUnitReport()).isTrue();
|
||||||
assertThat(jobConfiguration.getSmokeTestOptions().getCoverage()).isFalse();
|
assertThat(jobConfiguration.getSmokeTestOptions().getCoverage()).isTrue();
|
||||||
|
assertThat(jobConfiguration.getSmokeTestOptions().getDbgsPort()).isEqualTo(1555);
|
||||||
|
|
||||||
|
assertThat(jobConfiguration.getYaxunitOptions().getDbgsPort()).isEqualTo(1550);
|
||||||
|
|
||||||
assertThat(jobConfiguration.getInitInfoBaseOptions().getRunMigration()).isFalse();
|
assertThat(jobConfiguration.getInitInfoBaseOptions().getRunMigration()).isFalse();
|
||||||
assertThat(jobConfiguration.getInitInfoBaseOptions().getAdditionalInitializationSteps()).contains("vanessa --settings ./tools/vrunner.first.json");
|
assertThat(jobConfiguration.getInitInfoBaseOptions().getAdditionalInitializationSteps()).contains("vanessa --settings ./tools/vrunner.first.json");
|
||||||
@@ -118,7 +121,7 @@ class ConfigurationReaderTest {
|
|||||||
assertThat(jobConfiguration.edtAgentLabel()).isEqualTo("edt@2021.3.4:x86_64");
|
assertThat(jobConfiguration.edtAgentLabel()).isEqualTo("edt@2021.3.4:x86_64");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Disabled
|
@Test
|
||||||
void testInfoBaseFromFiles() throws IOException {
|
void testInfoBaseFromFiles() throws IOException {
|
||||||
// given
|
// given
|
||||||
String config = IOUtils.resourceToString(
|
String config = IOUtils.resourceToString(
|
||||||
|
@@ -9,6 +9,7 @@ public class EnvUtils implements EnvironmentAction {
|
|||||||
|
|
||||||
public String NODE_NAME = "node";
|
public String NODE_NAME = "node";
|
||||||
public String WORKSPACE = "ws";
|
public String WORKSPACE = "ws";
|
||||||
|
public String BRANCH_NAME = "master";
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public EnvVars getEnvironment() throws IOException, InterruptedException {
|
public EnvVars getEnvironment() throws IOException, InterruptedException {
|
||||||
|
@@ -1,91 +1,99 @@
|
|||||||
{
|
{
|
||||||
"v8version": "8.3.14.1944",
|
"v8version": "8.3.14.1944",
|
||||||
"edtVersion": "2021.3.4:x86_64",
|
"edtVersion": "2021.3.4:x86_64",
|
||||||
"secrets": {
|
"secrets": {
|
||||||
"storage": "1234"
|
"storage": "1234"
|
||||||
},
|
},
|
||||||
"coverage": {
|
"coverage": {
|
||||||
"dbgsPath": "/opt/1cv8/current/dbgs"
|
"dbgsPath": "/opt/1cv8/current/dbgs"
|
||||||
},
|
},
|
||||||
"stages": {
|
"stages": {
|
||||||
"syntaxCheck": true
|
"syntaxCheck": true
|
||||||
},
|
},
|
||||||
"timeout": {
|
"timeout": {
|
||||||
"zipInfoBase": 123
|
"zipInfoBase": 123
|
||||||
},
|
},
|
||||||
"initInfobase": {
|
"initInfobase": {
|
||||||
"runMigration": false,
|
"runMigration": false,
|
||||||
"additionalInitializationSteps": [
|
"additionalInitializationSteps": [
|
||||||
"vanessa --settings ./tools/vrunner.first.json"
|
"vanessa --settings ./tools/vrunner.first.json"
|
||||||
],
|
],
|
||||||
"extensions": [
|
"extensions": [
|
||||||
{
|
{
|
||||||
"name": "YAXUnit",
|
"name": "YAXUnit",
|
||||||
"initMethod": "fromSource",
|
"initMethod": "fromSource",
|
||||||
"path": "./src/cfe/YAXUnit",
|
"path": "./src/cfe/YAXUnit",
|
||||||
"stages": ["yaxunit"]
|
"stages": [
|
||||||
},
|
"yaxunit"
|
||||||
{
|
]
|
||||||
"name": "BDD",
|
},
|
||||||
"initMethod": "fromSource",
|
{
|
||||||
"path": "./src/cfe/bdd",
|
"name": "BDD",
|
||||||
"stages": ["bdd"]
|
"initMethod": "fromSource",
|
||||||
},
|
"path": "./src/cfe/bdd",
|
||||||
{
|
"stages": [
|
||||||
"name": "mods",
|
"bdd"
|
||||||
"initMethod": "fromSource",
|
]
|
||||||
"path": "./src/cfe/mods"
|
},
|
||||||
},
|
{
|
||||||
{
|
"name": "mods",
|
||||||
"name": "mods2",
|
"initMethod": "fromSource",
|
||||||
"initMethod": "fromSource",
|
"path": "./src/cfe/mods"
|
||||||
"path": "./src/cfe/mods2",
|
},
|
||||||
"stages": ["initInfoBase"]
|
{
|
||||||
}
|
"name": "mods2",
|
||||||
]
|
"initMethod": "fromSource",
|
||||||
},
|
"path": "./src/cfe/mods2",
|
||||||
"sonarqube": {
|
"stages": [
|
||||||
"sonarQubeInstallation": "qa",
|
"initInfoBase"
|
||||||
"branchAnalysisConfiguration": "auto"
|
]
|
||||||
},
|
}
|
||||||
"syntaxCheck": {
|
]
|
||||||
"checkModes": [
|
},
|
||||||
"-ThickClient",
|
"sonarqube": {
|
||||||
"-ThinClient",
|
"sonarQubeInstallation": "qa",
|
||||||
"-WebClient",
|
"branchAnalysisConfiguration": "auto"
|
||||||
"-Server"
|
},
|
||||||
]
|
"syntaxCheck": {
|
||||||
},
|
"checkModes": [
|
||||||
"resultsTransform": {
|
"-ThickClient",
|
||||||
"transformer": "stebi",
|
"-ThinClient",
|
||||||
"genericIssueFormat": "Generic_Issue",
|
"-WebClient",
|
||||||
"removeSupport": false
|
"-Server"
|
||||||
},
|
]
|
||||||
"smoke": {
|
},
|
||||||
"vrunnerSettings": "./tools/vrunner-smoke.json",
|
"resultsTransform": {
|
||||||
"publishToAllureReport": false,
|
"transformer": "stebi",
|
||||||
"publishToJUnitReport": true
|
"genericIssueFormat": "Generic_Issue",
|
||||||
},
|
"removeSupport": false
|
||||||
"notifications": {
|
},
|
||||||
"email": {
|
"smoke": {
|
||||||
"onAlways": true,
|
"vrunnerSettings": "./tools/vrunner-smoke.json",
|
||||||
"alwaysOptions": {
|
"publishToAllureReport": false,
|
||||||
"attachLog": true,
|
"publishToJUnitReport": true,
|
||||||
"directRecipients": [
|
"coverage": true,
|
||||||
"1@1.com",
|
"dbgsPort": 1555
|
||||||
"2@1.com"
|
},
|
||||||
]
|
"notifications": {
|
||||||
},
|
"email": {
|
||||||
"failureOptions": {
|
"onAlways": true,
|
||||||
"recipientProviders": [
|
"alwaysOptions": {
|
||||||
"developers"
|
"attachLog": true,
|
||||||
]
|
"directRecipients": [
|
||||||
}
|
"1@1.com",
|
||||||
},
|
"2@1.com"
|
||||||
"telegram": {
|
]
|
||||||
"onAlways": false,
|
},
|
||||||
"onFailure": true
|
"failureOptions": {
|
||||||
}
|
"recipientProviders": [
|
||||||
},
|
"developers"
|
||||||
"logosConfig": "logger.rootLogger=DEBUG"
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"telegram": {
|
||||||
|
"onAlways": false,
|
||||||
|
"onFailure": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"logosConfig": "logger.rootLogger=DEBUG"
|
||||||
}
|
}
|
Reference in New Issue
Block a user