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

[JENKINS-60551] Copy constructor test should check all fields #668

Merged
merged 2 commits into from
Dec 20, 2019

Conversation

Vlatombe
Copy link
Member

@Vlatombe Vlatombe commented Dec 20, 2019

JENKINS-60551

  • Default jelly values from java constants
  • Apply min values for readTimeout (15 sec) and connectTimeout (5 sec)
  • Add missing serverCertificate, readTimeout and capOnlyOnAlivePods to
    copy constructor

@Vlatombe Vlatombe requested a review from jglick December 20, 2019 13:50
PodTemplate pt = new PodTemplate();
pt.setName("podTemplate");

KubernetesCloud cloud = new KubernetesCloud("name");
cloud.setDefaultsProviderTemplate("default");
ArrayList<String> objectProperties = Lists.newArrayList("templates", "podRetention", "podLabels", "labels");
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This hunk should prevent any further unhandled field in the future.

* Default jelly values from java constants
* Apply min values for readTimeout (15 sec) and connectTimeout (5 sec)
* Add missing serverCertificate, readTimeout and capOnlyOnAlivePods to
copy constructor
@jglick
Copy link
Member

jglick commented Dec 20, 2019

@jglick
Copy link
Member

jglick commented Dec 20, 2019

Se also #625 (comment) & JENKINS-59984, though this is about cloud-level configuration rather than pods.

* Use XStream for copy constructor
* Convert fields with numeric input to f:number with minimum
* Validate integer are in expected ranges
@Vlatombe Vlatombe requested a review from jglick December 20, 2019 14:55
@Vlatombe Vlatombe merged commit e99a00c into jenkinsci:stable-1.21 Dec 20, 2019
@Vlatombe Vlatombe deleted the JENKINS-60551 branch December 20, 2019 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants