summaryrefslogtreecommitdiffstats
path: root/conductor
diff options
context:
space:
mode:
Diffstat (limited to 'conductor')
-rw-r--r--conductor/conductor/api/controllers/root.py3
-rw-r--r--conductor/conductor/api/controllers/v1/__init__.py18
-rw-r--r--conductor/conductor/cmd/__init__.py18
-rw-r--r--conductor/conductor/common/music/model/__init__.py19
-rw-r--r--conductor/conductor/conf/__init__.py18
-rw-r--r--conductor/conductor/data/plugins/__init__.py18
-rw-r--r--conductor/conductor/data/plugins/inventory_provider/__init__.py18
-rw-r--r--conductor/conductor/data/plugins/service_controller/__init__.py19
-rwxr-xr-xconductor/conductor/solver/optimizer/__init__.py18
-rwxr-xr-xconductor/conductor/solver/optimizer/constraints/__init__.py19
-rwxr-xr-xconductor/conductor/solver/request/__init__.py18
-rwxr-xr-xconductor/conductor/solver/request/functions/__init__.py18
-rw-r--r--conductor/conductor/solver/request/functions/cloud_version.py1
-rwxr-xr-xconductor/conductor/solver/request/functions/distance_between.py2
-rwxr-xr-xconductor/conductor/solver/request/parser.py9
-rwxr-xr-xconductor/conductor/solver/resource/__init__.py18
-rw-r--r--conductor/conductor/solver/service.py3
-rw-r--r--conductor/conductor/solver/simulators/__init__.py18
-rwxr-xr-xconductor/conductor/solver/simulators/a_and_ai/__init__.py18
-rwxr-xr-xconductor/conductor/solver/simulators/valet/__init__.py18
-rwxr-xr-xconductor/conductor/solver/utils/__init__.py18
-rw-r--r--conductor/conductor/tests/__init__.py19
-rw-r--r--conductor/conductor/tests/functional/__init__.py18
-rw-r--r--conductor/conductor/tests/integration/__init__.py18
-rw-r--r--conductor/conductor/tests/tempest/__init__.py18
-rw-r--r--conductor/conductor/tests/unit/__init__.py18
-rw-r--r--conductor/conductor/tests/unit/test_aai.py44
-rw-r--r--conductor/conductor/tests/unit/test_sample.py8
-rw-r--r--conductor/tox.ini5
29 files changed, 63 insertions, 394 deletions
diff --git a/conductor/conductor/api/controllers/root.py b/conductor/conductor/api/controllers/root.py
index d7c4a7e..abf3f20 100644
--- a/conductor/conductor/api/controllers/root.py
+++ b/conductor/conductor/api/controllers/root.py
@@ -50,7 +50,8 @@ def version_descriptor(base_url, version, released_on):
'id': version,
'links': [
{'href': url, 'rel': 'self', },
- {'href': 'https://wiki.onap.org/pages/viewpage.action?pageId=16005528',
+ {'href': 'https://wiki.onap.org/pages'
+ '/viewpage.action?pageId=16005528',
'rel': 'describedby', 'type': 'text/html', }],
'media-types': [
{'base': 'application/json', 'type': MEDIA_TYPE_JSON % version, }],
diff --git a/conductor/conductor/api/controllers/v1/__init__.py b/conductor/conductor/api/controllers/v1/__init__.py
index 51efce1..e69de29 100644
--- a/conductor/conductor/api/controllers/v1/__init__.py
+++ b/conductor/conductor/api/controllers/v1/__init__.py
@@ -1,18 +0,0 @@
-#
-# -------------------------------------------------------------------------
-# Copyright (c) 2015-2017 AT&T Intellectual Property
-#
-# 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.
-#
-# -------------------------------------------------------------------------
-#
diff --git a/conductor/conductor/cmd/__init__.py b/conductor/conductor/cmd/__init__.py
index 51efce1..e69de29 100644
--- a/conductor/conductor/cmd/__init__.py
+++ b/conductor/conductor/cmd/__init__.py
@@ -1,18 +0,0 @@
-#
-# -------------------------------------------------------------------------
-# Copyright (c) 2015-2017 AT&T Intellectual Property
-#
-# 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.
-#
-# -------------------------------------------------------------------------
-#
diff --git a/conductor/conductor/common/music/model/__init__.py b/conductor/conductor/common/music/model/__init__.py
index f2bbdfd..e69de29 100644
--- a/conductor/conductor/common/music/model/__init__.py
+++ b/conductor/conductor/common/music/model/__init__.py
@@ -1,19 +0,0 @@
-#
-# -------------------------------------------------------------------------
-# Copyright (c) 2015-2017 AT&T Intellectual Property
-#
-# 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.
-#
-# -------------------------------------------------------------------------
-#
-
diff --git a/conductor/conductor/conf/__init__.py b/conductor/conductor/conf/__init__.py
index 51efce1..e69de29 100644
--- a/conductor/conductor/conf/__init__.py
+++ b/conductor/conductor/conf/__init__.py
@@ -1,18 +0,0 @@
-#
-# -------------------------------------------------------------------------
-# Copyright (c) 2015-2017 AT&T Intellectual Property
-#
-# 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.
-#
-# -------------------------------------------------------------------------
-#
diff --git a/conductor/conductor/data/plugins/__init__.py b/conductor/conductor/data/plugins/__init__.py
index 51efce1..e69de29 100644
--- a/conductor/conductor/data/plugins/__init__.py
+++ b/conductor/conductor/data/plugins/__init__.py
@@ -1,18 +0,0 @@
-#
-# -------------------------------------------------------------------------
-# Copyright (c) 2015-2017 AT&T Intellectual Property
-#
-# 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.
-#
-# -------------------------------------------------------------------------
-#
diff --git a/conductor/conductor/data/plugins/inventory_provider/__init__.py b/conductor/conductor/data/plugins/inventory_provider/__init__.py
index 51efce1..e69de29 100644
--- a/conductor/conductor/data/plugins/inventory_provider/__init__.py
+++ b/conductor/conductor/data/plugins/inventory_provider/__init__.py
@@ -1,18 +0,0 @@
-#
-# -------------------------------------------------------------------------
-# Copyright (c) 2015-2017 AT&T Intellectual Property
-#
-# 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.
-#
-# -------------------------------------------------------------------------
-#
diff --git a/conductor/conductor/data/plugins/service_controller/__init__.py b/conductor/conductor/data/plugins/service_controller/__init__.py
index f2bbdfd..e69de29 100644
--- a/conductor/conductor/data/plugins/service_controller/__init__.py
+++ b/conductor/conductor/data/plugins/service_controller/__init__.py
@@ -1,19 +0,0 @@
-#
-# -------------------------------------------------------------------------
-# Copyright (c) 2015-2017 AT&T Intellectual Property
-#
-# 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.
-#
-# -------------------------------------------------------------------------
-#
-
diff --git a/conductor/conductor/solver/optimizer/__init__.py b/conductor/conductor/solver/optimizer/__init__.py
index 51efce1..e69de29 100755
--- a/conductor/conductor/solver/optimizer/__init__.py
+++ b/conductor/conductor/solver/optimizer/__init__.py
@@ -1,18 +0,0 @@
-#
-# -------------------------------------------------------------------------
-# Copyright (c) 2015-2017 AT&T Intellectual Property
-#
-# 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.
-#
-# -------------------------------------------------------------------------
-#
diff --git a/conductor/conductor/solver/optimizer/constraints/__init__.py b/conductor/conductor/solver/optimizer/constraints/__init__.py
index f2bbdfd..e69de29 100755
--- a/conductor/conductor/solver/optimizer/constraints/__init__.py
+++ b/conductor/conductor/solver/optimizer/constraints/__init__.py
@@ -1,19 +0,0 @@
-#
-# -------------------------------------------------------------------------
-# Copyright (c) 2015-2017 AT&T Intellectual Property
-#
-# 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.
-#
-# -------------------------------------------------------------------------
-#
-
diff --git a/conductor/conductor/solver/request/__init__.py b/conductor/conductor/solver/request/__init__.py
index 51efce1..e69de29 100755
--- a/conductor/conductor/solver/request/__init__.py
+++ b/conductor/conductor/solver/request/__init__.py
@@ -1,18 +0,0 @@
-#
-# -------------------------------------------------------------------------
-# Copyright (c) 2015-2017 AT&T Intellectual Property
-#
-# 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.
-#
-# -------------------------------------------------------------------------
-#
diff --git a/conductor/conductor/solver/request/functions/__init__.py b/conductor/conductor/solver/request/functions/__init__.py
index 51efce1..e69de29 100755
--- a/conductor/conductor/solver/request/functions/__init__.py
+++ b/conductor/conductor/solver/request/functions/__init__.py
@@ -1,18 +0,0 @@
-#
-# -------------------------------------------------------------------------
-# Copyright (c) 2015-2017 AT&T Intellectual Property
-#
-# 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.
-#
-# -------------------------------------------------------------------------
-#
diff --git a/conductor/conductor/solver/request/functions/cloud_version.py b/conductor/conductor/solver/request/functions/cloud_version.py
index 564468b..177aa2d 100644
--- a/conductor/conductor/solver/request/functions/cloud_version.py
+++ b/conductor/conductor/solver/request/functions/cloud_version.py
@@ -19,7 +19,6 @@
#
-
class CloudVersion(object):
def __init__(self, _type):
diff --git a/conductor/conductor/solver/request/functions/distance_between.py b/conductor/conductor/solver/request/functions/distance_between.py
index 8cf3f86..66413be 100755
--- a/conductor/conductor/solver/request/functions/distance_between.py
+++ b/conductor/conductor/solver/request/functions/distance_between.py
@@ -18,8 +18,6 @@
# -------------------------------------------------------------------------
#
-
-
from conductor.solver.utils import utils
diff --git a/conductor/conductor/solver/request/parser.py b/conductor/conductor/solver/request/parser.py
index 5c422f1..0c9ffde 100755
--- a/conductor/conductor/solver/request/parser.py
+++ b/conductor/conductor/solver/request/parser.py
@@ -21,16 +21,15 @@
# import json
import operator
+
from oslo_log import log
-import random
-# import sys
from conductor.solver.optimizer.constraints \
import access_distance as access_dist
from conductor.solver.optimizer.constraints \
- import cloud_distance as cloud_dist
-from conductor.solver.optimizer.constraints \
import attribute as attribute_constraint
+from conductor.solver.optimizer.constraints \
+ import cloud_distance as cloud_dist
# from conductor.solver.optimizer.constraints import constraint
from conductor.solver.optimizer.constraints \
import inventory_group
@@ -42,6 +41,8 @@ from conductor.solver.request.functions import cloud_version
from conductor.solver.request.functions import distance_between
from conductor.solver.request import objective
+# import sys
+
# from conductor.solver.request.functions import distance_between
# from conductor.solver.request import objective
# from conductor.solver.resource import region
diff --git a/conductor/conductor/solver/resource/__init__.py b/conductor/conductor/solver/resource/__init__.py
index 51efce1..e69de29 100755
--- a/conductor/conductor/solver/resource/__init__.py
+++ b/conductor/conductor/solver/resource/__init__.py
@@ -1,18 +0,0 @@
-#
-# -------------------------------------------------------------------------
-# Copyright (c) 2015-2017 AT&T Intellectual Property
-#
-# 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.
-#
-# -------------------------------------------------------------------------
-#
diff --git a/conductor/conductor/solver/service.py b/conductor/conductor/solver/service.py
index d0144da..46d2e28 100644
--- a/conductor/conductor/solver/service.py
+++ b/conductor/conductor/solver/service.py
@@ -267,7 +267,8 @@ class SolverService(cotyledon.Service):
"sriov_automation":
resource.get("sriov_automation"),
"cloud_owner": resource.get("cloud_owner"),
- 'cloud_version': resource.get("cloud_region_version")},
+ 'cloud_version':
+ resource.get("cloud_region_version")},
}
if rec["candidate"]["inventory_type"] == "service":
rec["attributes"]["host_id"] = resource.get("host_id")
diff --git a/conductor/conductor/solver/simulators/__init__.py b/conductor/conductor/solver/simulators/__init__.py
index 51efce1..e69de29 100644
--- a/conductor/conductor/solver/simulators/__init__.py
+++ b/conductor/conductor/solver/simulators/__init__.py
@@ -1,18 +0,0 @@
-#
-# -------------------------------------------------------------------------
-# Copyright (c) 2015-2017 AT&T Intellectual Property
-#
-# 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.
-#
-# -------------------------------------------------------------------------
-#
diff --git a/conductor/conductor/solver/simulators/a_and_ai/__init__.py b/conductor/conductor/solver/simulators/a_and_ai/__init__.py
index 51efce1..e69de29 100755
--- a/conductor/conductor/solver/simulators/a_and_ai/__init__.py
+++ b/conductor/conductor/solver/simulators/a_and_ai/__init__.py
@@ -1,18 +0,0 @@
-#
-# -------------------------------------------------------------------------
-# Copyright (c) 2015-2017 AT&T Intellectual Property
-#
-# 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.
-#
-# -------------------------------------------------------------------------
-#
diff --git a/conductor/conductor/solver/simulators/valet/__init__.py b/conductor/conductor/solver/simulators/valet/__init__.py
index 51efce1..e69de29 100755
--- a/conductor/conductor/solver/simulators/valet/__init__.py
+++ b/conductor/conductor/solver/simulators/valet/__init__.py
@@ -1,18 +0,0 @@
-#
-# -------------------------------------------------------------------------
-# Copyright (c) 2015-2017 AT&T Intellectual Property
-#
-# 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.
-#
-# -------------------------------------------------------------------------
-#
diff --git a/conductor/conductor/solver/utils/__init__.py b/conductor/conductor/solver/utils/__init__.py
index 51efce1..e69de29 100755
--- a/conductor/conductor/solver/utils/__init__.py
+++ b/conductor/conductor/solver/utils/__init__.py
@@ -1,18 +0,0 @@
-#
-# -------------------------------------------------------------------------
-# Copyright (c) 2015-2017 AT&T Intellectual Property
-#
-# 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.
-#
-# -------------------------------------------------------------------------
-#
diff --git a/conductor/conductor/tests/__init__.py b/conductor/conductor/tests/__init__.py
index f2bbdfd..e69de29 100644
--- a/conductor/conductor/tests/__init__.py
+++ b/conductor/conductor/tests/__init__.py
@@ -1,19 +0,0 @@
-#
-# -------------------------------------------------------------------------
-# Copyright (c) 2015-2017 AT&T Intellectual Property
-#
-# 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.
-#
-# -------------------------------------------------------------------------
-#
-
diff --git a/conductor/conductor/tests/functional/__init__.py b/conductor/conductor/tests/functional/__init__.py
index 51efce1..e69de29 100644
--- a/conductor/conductor/tests/functional/__init__.py
+++ b/conductor/conductor/tests/functional/__init__.py
@@ -1,18 +0,0 @@
-#
-# -------------------------------------------------------------------------
-# Copyright (c) 2015-2017 AT&T Intellectual Property
-#
-# 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.
-#
-# -------------------------------------------------------------------------
-#
diff --git a/conductor/conductor/tests/integration/__init__.py b/conductor/conductor/tests/integration/__init__.py
index 51efce1..e69de29 100644
--- a/conductor/conductor/tests/integration/__init__.py
+++ b/conductor/conductor/tests/integration/__init__.py
@@ -1,18 +0,0 @@
-#
-# -------------------------------------------------------------------------
-# Copyright (c) 2015-2017 AT&T Intellectual Property
-#
-# 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.
-#
-# -------------------------------------------------------------------------
-#
diff --git a/conductor/conductor/tests/tempest/__init__.py b/conductor/conductor/tests/tempest/__init__.py
deleted file mode 100644
index 51efce1..0000000
--- a/conductor/conductor/tests/tempest/__init__.py
+++ /dev/null
@@ -1,18 +0,0 @@
-#
-# -------------------------------------------------------------------------
-# Copyright (c) 2015-2017 AT&T Intellectual Property
-#
-# 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.
-#
-# -------------------------------------------------------------------------
-#
diff --git a/conductor/conductor/tests/unit/__init__.py b/conductor/conductor/tests/unit/__init__.py
index 51efce1..e69de29 100644
--- a/conductor/conductor/tests/unit/__init__.py
+++ b/conductor/conductor/tests/unit/__init__.py
@@ -1,18 +0,0 @@
-#
-# -------------------------------------------------------------------------
-# Copyright (c) 2015-2017 AT&T Intellectual Property
-#
-# 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.
-#
-# -------------------------------------------------------------------------
-#
diff --git a/conductor/conductor/tests/unit/test_aai.py b/conductor/conductor/tests/unit/test_aai.py
new file mode 100644
index 0000000..65d348d
--- /dev/null
+++ b/conductor/conductor/tests/unit/test_aai.py
@@ -0,0 +1,44 @@
+from __future__ import absolute_import
+
+import json
+import unittest
+
+from conductor.solver.optimizer.constraints.access_distance import AccessDistance
+from conductor.solver.request.parser import Parser
+
+
+class TestConstaintAccessDistance(unittest.TestCase, AccessDistance):
+
+ def setUp(self):
+
+ self.parser = Parser()
+ self.parserExpected = {
+ "demands": {},
+ "locations": {},
+ "cei": "null",
+ "region_gen": "null",
+ "request_id": "null",
+ "objective": "null",
+ "constraints": {}
+ }
+ self.test_parser_template = self.parser.parse_template()
+
+ def test_correct_parser_attributes(self):
+ a = []
+ b = []
+
+ for k in sorted(self.parserExpected):
+ a.append(k)
+
+ for key, values in sorted(vars(self.parser).items()):
+ b.append(key)
+ a.sort()
+ b.sort()
+
+ self.assertEquals(a, b)
+
+ def tearDown(self):
+ pass
+
+if __name__ == '__main__':
+ unittest.main() \ No newline at end of file
diff --git a/conductor/conductor/tests/unit/test_sample.py b/conductor/conductor/tests/unit/test_sample.py
new file mode 100644
index 0000000..2e05fbb
--- /dev/null
+++ b/conductor/conductor/tests/unit/test_sample.py
@@ -0,0 +1,8 @@
+import unittest
+
+def fun(x):
+ return x + 1
+
+class SimpleIntegralIncrementTest(unittest.TestCase):
+ def test(self):
+ self.assertEqual(fun(3), 4) \ No newline at end of file
diff --git a/conductor/tox.ini b/conductor/tox.ini
index 35bea94..498770f 100644
--- a/conductor/tox.ini
+++ b/conductor/tox.ini
@@ -1,9 +1,8 @@
[tox]
minversion = 1.6
skipsdist = True
-# envlist = py35,py27,functional,pep8
+#envlist = py35,py27,functional,pep8
envlist = py27,pep8
-
[testenv]
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
@@ -45,7 +44,7 @@ setenv = PYTHONHASHSEED=0
commands = bash -x oslo_debug_helper {posargs}
[flake8]
-ignore = H301,E401
+ignore = H301,E401,E226,E302,E41,E303,E501,E265,E125,E101,E131,E127,E306,
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,install-guide
show-source = True