def test_delete_criteria_parameter( cmci_module): # type: (CMCITestHelper) -> None cmci_module.stub_delete( 'cicsdefinitionbundle', 1, parameters='?CRITERIA=%28FOO%3D%27BAR%27%29&PARAMETER=CSDGROUP%28%2A%29' ) cmci_module.expect( result( 'https://winmvs2c.hursley.ibm.com:26040/CICSSystemManagement/' 'cicsdefinitionbundle/CICSEX56/?CRITERIA=%28FOO%3D%27BAR%27%29&PARAMETER=CSDGROUP%28%2A%29', 1)) cmci_module.run( cmci_delete, { 'cmci_host': HOST, 'cmci_port': PORT, 'context': CONTEXT, 'type': 'cicsdefinitionbundle', 'resources': { 'filter': { 'FOO': 'BAR' }, 'get_parameters': [{ 'name': 'CSDGROUP', 'value': '*' }] } })
def test_delete_context(cmci_module): # type: (CMCITestHelper) -> None cmci_module.stub_delete('cicsdefinitionbundle', 1) cmci_module.expect( result( 'http://winmvs2c.hursley.ibm.com:26040/CICSSystemManagement/cicsdefinitionbundle/CICSEX56/', 1)) cmci_module.run( cmci_delete, { 'cmci_host': HOST, 'cmci_port': PORT, 'context': CONTEXT, 'type': 'cicsdefinitionbundle' })
def test_delete_parameter(cmci_module): # type: (CMCITestHelper) -> None cmci_module.stub_delete('cicsdefinitionbundle', 1, parameters='?PARAMETER=CSDGROUP%28%2A%29') cmci_module.expect( result( 'http://winmvs2c.hursley.ibm.com:26040/CICSSystemManagement/' 'cicsdefinitionbundle/CICSEX56/?PARAMETER=CSDGROUP%28%2A%29', 1)) cmci_module.run( cmci_delete, { 'cmci_host': HOST, 'cmci_port': PORT, 'context': CONTEXT, 'type': 'cicsdefinitionbundle', 'resources': { 'parameter': 'CSDGROUP(*)' } })
def test_delete_criteria(cmci_module): # type: (CMCITestHelper) -> None cmci_module.stub_delete('cicsdefinitionbundle', 1, parameters='?CRITERIA=FOO%3DBAR') cmci_module.expect( result( 'http://winmvs2c.hursley.ibm.com:26040/CICSSystemManagement/' 'cicsdefinitionbundle/CICSEX56/?CRITERIA=FOO%3DBAR', 1)) cmci_module.run( cmci_delete, { 'cmci_host': HOST, 'cmci_port': PORT, 'context': CONTEXT, 'type': 'cicsdefinitionbundle', 'resources': { 'criteria': 'FOO=BAR' } })
def test_delete_csd(cmci_module): # type: (CMCITestHelper) -> None cmci_module.stub_delete('cicscsdgroup', 1, parameters='?CRITERIA=%28NAME%3D%27CSDGRP1%27%29') cmci_module.expect( result( 'https://winmvs2c.hursley.ibm.com:26040/CICSSystemManagement/' 'cicscsdgroup/CICSEX56/?CRITERIA=%28NAME%3D%27CSDGRP1%27%29', 1)) cmci_module.run( cmci_delete, { 'cmci_host': HOST, 'cmci_port': PORT, 'context': CONTEXT, 'type': 'cicscsdgroup', 'resources': { 'filter': { 'NAME': 'CSDGRP1' }, } })