Skip to content

Provider prevents unit testing client code #511

Open
@arlobelshee

Description

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform (and Azure DevOps Provider) Version

Terraform: 1.1.2
Provider: 0.1.8

Affected Resource(s)

  • all

Terraform Configuration Files

provider "azuredevops" {
  org_service_url = [valid org URL]
}

terraform {
  required_providers {
    azuredevops = {
      source = "microsoft/azuredevops"
      version = ">=0.1.8"
    }
  }
}

Expected Behavior

It should have output a plan with 0 changes.

Actual Behavior

It crashed, with error message:

Error: TF400813: The user '' is not authorized to access this resource.

Steps to Reproduce

  1. Set $env:AZDO_PERSONAL_ACCESS_TOKEN = 'Fake token'
  2. terraform init
  3. terraform plan -refresh=false

Important Factoids

Org does not allow anonymous access (and shouldn't).

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions