Repository: rucio/rucio
Issue: Add new rule notification mode P to schema validator

Motivation
----------
The new mode has been added, but the schema validator was not updated.



Changed files:
lib/rucio/common/schema/atlas.py, lib/rucio/common/schema/icecube.py, lib/rucio/common/schema/domatpc.py, lib/rucio/common/schema/cms.py, lib/rucio/common/schema/belleii.py, lib/rucio/common/schema/generic.py

diff --git a/lib/rucio/common/schema/atlas.py b/lib/rucio/common/schema/atlas.py
index 63b2a06c2..b409dda0f 100644
--- a/lib/rucio/common/schema/atlas.py
+++ b/lib/rucio/common/schema/atlas.py
@@ -14,7 +14,7 @@
 #
 # Authors:
 # - Vincent Garonne <vgaronne@gmail.com>, 2017
-# - Mario Lassnig <mario.lassnig@cern.ch>, 2018
+# - Mario Lassnig <mario.lassnig@cern.ch>, 2018-2019
 #
 # PY3K COMPATIBLE
 
@@ -113,7 +113,7 @@ GROUPING = {"description": "Rule grouping",
 
 NOTIFY = {"description": "Rule notification setting",
           "type": ["string", "null"],
-          "enum": ["Y", "C", "N", None]}
+          "enum": ["Y", "C", "N", "P", None]}
 
 COMMENT = {"description": "Rule comment",
            "type": ["string", "null"],
diff --git a/lib/rucio/common/schema/belleii.py b/lib/rucio/common/schema/belleii.py
index e8b0a2ae7..349dd32c4 100644
--- a/lib/rucio/common/schema/belleii.py
+++ b/lib/rucio/common/schema/belleii.py
@@ -1,20 +1,22 @@
-'''
-  Copyright European Organization for Nuclear Research (CERN)
-
-  Licensed under the Apache License, Version 2.0 (the "License");
-  You may not use this file except in compliance with the License.
-  You may obtain a copy of the License at
-  http://www.apache.org/licenses/LICENSE-2.0
-
-  Authors:
-  - Vincent Garonne, <vincent.garonne@cern.ch>, 2013-2017
-  - Cedric Serfon, <cedric.serfon@cern.ch>, 2014-2015, 2017
-  - Joaquin Bogado, <joaquin.bogado@cern.ch>, 2015
-  - Mario Lassnig, <mario.lassnig@cern.ch>, 2015
-  - Martin Barisits, <martin.barisits@cern.ch>, 2016
-
-  PY3K COMPATIBLE
-'''
+# Copyright 2019 CERN for the benefit of the ATLAS collaboration.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# Authors:
+# - Martin Barisits <martin.barisits@cern.ch>, 2019
+# - Mario Lassnig <mario.lassnig@cern.ch>, 2019
+#
+# PY3K COMPATIBLE
 
 from jsonschema import validate, ValidationError
 
@@ -110,7 +112,7 @@ GROUPING = {"description": "Rule grouping",
 
 NOTIFY = {"description": "Rule notification setting",
           "type": ["string", "null"],
-          "enum": ["Y", "C", "N", None]}
+          "enum": ["Y", "C", "N", "P", None]}
 
 COMMENT = {"description": "Rule comment",
            "type": ["string", "null"],
diff --git a/lib/rucio/common/schema/cms.py b/lib/rucio/common/schema/cms.py
index 5e669c4d2..8212544a5 100644
--- a/lib/rucio/common/schema/cms.py
+++ b/lib/rucio/common/schema/cms.py
@@ -1,21 +1,27 @@
-'''
-  Copyright European Organization for Nuclear Research (CERN)
-
-  Licensed under the Apache License, Version 2.0 (the "License");
-  You may not use this file except in compliance with the License.
-  You may obtain a copy of the License at
-  http://www.apache.org/licenses/LICENSE-2.0
-
-  Authors:
-  - Vincent Garonne, <vincent.garonne@cern.ch>, 2013-2017
-  - Cedric Serfon, <cedric.serfon@cern.ch>, 2014-2015, 2017
-  - Joaquin Bogado, <joaquin.bogado@cern.ch>, 2015
-  - Mario Lassnig, <mario.lassnig@cern.ch>, 2015
-  - Martin Barisits, <martin.barisits@cern.ch>, 2016
-  - Eric Vaandering, <ewv@fnal.gov>, 2018
-
-  PY3K COMPATIBLE
-'''
+# Copyright 2017-2019 CERN for the benefit of the ATLAS collaboration.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# Authors:
+# - Vincent Garonne <vgaronne@gmail.com>, 2017
+# - Eric Vaandering <ericvaandering@gmail.com>, 2018
+# - sartiran <root@polgrid107.in2p3.fr>, 2018
+# - Hannes Hansen <hannes.jakob.hansen@cern.ch>, 2018
+# - Sartirana Andrea <sartiran@llr.in2p3.fr>, 2018
+# - Martin Barisits <martin.barisits@cern.ch>, 2019
+# - Mario Lassnig <mario.lassnig@cern.ch>, 2019
+#
+# PY3K COMPATIBLE
 
 from jsonschema import validate, ValidationError
 
@@ -111,7 +117,7 @@ GROUPING = {"description": "Rule grouping",
 
 NOTIFY = {"description": "Rule notification setting",
           "type": ["string", "null"],
-          "enum": ["Y", "C", "N", None]}
+          "enum": ["Y", "C", "N", "P", None]}
 
 COMMENT = {"description": "Rule comment",
            "type": ["string", "null"],
diff --git a/lib/rucio/common/schema/domatpc.py b/lib/rucio/common/schema/domatpc.py
index 71ce5c057..30cc92c57 100644
--- a/lib/rucio/common/schema/domatpc.py
+++ b/lib/rucio/common/schema/domatpc.py
@@ -14,6 +14,7 @@
 #
 # Authors:
 # - Thomas Beermann <thomas.beermann@cern.ch>, 2019
+# - Mario Lassnig <mario.lassnig@cern.ch>, 2019
 #
 # PY3K COMPATIBLE
 
@@ -106,7 +107,7 @@ GROUPING = {"description": "Rule grouping",
 
 NOTIFY = {"description": "Rule notification setting",
           "type": ["string", "null"],
-          "enum": ["Y", "C", "N", None]}
+          "enum": ["Y", "C", "N", "P", None]}
 
 COMMENT = {"description": "Rule comment",
            "type": ["string", "null"],
diff --git a/lib/rucio/common/schema/generic.py b/lib/rucio/common/schema/generic.py
index b2baf5292..47cfcb822 100644
--- a/lib/rucio/common/schema/generic.py
+++ b/lib/rucio/common/schema/generic.py
@@ -1,20 +1,24 @@
-'''
-  Copyright European Organization for Nuclear Research (CERN)
-
-  Licensed under the Apache License, Version 2.0 (the "License");
-  You may not use this file except in compliance with the License.
-  You may obtain a copy of the License at
-  http://www.apache.org/licenses/LICENSE-2.0
-
-  Authors:
-  - Vincent Garonne, <vincent.garonne@cern.ch>, 2013-2017
-  - Cedric Serfon, <cedric.serfon@cern.ch>, 2014-2015, 2017
-  - Joaquin Bogado, <joaquin.bogado@cern.ch>, 2015
-  - Mario Lassnig, <mario.lassnig@cern.ch>, 2015
-  - Martin Barisits, <martin.barisits@cern.ch>, 2016
-
-  PY3K COMPATIBLE
-'''
+# Copyright 2017-2019 CERN for the benefit of the ATLAS collaboration.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# Authors:
+# - Vincent Garonne <vgaronne@gmail.com>, 2017
+# - Hannes Hansen <hannes.jakob.hansen@cern.ch>, 2018
+# - Robert Illingworth <illingwo@fnal.gov>, 2018
+# - Mario Lassnig <mario.lassnig@cern.ch>, 2019
+#
+# PY3K COMPATIBLE
 
 from jsonschema import validate, ValidationError
 
@@ -110,7 +114,7 @@ GROUPING = {"description": "Rule grouping",
 
 NOTIFY = {"description": "Rule notification setting",
           "type": ["string", "null"],
-          "enum": ["Y", "C", "N", None]}
+          "enum": ["Y", "C", "N", "P", None]}
 
 COMMENT = {"description": "Rule comment",
            "type": ["string", "null"],
diff --git a/lib/rucio/common/schema/icecube.py b/lib/rucio/common/schema/icecube.py
index d2efd2348..28774e9a5 100644
--- a/lib/rucio/common/schema/icecube.py
+++ b/lib/rucio/common/schema/icecube.py
@@ -1,21 +1,24 @@
-'''
-  Copyright European Organization for Nuclear Research (CERN)
-
-  Licensed under the Apache License, Version 2.0 (the "License");
-  You may not use this file except in compliance with the License.
-  You may obtain a copy of the License at
-  http://www.apache.org/licenses/LICENSE-2.0
-
-  Authors:
-  - Vincent Garonne, <vincent.garonne@cern.ch>, 2013-2017
-  - Cedric Serfon, <cedric.serfon@cern.ch>, 2014-2015, 2017
-  - Joaquin Bogado, <joaquin.bogado@cern.ch>, 2015
-  - Mario Lassnig, <mario.lassnig@cern.ch>, 2015
-  - Martin Barisits, <martin.barisits@cern.ch>, 2016
-  - Edgar Fajardo, <emfajard@ucsd,edu>, 2018
-
-  PY3K COMPATIBLE
-'''
+# Copyright 2018-2019 CERN for the benefit of the ATLAS collaboration.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# Authors:
+# - efajardo <efajardo@physics.ucsd.edu>, 2018
+# - Hannes Hansen <hannes.jakob.hansen@cern.ch>, 2018
+# - Robert Illingworth <illingwo@fnal.gov>, 2018
+# - Mario Lassnig <mario.lassnig@cern.ch>, 2019
+#
+# PY3K COMPATIBLE
 
 from jsonschema import validate, ValidationError
 
@@ -111,7 +114,7 @@ GROUPING = {"description": "Rule grouping",
 
 NOTIFY = {"description": "Rule notification setting",
           "type": ["string", "null"],
-          "enum": ["Y", "C", "N", None]}
+          "enum": ["Y", "C", "N", "P", None]}
 
 COMMENT = {"description": "Rule comment",
            "type": ["string", "null"],