Skip to content

Instantly share code, notes, and snippets.

@SeyfSV
Created June 4, 2020 11:37
Show Gist options
  • Save SeyfSV/9e46909ade922525879fdae15c7bf514 to your computer and use it in GitHub Desktop.
Save SeyfSV/9e46909ade922525879fdae15c7bf514 to your computer and use it in GitHub Desktop.
def test_gh193(self):
attrs = []
attrs.append(pymqi.CFST(Parameter=pymqi.CMQCFC.MQCACF_AUTH_PROFILE_NAME,
String=b'DEV.**'))
attrs.append(pymqi.CFIN(Parameter=pymqi.CMQCFC.MQIACF_OBJECT_TYPE,
Value=pymqi.CMQC.MQOT_Q))
attrs.append(pymqi.CFSL(Parameter=pymqi.CMQCFC.MQCACF_GROUP_ENTITY_NAMES,
Strings=[b'admin']))
attrs.append(pymqi.CFIL(Parameter=pymqi.CMQCFC.MQIACF_AUTH_ADD_AUTHS,
Values=[pymqi.CMQCFC.MQAUTH_OUTPUT, pymqi.CMQCFC.MQAUTH_INPUT]))
pcf = pymqi.PCFExecute(self.qmgr)
results = pcf.MQCMD_SET_AUTH_REC(attrs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment