Adapt Axis integration to library refactoring (#110898)
* Adapt Axis integration to library refactoring * Bump axis to v49
This commit is contained in:
parent
2b3630b054
commit
c478b1416c
17 changed files with 403 additions and 199 deletions
|
@ -1,5 +1,6 @@
|
|||
"""Constants for Axis integration tests."""
|
||||
|
||||
from axis.vapix.models.api import CONTEXT
|
||||
|
||||
MAC = "00408C123456"
|
||||
FORMATTED_MAC = "00:40:8c:12:34:56"
|
||||
|
@ -12,6 +13,7 @@ DEFAULT_HOST = "1.2.3.4"
|
|||
API_DISCOVERY_RESPONSE = {
|
||||
"method": "getApiList",
|
||||
"apiVersion": "1.0",
|
||||
"context": CONTEXT,
|
||||
"data": {
|
||||
"apiList": [
|
||||
{"id": "api-discovery", "version": "1.0", "name": "API Discovery Service"},
|
||||
|
@ -38,27 +40,45 @@ APPLICATIONS_LIST_RESPONSE = """<reply result="ok">
|
|||
|
||||
BASIC_DEVICE_INFO_RESPONSE = {
|
||||
"apiVersion": "1.1",
|
||||
"context": CONTEXT,
|
||||
"data": {
|
||||
"propertyList": {
|
||||
"ProdNbr": "M1065-LW",
|
||||
"ProdType": "Network Camera",
|
||||
"SerialNumber": MAC,
|
||||
"Version": "9.80.1",
|
||||
"Architecture": "str",
|
||||
"Brand": "str",
|
||||
"BuildDate": "str",
|
||||
"HardwareID": "str",
|
||||
"ProdFullName": "str",
|
||||
"ProdShortName": "str",
|
||||
"ProdVariant": "str",
|
||||
"Soc": "str",
|
||||
"SocSerialNumber": "str",
|
||||
"WebURL": "str",
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
MQTT_CLIENT_RESPONSE = {
|
||||
"apiVersion": "1.0",
|
||||
"context": "some context",
|
||||
"method": "getClientStatus",
|
||||
"data": {"status": {"state": "active", "connectionStatus": "Connected"}},
|
||||
"apiVersion": "1.0",
|
||||
"context": CONTEXT,
|
||||
"data": {
|
||||
"status": {"state": "active", "connectionStatus": "Connected"},
|
||||
"config": {
|
||||
"server": {"protocol": "tcp", "host": "192.168.0.90", "port": 1883},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
PORT_MANAGEMENT_RESPONSE = {
|
||||
"apiVersion": "1.0",
|
||||
"method": "getPorts",
|
||||
"context": CONTEXT,
|
||||
"data": {
|
||||
"numberOfPorts": 1,
|
||||
"items": [
|
||||
|
@ -78,12 +98,13 @@ PORT_MANAGEMENT_RESPONSE = {
|
|||
VMD4_RESPONSE = {
|
||||
"apiVersion": "1.4",
|
||||
"method": "getConfiguration",
|
||||
"context": "Axis library",
|
||||
"context": CONTEXT,
|
||||
"data": {
|
||||
"cameras": [{"id": 1, "rotation": 0, "active": True}],
|
||||
"profiles": [
|
||||
{"filters": [], "camera": 1, "triggers": [], "name": "Profile 1", "uid": 1}
|
||||
],
|
||||
"configurationStatus": 2,
|
||||
},
|
||||
}
|
||||
|
||||
|
@ -102,6 +123,95 @@ root.Image.I0.Source=0
|
|||
root.Image.I1.Enabled=no
|
||||
root.Image.I1.Name=View Area 2
|
||||
root.Image.I1.Source=0
|
||||
root.Image.I0.Appearance.ColorEnabled=yes
|
||||
root.Image.I0.Appearance.Compression=30
|
||||
root.Image.I0.Appearance.MirrorEnabled=no
|
||||
root.Image.I0.Appearance.Resolution=1920x1080
|
||||
root.Image.I0.Appearance.Rotation=0
|
||||
root.Image.I0.MPEG.Complexity=50
|
||||
root.Image.I0.MPEG.ConfigHeaderInterval=1
|
||||
root.Image.I0.MPEG.FrameSkipMode=drop
|
||||
root.Image.I0.MPEG.ICount=1
|
||||
root.Image.I0.MPEG.PCount=31
|
||||
root.Image.I0.MPEG.UserDataEnabled=no
|
||||
root.Image.I0.MPEG.UserDataInterval=1
|
||||
root.Image.I0.MPEG.ZChromaQPMode=off
|
||||
root.Image.I0.MPEG.ZFpsMode=fixed
|
||||
root.Image.I0.MPEG.ZGopMode=fixed
|
||||
root.Image.I0.MPEG.ZMaxGopLength=300
|
||||
root.Image.I0.MPEG.ZMinFps=0
|
||||
root.Image.I0.MPEG.ZStrength=10
|
||||
root.Image.I0.MPEG.H264.Profile=high
|
||||
root.Image.I0.MPEG.H264.PSEnabled=no
|
||||
root.Image.I0.Overlay.Enabled=no
|
||||
root.Image.I0.Overlay.XPos=0
|
||||
root.Image.I0.Overlay.YPos=0
|
||||
root.Image.I0.Overlay.MaskWindows.Color=black
|
||||
root.Image.I0.RateControl.MaxBitrate=0
|
||||
root.Image.I0.RateControl.Mode=vbr
|
||||
root.Image.I0.RateControl.Priority=framerate
|
||||
root.Image.I0.RateControl.TargetBitrate=0
|
||||
root.Image.I0.SizeControl.MaxFrameSize=0
|
||||
root.Image.I0.Stream.Duration=0
|
||||
root.Image.I0.Stream.FPS=0
|
||||
root.Image.I0.Stream.NbrOfFrames=0
|
||||
root.Image.I0.Text.BGColor=black
|
||||
root.Image.I0.Text.ClockEnabled=no
|
||||
root.Image.I0.Text.Color=white
|
||||
root.Image.I0.Text.DateEnabled=no
|
||||
root.Image.I0.Text.Position=top
|
||||
root.Image.I0.Text.String=
|
||||
root.Image.I0.Text.TextEnabled=no
|
||||
root.Image.I0.Text.TextSize=medium
|
||||
root.Image.I0.TriggerData.AudioEnabled=yes
|
||||
root.Image.I0.TriggerData.MotionDetectionEnabled=yes
|
||||
root.Image.I0.TriggerData.MotionLevelEnabled=no
|
||||
root.Image.I0.TriggerData.TamperingEnabled=yes
|
||||
root.Image.I0.TriggerData.UserTriggers=
|
||||
root.Image.I1.Appearance.ColorEnabled=yes
|
||||
root.Image.I1.Appearance.Compression=30
|
||||
root.Image.I1.Appearance.MirrorEnabled=no
|
||||
root.Image.I1.Appearance.Resolution=1920x1080
|
||||
root.Image.I1.Appearance.Rotation=0
|
||||
root.Image.I1.MPEG.Complexity=50
|
||||
root.Image.I1.MPEG.ConfigHeaderInterval=1
|
||||
root.Image.I1.MPEG.FrameSkipMode=drop
|
||||
root.Image.I1.MPEG.ICount=1
|
||||
root.Image.I1.MPEG.PCount=31
|
||||
root.Image.I1.MPEG.UserDataEnabled=no
|
||||
root.Image.I1.MPEG.UserDataInterval=1
|
||||
root.Image.I1.MPEG.ZChromaQPMode=off
|
||||
root.Image.I1.MPEG.ZFpsMode=fixed
|
||||
root.Image.I1.MPEG.ZGopMode=fixed
|
||||
root.Image.I1.MPEG.ZMaxGopLength=300
|
||||
root.Image.I1.MPEG.ZMinFps=0
|
||||
root.Image.I1.MPEG.ZStrength=10
|
||||
root.Image.I1.MPEG.H264.Profile=high
|
||||
root.Image.I1.MPEG.H264.PSEnabled=no
|
||||
root.Image.I1.Overlay.Enabled=no
|
||||
root.Image.I1.Overlay.XPos=0
|
||||
root.Image.I1.Overlay.YPos=0
|
||||
root.Image.I1.RateControl.MaxBitrate=0
|
||||
root.Image.I1.RateControl.Mode=vbr
|
||||
root.Image.I1.RateControl.Priority=framerate
|
||||
root.Image.I1.RateControl.TargetBitrate=0
|
||||
root.Image.I1.SizeControl.MaxFrameSize=0
|
||||
root.Image.I1.Stream.Duration=0
|
||||
root.Image.I1.Stream.FPS=0
|
||||
root.Image.I1.Stream.NbrOfFrames=0
|
||||
root.Image.I1.Text.BGColor=black
|
||||
root.Image.I1.Text.ClockEnabled=no
|
||||
root.Image.I1.Text.Color=white
|
||||
root.Image.I1.Text.DateEnabled=no
|
||||
root.Image.I1.Text.Position=top
|
||||
root.Image.I1.Text.String=
|
||||
root.Image.I1.Text.TextEnabled=no
|
||||
root.Image.I1.Text.TextSize=medium
|
||||
root.Image.I1.TriggerData.AudioEnabled=yes
|
||||
root.Image.I1.TriggerData.MotionDetectionEnabled=yes
|
||||
root.Image.I1.TriggerData.MotionLevelEnabled=no
|
||||
root.Image.I1.TriggerData.TamperingEnabled=yes
|
||||
root.Image.I1.TriggerData.UserTriggers=
|
||||
"""
|
||||
|
||||
PORTS_RESPONSE = """root.Input.NbrOfInputs=1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue