You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The if (getAuthType() == AUTHTYPE_SAS) line seems to be causing some unintended behavior where, == compares memory address of the two values (which since AUTHTYPE_SAS is static, it's not the same address). Versus, changing the if statement to getAuthType().equals(AUTHTYPE_SAS), will compare the value of the variables (https://www.geeksforgeeks.org/difference-equals-method-java/).
Actual:
Unable to execute in jmeter cli context with Shared access signature selected with proper parameters
Expected:
Able to execute in jmeter cli context with Shared access signature selected with proper parameters
The text was updated successfully, but these errors were encountered:
dislev
added a commit
to dislev/jmeter-plugins
that referenced
this issue
Apr 30, 2021
Unable to execute in jmeter cli context with Shared access signature selected. Error generated from below:
jmeter-plugins/plugins/protocol/aad/src/main/java/jp/co/pnop/jmeter/protocol/aad/config/AzAdCredential.java
Lines 234 to 250 in 64ed25e
due to the following:
jmeter-plugins/plugins/protocol/eventhubs/src/main/java/jp/co/pnop/jmeter/protocol/azureeventhubs/sampler/AzEventHubsSampler.java
Lines 201 to 214 in 64ed25e
The
if (getAuthType() == AUTHTYPE_SAS)
line seems to be causing some unintended behavior where,==
compares memory address of the two values (which sinceAUTHTYPE_SAS
isstatic
, it's not the same address). Versus, changing the if statement togetAuthType().equals(AUTHTYPE_SAS)
, will compare the value of the variables (https://www.geeksforgeeks.org/difference-equals-method-java/).Actual:
Unable to execute in jmeter cli context with Shared access signature selected with proper parameters
Expected:
Able to execute in jmeter cli context with Shared access signature selected with proper parameters
The text was updated successfully, but these errors were encountered: