2012-01-11 06:44:32 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
|
|
|
import dbus
|
|
|
|
import mock
|
|
|
|
import sys
|
|
|
|
|
|
|
|
service = mock.SecretService()
|
|
|
|
service.add_standard_objects()
|
|
|
|
|
2012-01-31 19:20:31 +00:00
|
|
|
collection = mock.SecretCollection(service, "todelete", locked=False)
|
2012-01-11 06:44:32 +00:00
|
|
|
mock.SecretItem(collection, "item", attributes={ "number": "1", "string": "one", "even": "false" }, secret="uno")
|
|
|
|
mock.SecretItem(collection, "confirm", attributes={ "number": "2", "string": "two", "even": "true" }, secret="dos", confirm=True)
|
|
|
|
|
2012-01-31 19:20:31 +00:00
|
|
|
collection = mock.SecretCollection(service, "twodelete", locked=True)
|
2012-01-11 06:44:32 +00:00
|
|
|
mock.SecretItem(collection, "locked", attributes={ "number": "3", "string": "three", "even": "false" }, secret="tres")
|
|
|
|
|
|
|
|
service.listen()
|