Created
June 4, 2020 11:37
-
-
Save SeyfSV/9e46909ade922525879fdae15c7bf514 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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