This commit is contained in:
Elbaz 2023-08-27 13:46:13 +03:00
parent 57b05912e1
commit 6c86f6ba51

View File

@ -7,6 +7,8 @@ import (
"context"
"encoding/json"
"fmt"
"github.com/placeholderplaceholderplaceholder/opentf/internal/httpclient"
"github.com/placeholderplaceholderplaceholder/opentf/version"
"log"
"os"
"strings"
@ -437,6 +439,7 @@ func testGetClientOptions(t *testing.T) ([]option.ClientOption, error) {
}
credOptions = append(credOptions, option.WithCredentialsJSON([]byte(contents)))
opts = append(opts, credOptions...)
opts = append(opts, option.WithUserAgent(httpclient.TerraformUserAgent(version.Version)))
return opts, nil
}