Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
terraform-provider-terrareg
Manage
Activity
Members
Labels
Plan
Issues
6
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Public
terra
terraform-provider-terrareg
Merge requests
!6
test: Use raw strings for regex in tests to avoid linting errors
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
test: Use raw strings for regex in tests to avoid linting errors
2-add-resource-for-module-provider
into
main
Overview
0
Commits
1
Pipelines
1
Changes
1
Merged
Matt
requested to merge
2-add-resource-for-module-provider
into
main
1 year ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
Issue
#2 (closed)
Closes
#2 (closed)
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
efbc4a08
1 commit,
1 year ago
1 file
+
2
−
2
Expand all files
Preferences
File browser
List view
Tree view
Compare changes
Inline
Side-by-side
Show whitespace changes
Show one file at a time
internal/provider/git_provider_data_source_test.go
+
2
−
2
Options
@@ -42,7 +42,7 @@ func TestAccGitProviderDataSource_by_name(t *testing.T) {
}
func
TestAccGitProviderDataSource_id_and_name
(
t
*
testing
.
T
)
{
errorRegex
,
err
:=
regexp
.
Compile
(
"
.*These attributes cannot be configured together:
\
\
[id,name
\
\
].*
"
)
errorRegex
,
err
:=
regexp
.
Compile
(
`
.*These attributes cannot be configured together: \[id,name\].*
`
)
if
err
!=
nil
{
t
.
Error
(
err
)
}
@@ -61,7 +61,7 @@ func TestAccGitProviderDataSource_id_and_name(t *testing.T) {
}
func
TestAccGitProviderDataSource_no_arguments
(
t
*
testing
.
T
)
{
errorRegex
,
err
:=
regexp
.
Compile
(
"
.*Either 'id' or 'name' must be provided to terrareg_git_provider data source.*
"
)
errorRegex
,
err
:=
regexp
.
Compile
(
`
.*Either 'id' or 'name' must be provided to terrareg_git_provider data source.*
`
)
if
err
!=
nil
{
t
.
Error
(
err
)
}