MCPcopy Create free account
hub / github.com/1jehuang/jcode / FakeSsm

Class FakeSsm

scripts/phone-server/test_wake_lambda.py:38–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36
37
38class FakeSsm:
39 class exceptions:
40 InvocationDoesNotExist = InvocationDoesNotExist
41
42 def describe_instance_information(self, **_kwargs):
43 return {"InstanceInformationList": [{"PingStatus": "Online"}]}
44
45 def send_command(self, **_kwargs):
46 return {"Command": {"CommandId": "command-1"}}
47
48 def get_command_invocation(self, **_kwargs):
49 return {
50 "Status": "Success",
51 "StandardOutputContent": "",
52 "StandardErrorContent": "Pairing code: \x1b[1;37m123 456\x1b[0m",
53 }
54
55
56class WakeLambdaTests(unittest.TestCase):

Calls

no outgoing calls