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:
Muneeb Ullah Khan
2026-03-11 16:06:44 +05:00
committed by GitHub
parent f9d1850dad
commit 4860052fc9
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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,
},
},
},