Skip to content
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

update PAYARA-3709 branch #3

Merged
merged 144 commits into from
Apr 11, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
144 commits
Select commit Hold shift + click to select a range
fce6430
QA-3 Sonar PR analysis
Feb 7, 2019
47ed1cd
QA-3 Sonar PR analysis
Feb 8, 2019
40892b9
QA-3 sonar PR analysis
Feb 12, 2019
9e9929f
QA-186 fixes for issues found by tests for new health check as-admin …
jbee Feb 26, 2019
c5ecc60
Merge branch 'master' into QA-186-new-health-check-asadmin-commands
jbee Feb 27, 2019
c5fec4e
updated poms from REST to HTTP
Mar 7, 2019
8de3bfd
Updated ejb folder name
Mar 7, 2019
7211689
Folder renamed - updated file paths
Mar 7, 2019
7472344
Updated class packages to http
Mar 7, 2019
f576f2f
PAYARA-3466 Open API 1.1 implemented new methods, removed builder wit…
jbee Mar 8, 2019
247b10b
Added missing name change - missed from prior commit
Mar 11, 2019
3229892
PAYARA-3466 new properties and fixes
jbee Mar 11, 2019
aa13905
Adding NULL check to prevent NPE when calling isTraditionalClusterActive
svendiedrichsen Mar 11, 2019
0efac48
PAYARA-3444: Refactoring set command part 1 - Set Property early exits
pdudits Mar 12, 2019
8a30d08
PAYARA-3444: Refactoring set command part 2 - Other property early exits
pdudits Mar 12, 2019
545d6bc
PAYARA-3444: Refactoring set command part 3 - Separate node matching …
pdudits Mar 12, 2019
1ecd722
PAYARA-3466 Fixed: Parameters and Extensions annotation processing, e…
jbee Mar 12, 2019
866043e
PAYARA-3444: Warn when shared config is changed when referring to ser…
pdudits Mar 12, 2019
2ba0ee2
PAYARA-3444: Check that referenced config is actually shared before p…
pdudits Mar 12, 2019
d85abf8
PAYARA-3466 fixed JSON serialisation issues
jbee Mar 12, 2019
5a44ff2
PAYARA-3466 fixed extension JSON parsing
jbee Mar 13, 2019
9cbe647
Fixed contextroot issue for console and deployment dir deployments
Mar 13, 2019
f7a6942
removed testing comments
Mar 13, 2019
15a5fe2
PAYARA-3466 addressed formatting issue
jbee Mar 13, 2019
d0bbc63
PAYARA-3466 reverted logic in getParentSchemaType
jbee Mar 13, 2019
a649103
Created initial parameter to track contextroot label being applied
Mar 13, 2019
0109002
changed placement to support multiple deployments
Mar 14, 2019
7aea90b
Created Deprecated package duplicates
Mar 14, 2019
1a724c5
Refactored http class names
Mar 14, 2019
002bd86
fixed refactor imports
Mar 14, 2019
69ebae6
minor changes and unused package removal
Mar 14, 2019
0510aaa
Merge pull request #3701 from MarkWareham/QA-3
Pandrex247 Mar 14, 2019
0235f2f
Revert "QA-3 Sonar PR analysis"
Pandrex247 Mar 14, 2019
f7fa26c
Merge pull request #3835 from payara/revert-3701-QA-3
Pandrex247 Mar 14, 2019
95fe534
PAYARA-3466 moved all JSON output tweaks to mixin interface
jbee Mar 15, 2019
cbd67d4
PAYARA-3684 Security Cleaning sweep 5
arjantijms Mar 15, 2019
677f5d0
PAYARA-3539 Small cleanup cluster package - sweep 2
arjantijms Mar 15, 2019
849ff1b
PAYARA-3466 FIXED Extensible no longer adds node 'extensions' to JSON
jbee Mar 15, 2019
3d29846
PAYARA-3466 basic tests and basis for JSON output testing
jbee Mar 15, 2019
cca2a76
PAYARA-3682 Increase sleep time to ensure new manifest has later time…
Cousjava Mar 15, 2019
5d0f627
PAYARA-3686 unable to save the Default Principal in the Sercurity Ser…
smillidge Mar 16, 2019
0f78baa
Merge pull request #3843 from arjantijms/PAYARA-3539-clean-up-cluster…
arjantijms Mar 18, 2019
74244ae
Merge pull request #3846 from Cousjava/PAYARA-3682-manifest-gfclient
Pandrex247 Mar 18, 2019
aa5775e
Merge pull request #3848 from smillidge/PAYARA-3686
arjantijms Mar 18, 2019
e68de86
PAYARA-3684 Addressing feedback, disambiguated BaseRealm name
arjantijms Mar 18, 2019
9da6813
PAYARA-3684 renamed to AbstractStatefulRealm after chat
arjantijms Mar 18, 2019
068b44d
PAYARA-3684 Addressing feedback - changes too small to justify cr update
arjantijms Mar 18, 2019
4076aa9
PAYARA-3466 fixed serialisation of extentions and maps with properties
jbee Mar 18, 2019
cbcd031
PAYARA-3466 extracted base class for example app based tests with doc…
jbee Mar 18, 2019
2d2af20
PAYARA-3466 fixed serialisation of extentions and maps with properties
jbee Mar 18, 2019
039acfa
Merge pull request #3798 from jbee/QA-186-new-health-check-asadmin-co…
Pandrex247 Mar 19, 2019
6c638c6
Merge pull request #3831 from cubastanley/PAYARA-3662
Pandrex247 Mar 19, 2019
ef8e36d
Merge pull request #3827 from jbee/PAYARA-3466-open-api-1.1
Pandrex247 Mar 19, 2019
147dba1
Merge branch 'master' into PAYARA-3466-open-api-1.1-tests
jbee Mar 19, 2019
9ecae72
Correct spelling and remove commented out code
Pandrex247 Mar 19, 2019
cb889be
Merge pull request #3825 from pdudits/payara-3444
Pandrex247 Mar 19, 2019
1f8169c
Merge pull request #3819 from cubastanley/PAYARA-3563-ejb-rest-client…
Pandrex247 Mar 19, 2019
9689d40
PAYARA-3419: Do not try to create timers on DAS when target is a depl…
pdudits Mar 19, 2019
2e83617
PAYARA-3419: Support persistence type None for EJB Timer Service
pdudits Mar 19, 2019
2c839fe
PAYARA-3419: Admin UI for EJB Timer persistence type None
pdudits Mar 19, 2019
13bd76c
PAYARA-3419: Remove unimplemented cluster-firing-mode from the UI
pdudits Mar 19, 2019
6be803b
PAYARA-3466 fixed annotation processing (empty annotation detection),…
jbee Mar 19, 2019
35d32e8
Add details about reproducible test case to CONTRIBUTING.md
smillidge Mar 19, 2019
54613c5
PAYARA-3466 tested and fixed GH #3724 (filters), changed names to con…
jbee Mar 20, 2019
f6d4921
Fixed missing pom refactor
Mar 20, 2019
7954d87
Merge pull request #3854 from cubastanley/PAYARA-3563-ejb-fix-amendments
cubastanley Mar 20, 2019
48012a6
Merge pull request #3844 from arjantijms/PAYARA-3684-security-clean-s…
arjantijms Mar 20, 2019
cc8099f
PAYARA-3466 actually useful toString for model
jbee Mar 20, 2019
e8960c3
PAYARA-3466 Schema reference test for GH #3832
jbee Mar 20, 2019
1a37fb5
Revert "QA-171 Ignoring test until fixed"
arjantijms Mar 21, 2019
0ed0ca9
Merge pull request #3856 from arjantijms/TEST-224-enable-remote-ejb-ql
arjantijms Mar 21, 2019
e6f4db9
Update Jenkinsfile-Nightly
Pandrex247 Mar 21, 2019
1c95f37
Updated date on Contributing.md
smillidge Mar 21, 2019
73c7cfc
Merge pull request #3824 from svendiedrichsen/standalone-server-ejb-c…
Pandrex247 Mar 21, 2019
aa05f9f
PAYARA-3466 fixed processing of inner classes, more tests on model =>…
jbee Mar 21, 2019
25d1a66
PAYARA-3466 added test for operation, security requirements, external…
jbee Mar 21, 2019
2fe1791
PAYARA-3466 added tests on headers and request bodies
jbee Mar 21, 2019
5a37d5e
Merge pull request #3857 from payara/Update-Jenkins-Nightly
Pandrex247 Mar 21, 2019
7abdcec
PAYARA-3466 added tests on examples
jbee Mar 21, 2019
b32b7db
PAYARA-3466 added tests on links
jbee Mar 21, 2019
4aeed2d
PAYARA-3466 added tests on the security package
jbee Mar 21, 2019
9fa692d
PAYARA-3493: Upgrade eclipselink to 2.7.4.payara-p2
pdudits Mar 21, 2019
a8dfed9
PAYARA-3466 added tests on the responses package
jbee Mar 21, 2019
5a3d737
PAYARA-3466 started adding tests for the media package
jbee Mar 21, 2019
dc603a6
Removing static modifiers
pdudits Mar 22, 2019
2301d99
PAYARA-3706-Upgrade-hibernate-validator-to-6.0.16.Final
Mar 24, 2019
28b20d5
Merge pull request #3853 from pdudits/payara-3419
pdudits Mar 25, 2019
a32561c
Merge pull request #3859 from pdudits/payara-3493
arjantijms Mar 25, 2019
6488cbd
PAYARA-3386: Update login.conf with login module (#3837)
pdudits Mar 25, 2019
05a0ba2
PAYARA-3540: Use no-fork javadoc invocation and package the jar manually
pdudits Mar 12, 2019
14cd520
PAYARA-3466 added tests on media package types (except schema)
jbee Mar 26, 2019
8ca4827
PAYARA-3466 added tests on media package - Schema
jbee Mar 26, 2019
23402d8
PAYARA-3466 added tests for the model tags package
jbee Mar 26, 2019
e8b6a71
PAYARA-3466 made model fields private
jbee Mar 26, 2019
bb87fa8
PAYARA-3466 added tests for model references
jbee Mar 26, 2019
a315fda
PAYARA-3466 added copyright header where missing
jbee Mar 26, 2019
df92203
PAYARA-3660: Supply Common Classloader as locator when CommonModelReg…
pdudits Mar 26, 2019
c4e0777
Implemented fixes for JLine Logging
fturizo Mar 26, 2019
0ec3315
Fixing sonar blocker bugs with unclosed resources and potential NPE
svendiedrichsen Mar 26, 2019
db37b7b
PAYARA-3466 annotations are inherited from superclass and interfaces,…
jbee Mar 27, 2019
a254f90
PAYARA-3466 added tests for hidden property + cleanup
jbee Mar 27, 2019
eb766e9
PAYARA-3676 Much more aggressive use of Jline
Pandrex247 Mar 27, 2019
c9c78c8
PAYARA-3466 added missing copyright headers
jbee Mar 28, 2019
acb3409
removed duplicate classes
Mar 28, 2019
aa4302d
PAYARA-3468 pre-work cleanup of warnings, mostly genercis, unnecessar…
jbee Mar 28, 2019
143e9f6
PAYARA-3468 fixed conversion of config overrides from String
jbee Mar 28, 2019
0860f07
Merge pull request #3871 from cubastanley/PAYARA-3704
cubastanley Mar 28, 2019
40cbc2e
PAYARA-3468 extract ChronoUnit from Config as ChronoUnit.class
jbee Mar 28, 2019
fd0fa36
PAYARA-3676 variable naming and get rid of redundant try-catches
Pandrex247 Mar 28, 2019
fc4bfcf
Merge pull request #3872 from jbee/PAYARA-3468-generics
Pandrex247 Mar 29, 2019
5702435
Merge pull request #3866 from pdudits/payara-3660
Cousjava Mar 29, 2019
4c9f6bb
PAYARA-3676 Copyright
Pandrex247 Mar 29, 2019
aa85a28
PAYARA-3692 Space at the end of MysqlDataSource
Cousjava Mar 29, 2019
a028595
Merge pull request #3864 from pdudits/payara-3540-alt
pdudits Mar 29, 2019
e99a036
PAYARA-3515 Fix setting authentication realm on Virtual Server with a…
jGauravGupta Mar 30, 2019
2ccb4cc
Merge pull request #3874 from Cousjava/PAYARA-3692-mysql
arjantijms Mar 30, 2019
7118b62
Merge pull request #3867 from fturizo/PAYARA-3708-Disable-JLineLoggin…
arjantijms Mar 30, 2019
85f2fd0
Added missing quotation marks around description
Apr 1, 2019
2b71e7e
Merge remote-tracking branch 'upstream/master' into PAYARA-3464
Apr 1, 2019
14f175d
Updated copyright year
Apr 1, 2019
fe34e7a
Merge pull request #3878 from AlanRoth/PAYARA-3464
Apr 1, 2019
ac2c485
PAYARA-2965-Update-hk2-to-2.5.0
Jan 29, 2019
aa3bfbb
PAYARA-2965-Update-hk2-to-2.5.0
Mar 17, 2019
74bf424
PAYARA-2965-Update-hk2-to-2.5.0
Mar 20, 2019
997fec4
PAYARA-2965-Update-hk2-to-2.5.0
Apr 1, 2019
f3753b0
PAYARA-3466 addressed some of Matt's PR comments
jbee Apr 2, 2019
eb79617
PAYARA-3466 warn about non-conformant extension names but don't corre…
jbee Apr 2, 2019
adb1741
PAYARA-3466 fixed: processing Schema annotation after HTTP method ann…
jbee Apr 2, 2019
71e4c2d
Merge pull request #3870 from Pandrex247/PAYARA-3676-Asadmin-Prompt-I…
Pandrex247 Apr 2, 2019
125f420
PAYARA-3466 replaced .cast() with (Type) cast, cleaned and added test…
jbee Apr 2, 2019
efe3c40
Merge pull request #3863 from mulderbaba/PAYARA-3706-Upgrade-hibernat…
Pandrex247 Apr 2, 2019
2d2c2c8
PAYARA-3466 fixed toString for collection fields, moved walking part …
jbee Apr 2, 2019
4f1b34f
PAYARA-3466 added tests for param annoations on fields
jbee Apr 3, 2019
778e786
PAYARA-3466 added missing copyright headers
jbee Apr 3, 2019
6546e1a
Merge pull request #3875 from jGauravGupta/PAYARA-3515
Pandrex247 Apr 3, 2019
fe42d61
PAYARA-3674: Preserve Thread Context Class Loader in Weld executor se…
pdudits Apr 3, 2019
0b88155
Requested changes from code review.
svendiedrichsen Apr 3, 2019
62163c6
Merge branch 'master' of https://github.com/payara/Payara into sonar-…
svendiedrichsen Apr 3, 2019
2dcecf5
Merge pull request #3880 from pdudits/payara-3674
smillidge Apr 6, 2019
9d15053
Update ISSUE_TEMPLATE.md
smillidge Apr 7, 2019
373eaff
Merge pull request #3852 from jbee/PAYARA-3466-open-api-1.1-tests
MattGill98 Apr 8, 2019
79bb40d
Merge pull request #3855 from mulderbaba/PAYARA-2965-Update-hk2-to-2.5.0
MarkWareham Apr 8, 2019
e797815
Merge pull request #3868 from svendiedrichsen/sonar-blocker-npe
Pandrex247 Apr 10, 2019
90e92dc
Merge pull request #2 from payara/master
Apr 10, 2019
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
7 changes: 5 additions & 2 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Payara is an open source project, with the code owned by Payara Foundation a Uni
As we must also comply with the upstream Oracle Common Development and Distribution license the following line should be added to any changed file:

```
Portions Copyright [2017] Payara Foundation and/or its affiliates
Portions Copyright [2019] Payara Foundation and/or its affiliates
```

## Getting Payara
Expand Down Expand Up @@ -160,11 +160,14 @@ If you feel there is a security vulnerability in Payara Server or Payara Micro p

If you find a bug within Payara, please post it as a github issue. Github is our main repository for community found issues with Payara and our support team frequently monitor it for new issues. As with submitting issues, a concise title which clearly explains the issue combined with a comment explaining what the found issue is and either how it arose and a stacktrace of the issue, or a test case which is able to reproduce the issue will help us deliver a patch.

### Executable Test Case
For a bug report to be actioned quickly an executable test case is required. Ideally the test case will be hosted in your GitHub account as a buildable maven project which creates a deployable artifact that demonstrates the issue clearly. I'm afraid we can't get into the details of debugging your specific business application so the test case should be stripped to the minimum required to demonstrate the issue. If additional server resources need creating e.g. Connection Pools or Queues please provide the asadmin commands required to create these in a document or as a script. The reality is the easier it is for an engineer to quickly reproduce your issue the more likely it will be fixed.

## Responses

We continually check the github posted issues for bugs, feature requests, and assorted issues. If you have posted an issue, chances are it has been read by a member of staff. Requests for further information and labels are often posted in order to make it easier for the dev team to see issues. However if your issue has not received a comment or label, don't take this as it having not been read or acted upon!

If you do post an issue and we request further information from you please respond quickly. We review all issues periodically and if an issue has been waiting for a response since last review we will add the "requestor unresponsive" label. If on the second periodic review there has still been no response to our request we will add a second "requestor unresponsive" label. Finally if on the third review there is still no response we will close the issue. This ensures our GitHub issues stay up to date and relevant and don't get full of old issues. If you still have the same problem you can still comment on the closed issue and we will still see it and if necessary reopen the issue to pick up where we left off.
If you do post an issue and we request further information from you please respond quickly. We review all issues periodically and if an issue has been waiting for a response since last review we will add the "requestor unresponsive" label. If on the second periodic review there has still been no response to our request we will add a second "requestor unresponsive" label. Finally if on the third review there is still no response we will close the issue. This ensures our GitHub issues stay up to date and relevant and doesn't get full of old issues. If you still have the same problem you can still comment on the closed issue and we will still see it and if necessary reopen the issue to pick up where we left off.

## Questions, advice and guidance

Expand Down
3 changes: 2 additions & 1 deletion .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@

<!--

Describe the test to reproduce the bug in a series of steps. Make each step simple to follow by describing configuration changes, commands to run or simple instructions; for example:
If possible it is always preferred if you host a test case as a maven project on Github that simply demonstrates the issue.
If this is not appropriate then describe the test to reproduce the bug in a series of steps. Make each step simple to follow by describing configuration changes, commands to run or simple instructions; for example:

1 -** Start the domain

Expand Down
26 changes: 15 additions & 11 deletions Jenkinsfile-Nightly
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ pipeline {
stage('Run MicroProfile Config TCK') {
steps {
echo '*#*#*#*#*#*#*#*#*#*#*#*# Running Config TCK *#*#*#*#*#*#*#*#*#*#*#*#*#*#*#'
sh "mvn -B -V -ff -e clean install -f MicroProfile-Config/tck-runner/pom.xml -Ppayara-micro-managed \
sh "mvn -B -V -ff -e clean verify -f MicroProfile-Config/tck-runner/pom.xml -Ppayara-micro-managed \
-Dsurefire.rerunFailingTestsCount=2 -Dpayara.version=${pom.version}"
echo '*#*#*#*#*#*#*#*#*#*#*#*# Ran Config TCK *#*#*#*#*#*#*#*#*#*#*#*#*#*#*#'
}
Expand All @@ -200,7 +200,7 @@ pipeline {
stage('Run MicroProfile Fault Tolerance TCK') {
steps {
echo '*#*#*#*#*#*#*#*#*#*#*#*# Running Fault Tolerance TCK *#*#*#*#*#*#*#*#*#*#*#*#*#*#*#'
sh "mvn -B -V -ff -e clean install -f MicroProfile-Fault-Tolerance/tck-runner/pom.xml \
sh "mvn -B -V -ff -e clean verify -f MicroProfile-Fault-Tolerance/tck-runner/pom.xml \
-Dsurefire.rerunFailingTestsCount=2 -Ppayara-micro-managed -Dpayara.version=${pom.version}"
echo '*#*#*#*#*#*#*#*#*#*#*#*# Ran Fault Tolerance TCK *#*#*#*#*#*#*#*#*#*#*#*#*#*#*#'
}
Expand All @@ -213,12 +213,14 @@ pipeline {
stage('Run MicroProfile Health TCK') {
steps {
echo '*#*#*#*#*#*#*#*#*#*#*#*# Installing MP Health TCK Arquillian Extension *#*#*#*#*#*#*#*#*#*#*#*#*#*#*#'
sh "mvn -B -V -ff -e clean install -f MicroProfile-Health/payara-health-arquillian-extension/pom.xml \
-Dpayara.version=${pom.version}"
sh "mvn -B -V -ff -e clean install -f pom.xml -Dpayara.version=${pom.version} -N"
sh "mvn -B -V -ff -e clean install -f MicroProfile-Health/pom.xml -Dpayara.version=${pom.version} -N"
sh "mvn -B -V -ff -e clean install -f MicroProfile-Health/tck-arquillian-extension/pom.xml \
-Dpayara.version=${pom.version} -N"
echo '*#*#*#*#*#*#*#*#*#*#*#*# Installed MP Health TCK Arquillian Extension *#*#*#*#*#*#*#*#*#*#*#*#*#*#*#'

echo '*#*#*#*#*#*#*#*#*#*#*#*# Running Health TCK *#*#*#*#*#*#*#*#*#*#*#*#*#*#*#'
sh "mvn -B -V -ff -e clean install -f MicroProfile-Health/tck-runner/pom.xml -Ppayara-micro-managed \
sh "mvn -B -V -ff -e clean verify -f MicroProfile-Health/tck-runner/pom.xml -Ppayara-micro-managed \
-Dsurefire.rerunFailingTestsCount=2 -Dpayara.version=${pom.version}"
echo '*#*#*#*#*#*#*#*#*#*#*#*# Ran Health TCK *#*#*#*#*#*#*#*#*#*#*#*#*#*#*#'
}
Expand All @@ -231,12 +233,14 @@ pipeline {
stage('Run MicroProfile JWT-Auth TCK') {
steps {
echo '*#*#*#*#*#*#*#*#*#*#*#*# Installing MP JWT-Auth TCK Arquillian Extension *#*#*#*#*#*#*#*#*#*#*#*#*#*#*#'
sh "mvn -B -V -ff -e clean install -f MicroProfile-JWT-Auth/payara-jwt-auth-arquillian-extension/pom.xml \
sh "mvn -B -V -ff -e clean install -f pom.xml -Dpayara.version=${pom.version} -N"
sh "mvn -B -V -ff -e clean install -f MicroProfile-JWT-Auth/pom.xml -Dpayara.version=${pom.version} -N"
sh "mvn -B -V -ff -e clean install -f MicroProfile-JWT-Auth/payara-jwt-auth-arquillian-extension/pom.xml \
-Dpayara.version=${pom.version}"
echo '*#*#*#*#*#*#*#*#*#*#*#*# Installed MP JWT-Auth TCK Arquillian Extension *#*#*#*#*#*#*#*#*#*#*#*#*#*#*#'

echo '*#*#*#*#*#*#*#*#*#*#*#*# Running JWT-Auth TCK *#*#*#*#*#*#*#*#*#*#*#*#*#*#*#'
sh "mvn -B -V -ff -e clean install -f MicroProfile-JWT-Auth/tck-runner/pom.xml \
sh "mvn -B -V -ff -e clean verify -f MicroProfile-JWT-Auth/tck-runner/pom.xml \
-Ppayara-micro-managed,full -Dsurefire.rerunFailingTestsCount=2 -Dpayara.version=${pom.version}"
echo '*#*#*#*#*#*#*#*#*#*#*#*# Ran JWT-Auth TCK *#*#*#*#*#*#*#*#*#*#*#*#*#*#*#'
}
Expand All @@ -249,7 +253,7 @@ pipeline {
stage('Run MicroProfile Metrics TCK') {
steps {
echo '*#*#*#*#*#*#*#*#*#*#*#*# Running Metrics TCK *#*#*#*#*#*#*#*#*#*#*#*#*#*#*#'
sh "mvn -B -V -ff -e clean install -f MicroProfile-Metrics/tck-runner/pom.xml -Ppayara-micro-managed \
sh "mvn -B -V -ff -e clean verify -f MicroProfile-Metrics/tck-runner/pom.xml -Ppayara-micro-managed \
-Dsurefire.rerunFailingTestsCount=2 -Dpayara.version=${pom.version}"
echo '*#*#*#*#*#*#*#*#*#*#*#*# Ran Metrics TCK *#*#*#*#*#*#*#*#*#*#*#*#*#*#*#'
}
Expand All @@ -262,7 +266,7 @@ pipeline {
stage('Run MicroProfile OpenAPI TCK') {
steps {
echo '*#*#*#*#*#*#*#*#*#*#*#*# Running OpenAPI TCK *#*#*#*#*#*#*#*#*#*#*#*#*#*#*#'
sh "mvn -B -V -ff -e clean install -f MicroProfile-OpenAPI/tck-runner/pom.xml -Ppayara-micro-managed \
sh "mvn -B -V -ff -e clean verify -f MicroProfile-OpenAPI/tck-runner/pom.xml -Ppayara-micro-managed \
-Dsurefire.rerunFailingTestsCount=2 -Dpayara.version=${pom.version}"
echo '*#*#*#*#*#*#*#*#*#*#*#*# Ran OpenAPI TCK *#*#*#*#*#*#*#*#*#*#*#*#*#*#*#'
}
Expand All @@ -275,7 +279,7 @@ pipeline {
stage('Run MicroProfile OpenTracing TCK') {
steps {
echo '*#*#*#*#*#*#*#*#*#*#*#*# Running OpenTracing TCK *#*#*#*#*#*#*#*#*#*#*#*#*#*#*#'
sh "mvn -B -V -ff -e clean install -f MicroProfile-OpenTracing/tck-runner/pom.xml -Ppayara-micro-managed \
sh "mvn -B -V -ff -e clean verify -f MicroProfile-OpenTracing/tck-runner/pom.xml -Ppayara-micro-managed \
-Dsurefire.rerunFailingTestsCount=2 -Dpayara.version=${pom.version}"
echo '*#*#*#*#*#*#*#*#*#*#*#*# Ran OpenTracing TCK *#*#*#*#*#*#*#*#*#*#*#*#*#*#*#'
}
Expand All @@ -288,7 +292,7 @@ pipeline {
stage('Run MicroProfile Rest Client TCK') {
steps {
echo '*#*#*#*#*#*#*#*#*#*#*#*# Running Rest Client TCK *#*#*#*#*#*#*#*#*#*#*#*#*#*#*#'
sh "mvn -B -V -ff -e clean install -f MicroProfile-Rest-Client/tck-runner/pom.xml -Ppayara-micro-managed \
sh "mvn -B -V -ff -e clean verify -f MicroProfile-Rest-Client/tck-runner/pom.xml -Ppayara-micro-managed \
-Dsurefire.rerunFailingTestsCount=2 -Dpayara.version=${pom.version}"
echo '*#*#*#*#*#*#*#*#*#*#*#*# Ran Rest Client TCK *#*#*#*#*#*#*#*#*#*#*#*#*#*#*#'
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.

* Copyright (c) [2019] Payara Foundation and/or its affiliates. All rights reserved.

* The contents of this file are subject to the terms of either the GNU
* General Public License Version 2 only ("GPL") or the Common Development
* and Distribution License("CDDL") (collectively, the "License"). You
* may not use this file except in compliance with the License. You can
* obtain a copy of the License at
* https://github.com/payara/Payara/blob/master/LICENSE.txt
* See the License for the specific
* language governing permissions and limitations under the License.

* When distributing the software, include this License Header Notice in each
* file and include the License file at glassfish/legal/LICENSE.txt.

* GPL Classpath Exception:
* The Payara Foundation designates this particular file as subject to the "Classpath"
* exception as provided by the Payara Foundation in the GPL Version 2 section of the License
* file that accompanied this code.

* Modifications:
* If applicable, add the following below the License Header, with the fields
* enclosed by brackets [] replaced by your own identifying information:
* "Portions Copyright [year] [name of copyright owner]"

* Contributor(s):
* If you wish your version of this file to be governed by only the CDDL or
* only the GPL Version 2, indicate your decision by adding "[Contributor]
* elects to include this software in this distribution under the [CDDL or GPL
* Version 2] license." If you don't indicate a single choice of license, a
* recipient has the option to distribute your version of this file under
* either the CDDL, the GPL Version 2 or to extend the choice of license to
* its licensees as provided above. However, if you add GPL Version 2 code
* and therefore, elected the GPL Version 2 license, then the option applies
* only if the new code is made subject to such option by the copyright
* holder.
**/

package org.glassfish.admingui.common.handlers;

import org.glassfish.admingui.common.util.GuiUtil;

import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

/**
* Type representing properties as List of Maps.
*/
class PropertyList implements Iterable<Map.Entry<String, String>> {
private Map<String, String> properties = new LinkedHashMap<>();

private PropertyList() {

}

void put(String key, String value) {
if (GuiUtil.isEmpty(key)) {
return;
}
if (!GuiUtil.isEmpty(value)) {
properties.put(key, value);
}
}

void put(String key, Map<String, String> sourceMap, String sourceKey) {
if (sourceMap != null) {
put(key, sourceMap.get(sourceKey));
}
}

public int size() {
return properties.size();
}

public boolean isEmpty() {
return properties.isEmpty();
}

public boolean containsKey(Object key) {
return properties.containsKey(key);
}

public String get(Object key) {
return properties.get(key);
}

@Override
public Iterator<Map.Entry<String, String>> iterator() {
return properties.entrySet().iterator();
}

public List<Map<String, String>> toList() {
return properties.entrySet().stream()
.map(e -> toPropertyEntry(e.getKey(), e.getValue()))
.collect(Collectors.toList());
}

public String toParamValue() {
StringBuilder paramValue = new StringBuilder();
for (Map.Entry<String, String> oneProp : this) {
paramValue.append(oneProp.getKey()).append("=");
String value = oneProp.getValue().replaceAll("\\\\", "\\\\\\\\");
value = UtilHandlers.escapePropertyValue(value);
paramValue.append(value).append(":");
}
return paramValue.toString();
}

static Map<String, String> toPropertyEntry(String name, String value) {
Map<String, String> result = new HashMap<>();
result.put("name", name);
result.put("value", value);
return result;
}

static PropertyList fromList(List<Map<String, String>> propertyList) {
PropertyList result = new PropertyList();
for (Map<String, String> entry : propertyList) {
result.put(entry.get("name"), entry.get("value"));
}
return result;
}

static PropertyList fromMap(Map<String, String> map) {
PropertyList result = new PropertyList();
result.properties.putAll(map);
return result;
}
}
Loading