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

[v6r21] Add DN list from lhcb_pilot group to json file #4008

Merged
merged 11 commits into from
Apr 14, 2019

Conversation

wkrzemien
Copy link
Collaborator

BEGINRELEASENOTES
WorkloadManagementSystem
CHANGE: Modification of utility function PilotCStoJSONSynchronizer. The modification allows to add information to created json file about the DNs fields of users belonging to 'lhcb_pilot' group. This information is needed for the second level authorization used in the Pilot Logger architecture.
Also, some basic unit tests are added.

ENDRELEASENOTES

@coveralls
Copy link

coveralls commented Mar 31, 2019

Coverage Status

Coverage decreased (-0.4%) to 21.784% when pulling 4e1e334 on wkrzemien:addDNInformationToJson into ba87fcb on DIRACGrid:rel-v6r21.

@wkrzemien wkrzemien changed the title [LATER?] Add DN list from lhcb_pilot group to json file [v6r21] Add DN list from lhcb_pilot group to json file Apr 3, 2019
fstagni
fstagni previously approved these changes Apr 4, 2019
@atsareg
Copy link
Contributor

atsareg commented Apr 8, 2019

This is an LHCb specific fix. To make it generic, one should go through the Operations section and look up for all the Pilot sections and GenericPilotDN option inside them

@fstagni fstagni dismissed their stale review April 8, 2019 20:29

Please follow @atsareg comment

@wkrzemien
Copy link
Collaborator Author

Ok. I change it according to the suggestion. I hope it is fine now.

@@ -171,6 +170,20 @@ def _getCSDict(self):

return pilotDict

def _getDNs(self, certGroupName):
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

If not, please anyway update that module, do not add generic functions to this one. And possibly port the test you did here, to there.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, seems the same. The whole function is not needed anyway since it is not used anymore, so I removed it.

@fstagni
Copy link
Contributor

fstagni commented Apr 9, 2019

just fix the format to make pycodestyle happy.

@wkrzemien
Copy link
Collaborator Author

Damm sorry. Let's see if it is fine now.

@atsareg atsareg merged commit 5021340 into DIRACGrid:rel-v6r21 Apr 14, 2019
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.

None yet

5 participants