Skip to content

Wdt alias test branch #862

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 58 commits into from
Apr 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
3d00ab8
Add alias test foundation
CarolynRountree Oct 20, 2020
d885bec
alias test foundation
CarolynRountree Oct 20, 2020
fbe051a
Correct import statements
CarolynRountree Oct 21, 2020
fcba2f6
Merge branch 'master' into WDT-alias-test-branch
CarolynRountree Oct 26, 2020
ef668f3
Merge branch 'master' into WDT-alias-test-branch
CarolynRountree Oct 30, 2020
98bfd89
between work commit
CarolynRountree Nov 2, 2020
f63bd54
midstream commit
CarolynRountree Nov 3, 2020
5fed9ca
intermediate fixes
CarolynRountree Nov 17, 2020
9441dc8
Merge branch 'master' into WDT-alias-test-branch
CarolynRountree Feb 8, 2021
b4811db
Fix verify issues
CarolynRountree Feb 9, 2021
7bb1f23
run verify without WLST
CarolynRountree Feb 9, 2021
3911c3b
remove WLST references from verify
CarolynRountree Feb 10, 2021
20d818c
Merge branch 'master' into WDT-alias-test-branch
CarolynRountree Feb 11, 2021
9296868
Merge branch 'master' into WDT-alias-test-branch
CarolynRountree Feb 12, 2021
b8944de
Run verify without Weblogic home
CarolynRountree Feb 12, 2021
0d53d7c
further script changes
CarolynRountree Feb 18, 2021
c7c7741
running under docker
CarolynRountree Feb 25, 2021
4841908
Alias test in jenkinsfile
CarolynRountree Feb 25, 2021
e38f270
Alias test in jenkinsfile
CarolynRountree Feb 25, 2021
e73b739
Alias test in jenkinsfile
CarolynRountree Feb 25, 2021
1dd8035
Alias test in jenkinsfile
CarolynRountree Feb 25, 2021
b444da9
Alias test in jenkinsfile
CarolynRountree Feb 25, 2021
6da921a
Jenkinsfile change
CarolynRountree Feb 26, 2021
b20fff9
Jenkinsfile change
CarolynRountree Feb 26, 2021
98319f3
aliastest jenkins changes
CarolynRountree Feb 26, 2021
197340e
aliastest jenkins changes
CarolynRountree Feb 26, 2021
5eed6bd
aliastest jenkins changes
CarolynRountree Feb 26, 2021
72daf03
aliastest jenkins changes
CarolynRountree Feb 26, 2021
92d75a3
aliastest jenkins changes
CarolynRountree Feb 26, 2021
223b8f1
aliastest jenkins changes
CarolynRountree Feb 26, 2021
3ab5955
aliastest jenkins changes
CarolynRountree Feb 26, 2021
16b09d7
Change to Jenkinsfile for user
CarolynRountree Mar 1, 2021
533d5ac
Change to Jenkinsfile for user
CarolynRountree Mar 1, 2021
a0e3de3
Change dockerfile
CarolynRountree Mar 8, 2021
1dfe0a6
add more versions to jenkinsfile
CarolynRountree Mar 19, 2021
1b31c92
add more versions to jenkinsfile
CarolynRountree Mar 22, 2021
450e48e
work on archiving testfiles
CarolynRountree Mar 22, 2021
2370bca
work on archiving testfiles
CarolynRountree Mar 22, 2021
915fd0c
work on archiving testfiles
CarolynRountree Mar 22, 2021
be9b4e8
work on archiving testfiles
CarolynRountree Mar 22, 2021
447b9f4
work on archiving testfiles
CarolynRountree Mar 22, 2021
d5a2b7a
work on archiving testfiles
CarolynRountree Mar 25, 2021
0d9ef1f
work on archiving testfiles
CarolynRountree Mar 25, 2021
2cefb48
work on archiving testfiles
CarolynRountree Mar 25, 2021
faf5941
add final versions
CarolynRountree Mar 25, 2021
70a590d
archive generated files
CarolynRountree Mar 26, 2021
450c23f
Merge branch 'master' into WDT-alias-test-branch
CarolynRountree Mar 30, 2021
fbfeb0e
when on master trigger
CarolynRountree Mar 30, 2021
cd3395a
add generated files zip
CarolynRountree Mar 30, 2021
ce31f26
Merge branch 'master' into WDT-alias-test-branch
CarolynRountree Mar 30, 2021
b46ea64
remove archive of generated files
CarolynRountree Mar 30, 2021
9f21851
Update pom.xml
CarolynRountree Mar 30, 2021
dee9570
Copy jenkinsfile from master to aliast test branch
CarolynRountree Mar 30, 2021
edcf5fd
Merge branch 'WDT-alias-test-branch' of github.com:oracle/weblogic-de…
CarolynRountree Mar 30, 2021
d4e6471
remove archive from resources
CarolynRountree Apr 7, 2021
e9a0d3e
rename systemtest entities
CarolynRountree Apr 7, 2021
b1af70d
Try different run trigger
CarolynRountree Apr 7, 2021
05a6a8a
reset jenkinfile trigger
CarolynRountree Apr 7, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,46 @@ pipeline {
}
}
}
stage ('Alias Test') {
// only run this stage when triggered by a cron timer and the commit does not have []skip-ci in the message
// for example, only run integration tests during the timer triggered nightly build
when {
allOf {
triggeredBy 'TimerTrigger'
branch "master"
}
}
matrix {
// run verify tests for each version in parallel.
axes {
axis {
name 'WLS_VERSION'
values '10.3.6.0', '12.1.1.0', '12.1.2.0.0', '12.1.3.0.0', '12.2.1.0.0', '12.2.1.1.0', '12.2.1.2.0', '12.2.1.3.0', '12.2.1.4.0', '14.1.1.0.0', '14.1.2.0.0'
}
}
stages {
stage('Test') {
agent {
docker {
alwaysPull true
reuseNode true
image 'phx.ocir.io/weblogick8s/wdt/jenkinsslave:aliastest'
args '-u jenkins -v /var/run/docker.sock:/var/run/docker.sock'
}
}
steps {
sh '/u01/verify/alias-test/src/test/resources/runIntegrationTest.sh -wls_version ${WLS_VERSION} -testfiles_path /u01/verify/testfiles;cp /u01/verify/testfiles/report* $WORKSPACE'
}
post {
always {
archiveArtifacts artifacts: 'report*', fingerprint: true
}
}
}
}
}
// after all sets are complete, the job will continue here.
}
stage ('Save Nightly Installer'){
when {
allOf {
Expand Down
110 changes: 110 additions & 0 deletions alias-test/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
The Universal Permissive License (UPL), Version 1.0
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<artifactId>weblogic-deploy-alias-test</artifactId>

<parent>
<artifactId>weblogic-deploy</artifactId>
<groupId>com.oracle.weblogic.lifecycle</groupId>
<version>1.9.7-SNAPSHOT</version>
</parent>

<properties>
<mw_home>${env.ORACLE_HOME}</mw_home>
</properties>

<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.6</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<executions>
<execution>
<id>test-compile</id>
<phase>test-compile</phase>
<goals>
<goal>testCompile</goal>
</goals>
<configuration>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>test-resources</id>
<phase>process-test-resources</phase>
<goals>
<goal>testResources</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>3.0.0-M3</version>
<configuration>
<encoding>UTF-8</encoding>
<failIfNoTests>false</failIfNoTests>
<argLine>
-Xmx1024m -XX:MaxPermSize=256m
</argLine>
<systemProperties>
<property>
<name>wdtversion</name>
<value>${project.version}</value>
</property>
<property>
<name>MW_HOME</name>
<value>${mw_home}</value>
</property>
</systemProperties>
</configuration>
<executions>
<execution>
<id>integration-tests</id>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
<phase>integration-test</phase>
<configuration>
<systemPropertyVariables>
<java.util.logging.SimpleFormatter.format>%1$tm-%1$td-%1$tY %1$tH:%1$tM:%1$tS %4$-6s %2$s %5$s%6$s%n</java.util.logging.SimpleFormatter.format>
</systemPropertyVariables>
<trimStackTrace>false</trimStackTrace>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
4 changes: 4 additions & 0 deletions alias-test/src/test/python/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
"""
Copyright (c) 2020, Oracle Corporation and/or its affiliates.
Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
"""
4 changes: 4 additions & 0 deletions alias-test/src/test/python/aliastest/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
"""
Copyright (c) 2020, Oracle Corporation and/or its affiliates.
Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
"""
4 changes: 4 additions & 0 deletions alias-test/src/test/python/aliastest/generate/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
"""
Copyright (c) 2020, Oracle Corporation and/or its affiliates.
Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
"""
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
"""
Copyright (c) 2021, Oracle Corporation and/or its affiliates.
Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
"""

import aliastest.generate.generator_wlst as generator_wlst

TYPES = 'Types'
ADJUDICATOR_STRING = 'Adjudicator'
adjudicator_types = None
AUDITOR_STRING = 'Auditor'
auditor_types = None
AUTHENTICATION_PROVIDER_STRING = 'AuthenticationProvider'
authentication_provider_types = None
AUTHORIZER_STRING = 'Authorizer'
authorizer_types = None
CERTPATH_PROVIDER_STRING = 'CertPathProvider'
certpath_provider_types = None
PASSWORD_VALIDATOR_STRING = 'PasswordValidator'
password_validator_types = None
ROLE_MAPPER_STRING = 'RoleMapper'
role_mapper_types = None


def populate_security_types(helper):
generator_wlst.connect(helper.admin_user, helper.admin_password, helper.admin_url)
cd_security_configuration(helper.domain_name)
adjudicator_types = generator_wlst.get(ADJUDICATOR_STRING + TYPES)
auditor_types = genearator_wlst.get(AUDITOR_STRING + TYPES)
authentication_provider_types = generator_wlst.get(AUTHENTICATION_PROVIDER_STRING + TYPES)


def create_security_types(helper, offline):
for i in adjudicator_types:
if offline


def create_security_type(helper, type, name, offline):
cd_security_configuration(helper.domain_name)


def cd_security_configuration(domain_name)
generator_wlst.cd_mbean('/SecurityConfiguration/' + domain_name + '/Realms/myrealm')
Loading