| 36 | |
| 37 | |
| 38 | class 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 | |
| 56 | class WakeLambdaTests(unittest.TestCase): |
no outgoing calls