Skip to content

kitchen-azurerm fails to parse $HOME/.azure/credentials file encoded with UTF with BOM #213

@grzegorz-wolszczak

Description

@grzegorz-wolszczak

Version:

kitchen-azurerm (1.6.0)

Environment:

Chef Workstation version: 21.4.365
Chef Infra Client version: 16.12.3
Chef InSpec version: 4.29.3
Chef CLI version: 4.0.0
Chef Habitat version: 1.6.288
Test Kitchen version: 2.11.2
Cookstyle version: 7.10.0
Windows 10

Scenario:

I've called kitchen create to have VM created in azure

Steps to Reproduce:

Change your $HOME/.azure/credentials files to have encoding set to UTF with BOM

Expected Result:

I've expected command kitchen create to succeed

Actual Result:

kitchen create command failed due to the inability to parse $HOME/.azure/credentials file

chef_kitchen_azure_driver_credentails_file_encoded_with_utf_with_bom_parsing_failure

You can see in the screenshot that BOM is not ignored when line with subscriptionId is being interpreted and is seen as blank characters in the output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions