66 lines
1.9 KiB
YAML
66 lines
1.9 KiB
YAML
|
name: ZookeeperStoreTest
|
||
|
class_comment: '# * @author Ganesh Chandrasekaran <gchandrasekaran@wayfair.com>
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @requires extension zookeeper
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @group integration'
|
||
|
dependencies:
|
||
|
- name: Key
|
||
|
type: class
|
||
|
source: Symfony\Component\Lock\Key
|
||
|
- name: StoreFactory
|
||
|
type: class
|
||
|
source: Symfony\Component\Lock\Store\StoreFactory
|
||
|
- name: ZookeeperStore
|
||
|
type: class
|
||
|
source: Symfony\Component\Lock\Store\ZookeeperStore
|
||
|
- name: UnserializableTestTrait
|
||
|
type: class
|
||
|
source: UnserializableTestTrait
|
||
|
properties: []
|
||
|
methods:
|
||
|
- name: testCreateConnection
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: connectionString
|
||
|
comment: "# * @author Ganesh Chandrasekaran <gchandrasekaran@wayfair.com>\n# *\n\
|
||
|
# * @requires extension zookeeper\n# *\n# * @group integration\n# */\n# class\
|
||
|
\ ZookeeperStoreTest extends AbstractStoreTestCase\n# {\n# use UnserializableTestTrait;\n\
|
||
|
# \n# public function getStore(): ZookeeperStore\n# {\n# $zookeeper_server = getenv('ZOOKEEPER_HOST').':2181';\n\
|
||
|
# \n# $zookeeper = new \\Zookeeper($zookeeper_server);\n# \n# return StoreFactory::createStore($zookeeper);\n\
|
||
|
# }\n# \n# /**\n# * @dataProvider provideValidConnectionString"
|
||
|
- name: provideValidConnectionString
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: null
|
||
|
- name: testSaveSucceedsWhenPathContainsMoreThanOneNode
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: null
|
||
|
- name: testSaveSucceedsWhenPathContainsOneNode
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: null
|
||
|
- name: testSaveSucceedsWhenPathsContainSameFirstNode
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: null
|
||
|
- name: testRootPathIsLockable
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: null
|
||
|
- name: testEmptyStringIsLockable
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: null
|
||
|
traits:
|
||
|
- Symfony\Component\Lock\Key
|
||
|
- Symfony\Component\Lock\Store\StoreFactory
|
||
|
- Symfony\Component\Lock\Store\ZookeeperStore
|
||
|
- UnserializableTestTrait
|
||
|
interfaces: []
|