-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update auto test with bpc, am, vm from last auto tests
- Loading branch information
Rodriguez
committed
Nov 6, 2023
1 parent
f4ff7ac
commit d1a1baf
Showing
14 changed files
with
130 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
from panduza import Client, Platform | ||
|
||
from robotlibcore import keyword | ||
from robot.libraries.BuiltIn import BuiltIn | ||
|
||
class KeywordsPlatform(object): | ||
|
||
# --- | ||
|
||
@keyword | ||
def panduza_platform_load_dtree(self, platform_alias, dtree): | ||
""" | ||
""" | ||
p = Platform(alias=platform_alias) | ||
p.dtree.content.set(dtree) | ||
|
||
# --- | ||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,26 @@ | ||
|
||
|
||
FAKE_INTERFACES_DTREE={ | ||
"devices": [ | ||
{ | ||
"ref": "Panduza.FakeBps", | ||
"settings": { | ||
"number_of_channel": 2 | ||
} | ||
} | ||
] | ||
} | ||
|
||
PZA_ALIASES={ | ||
|
||
"local": { | ||
"url": "localhost", | ||
"port": 1883, | ||
"interfaces": { | ||
"fake_ammeter_0": "pza/default/Panduza_FakeBps/:channel_0:_am", | ||
"fake_voltmeter_0": "pza/default/Panduza_FakeBps/:channel_0:_vm", | ||
"fake_bpc_0": "pza/default/Panduza_FakeBps/:channel_0:_ctrl", | ||
} | ||
} | ||
} | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import json | ||
from panduza import Core | ||
from hamcrest import assert_that, has_length, has_key, equal_to | ||
|
||
# --- | ||
|
||
def create_test_platform_alias_from_scan(scan_json, alias_name): | ||
topic = next(iter(scan_json.keys())) | ||
platform_alias = { | ||
"test_server": { | ||
"url": "localhost", "port": 1883, | ||
"interfaces": { | ||
alias_name: topic | ||
} | ||
} | ||
} | ||
Core.LoadAliases(platform_alias) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters