Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Terraform
Commits
5ff2495f
Commit
5ff2495f
authored
3 years ago
by
Omar Ismail
Committed by
Chris Arcand
3 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Update HasResource to HasManagedResourceInstanceObjects
parent
86f93a2c
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
internal/cloud/backend_apply_test.go
+3
-3
internal/cloud/backend_apply_test.go
with
3 additions
and
3 deletions
+3
-3
internal/cloud/backend_apply_test.go
+
3
-
3
View file @
5ff2495f
...
...
@@ -890,7 +890,7 @@ func TestCloud_applyForceLocal(t *testing.T) {
if
output
:=
done
(
t
)
.
Stdout
();
!
strings
.
Contains
(
output
,
"1 to add, 0 to change, 0 to destroy"
)
{
t
.
Fatalf
(
"expected plan summary in output: %s"
,
output
)
}
if
!
run
.
State
.
HasResources
()
{
if
!
run
.
State
.
Has
Managed
Resource
InstanceObject
s
()
{
t
.
Fatalf
(
"expected resources in state"
)
}
}
...
...
@@ -953,7 +953,7 @@ func TestCloud_applyWorkspaceWithoutOperations(t *testing.T) {
if
output
:=
done
(
t
)
.
Stdout
();
!
strings
.
Contains
(
output
,
"1 to add, 0 to change, 0 to destroy"
)
{
t
.
Fatalf
(
"expected plan summary in output: %s"
,
output
)
}
if
!
run
.
State
.
HasResources
()
{
if
!
run
.
State
.
Has
Managed
Resource
InstanceObject
s
()
{
t
.
Fatalf
(
"expected resources in state"
)
}
}
...
...
@@ -1565,7 +1565,7 @@ func TestCloud_applyVersionCheck(t *testing.T) {
output
:=
b
.
CLI
.
(
*
cli
.
MockUi
)
.
OutputWriter
.
String
()
hasRemote
:=
strings
.
Contains
(
output
,
"Running apply in Terraform Cloud"
)
hasSummary
:=
strings
.
Contains
(
output
,
"1 added, 0 changed, 0 destroyed"
)
hasResources
:=
run
.
State
.
HasResources
()
hasResources
:=
run
.
State
.
Has
Managed
Resource
InstanceObject
s
()
if
!
tc
.
forceLocal
&&
tc
.
hasOperations
{
if
!
hasRemote
{
t
.
Errorf
(
"missing TFC header in output: %s"
,
output
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help