Skip to content

Commit

Permalink
Placeholders for "IS-11 Stream Compatibility Management API", "IS-11 …
Browse files Browse the repository at this point in the history
…Interaction with IS-04", and "BCP-005-01 EDID to Receiver Capabilities Mapping", test suites
  • Loading branch information
garethsb committed Nov 3, 2022
1 parent c8ff610 commit 4b52d49
Show file tree
Hide file tree
Showing 5 changed files with 127 additions and 0 deletions.
17 changes: 17 additions & 0 deletions nmostesting/Config.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,17 @@
}
}
},
"is-11": {
"repo": "is-11",
"versions": ["v1.0"],
"default_version": "v1.0",
"apis": {
"streamcompatibility": {
"name": "Stream Compatibility Management API",
"raml": "StreamCompatibilityManagementAPI.raml"
}
}
},
"bcp-003-01": {
"repo": "nmos-secure-communication",
"versions": ["v1.0"],
Expand All @@ -275,6 +286,12 @@
}
}
},
"bcp-005-01": {
"repo": "bcp-005-01",
"versions": ["v1.0"],
"default_version": "v1.0",
"apis": {}
},
"nmos-parameter-registers": {
"repo": "nmos-parameter-registers",
"versions": ["main"],
Expand Down
30 changes: 30 additions & 0 deletions nmostesting/NMOSTesting.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@
from .suites import IS0901Test
from .suites import IS0902Test
# from .suites import IS1001Test
from .suites import IS1101Test
from .suites import IS1102Test
from .suites import BCP00301Test
from .suites import BCP0050101Test


FLASK_APPS = []
Expand Down Expand Up @@ -316,6 +319,25 @@
# }],
# "class": IS1001Test.IS1001Test
# },
"IS-11-01": {
"name": "IS-11 Stream Compatibility Management API",
"specs": [{
"spec_key": "is-11",
"api_key": "streamcompatibility"
}],
"class": IS1101Test.IS1101Test
},
"IS-11-02": {
"name": "IS-11 Interaction with IS-04",
"specs": [{
"spec_key": "is-04",
"api_key": "node"
}, {
"spec_key": "is-11",
"api_key": "streamcompatibility"
}],
"class": IS1102Test.IS1102Test
},
"BCP-003-01": {
"name": "BCP-003-01 Secure Communication",
"specs": [{
Expand All @@ -324,6 +346,14 @@
}],
"class": BCP00301Test.BCP00301Test
},
"BCP-005-01-01": {
"name": "BCP-005-01 EDID to Receiver Capabilities Mapping",
"specs": [{
"spec_key": "is-04",
"api_key": "node"
}],
"class": BCP0050101Test.BCP0050101Test
},
}


Expand Down
26 changes: 26 additions & 0 deletions nmostesting/suites/BCP0050101Test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Copyright (C) 2022 Advanced Media Workflow Association
#
# 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.

from ..GenericTest import GenericTest

NODE_API_KEY = "node"


class BCP0050101Test(GenericTest):
"""
Runs Node Tests covering BCP-005-01
"""
def __init__(self, apis):
GenericTest.__init__(self, apis)
self.node_url = self.apis[NODE_API_KEY]["url"]
26 changes: 26 additions & 0 deletions nmostesting/suites/IS1101Test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Copyright (C) 2022 Advanced Media Workflow Association
#
# 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.

from ..GenericTest import GenericTest

COMPAT_API_KEY = "streamcompatibility"


class IS1101Test(GenericTest):
"""
Runs Node Tests covering IS-11
"""
def __init__(self, apis):
GenericTest.__init__(self, apis)
self.compat_url = self.apis[COMPAT_API_KEY]["url"]
28 changes: 28 additions & 0 deletions nmostesting/suites/IS1102Test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright (C) 2022 Advanced Media Workflow Association
#
# 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.

from ..GenericTest import GenericTest

NODE_API_KEY = "node"
COMPAT_API_KEY = "streamcompatibility"


class IS1102Test(GenericTest):
"""
Runs Node Tests covering both IS-04 and IS-11
"""
def __init__(self, apis):
GenericTest.__init__(self, apis,)
self.node_url = self.apis[NODE_API_KEY]["url"]
self.compat_url = self.apis[COMPAT_API_KEY]["url"]

0 comments on commit 4b52d49

Please sign in to comment.