Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameter "eventsConfigFilePath" defined. Using configuration from file. #19

Open
krischik opened this issue Jul 18, 2023 · 1 comment

Comments

@krischik
Copy link

When I caller the script with:

powershell tosca_execution_client.ps1 -toscaServerUrl %[DEX_URL] -projectName %[DEX_Project] -events [TestEvents] clientId %[DEX_Client_ID] clientSecret %[DEX_Client_Secret]

I get the error message:

2023-07-18 13:09:34 +2 [INF] Starting ToscaExecutionClient...
2023-07-18 13:09:34 +2 [INF] Parameter "eventsConfigFilePath" defined. Using configuration from file.
Get-Content : Der Pfad "C:\..." kann nicht gefunden werden, da er nicht vorhanden ist.
In C:\...\tosca_execution_client.ps1:581 Zeichen:22
+     $script:events = Get-Content -Path $eventsConfigFilePath -Raw
+                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\...:String) [Get-Content], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

2023-07-18 13:09:34 +2 [INF] ClientId and clientSecret are provided. Authentication will be enabled. Fetch access token with provided credentials...
2023-07-18 13:09:34 +2 [INF] Fetching access token with provided credentials...
2023-07-18 13:09:34 +2 [ERR] ToscaExecutionClient failed to fetch the access token.
2023-07-18 13:09:34 +2 [ERR] {"error":"invalid_client"}
2023-07-18 13:09:34 +2 [INF] Enqueue execution with provided parameters...
2023-07-18 13:09:34 +2 [INF] Fetching access token with provided credentials...
2023-07-18 13:09:34 +2 [ERR] ToscaExecutionClient failed to fetch the access token.
2023-07-18 13:09:34 +2 [ERR] {"error":"invalid_client"}
2023-07-18 13:09:34 +2 [ERR] ToscaExecutionClient failed to enqueue the execution.
2023-07-18 13:09:34 +2 [ERR] Der Remoteserver hat einen Fehler zurückgegeben: (401) Nicht autorisiert.

But I have not specified a eventsConfigFilePath.

@I3urny
Copy link
Contributor

I3urny commented Oct 18, 2023

You're not setting the parameters correctly.

Check the examples in the official Tricentis documentation: https://documentation.tricentis.com/tosca/2310/en/content/continuous_integration/tosca_execution_clients.htm#Examples

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants