Analysis info now uses snake case (#4765)
* removed camel case and used snake_case for consistency with analyzer * updated case in test
This commit is contained in:
@@ -98,7 +98,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result
|
||||
maps.Copy(result.ExtraData, extraData)
|
||||
result.SetVerificationError(verificationErr, tokenName, tokenSecret, endpoint)
|
||||
if isVerified {
|
||||
result.AnalysisInfo = map[string]string{"tokenName": tokenName, "patSecret": tokenSecret, "endpoint": endpoint}
|
||||
result.AnalysisInfo = map[string]string{"token_name": tokenName, "pat_secret": tokenSecret, "endpoint": endpoint}
|
||||
}
|
||||
}
|
||||
results = append(results, result)
|
||||
|
||||
@@ -70,9 +70,9 @@ func TestTableau_FromChunk(t *testing.T) {
|
||||
"auth_token_received": "true",
|
||||
},
|
||||
AnalysisInfo: map[string]string{
|
||||
"endpoint": tableauURL,
|
||||
"patSecret": tokenSecret,
|
||||
"tokenName": tokenName,
|
||||
"endpoint": tableauURL,
|
||||
"pat_secret": tokenSecret,
|
||||
"token_name": tokenName,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user