core: update test fixtures
This commit is contained in:
parent
de7b834de7
commit
7edff454f2
|
@ -2012,19 +2012,6 @@ func TestContext2Apply_compute(t *testing.T) {
|
|||
p := testProvider("aws")
|
||||
p.ApplyFn = testApplyFn
|
||||
p.DiffFn = testDiffFn
|
||||
p.GetSchemaReturn = &ProviderSchema{
|
||||
ResourceTypes: map[string]*configschema.Block{
|
||||
"aws_instance": {
|
||||
Attributes: map[string]*configschema.Attribute{
|
||||
"num": {Type: cty.String, Optional: true},
|
||||
"compute": {Type: cty.String, Optional: true},
|
||||
"compute_value": {Type: cty.String, Optional: true},
|
||||
"foo": {Type: cty.String, Optional: true},
|
||||
"dynamical": {Type: cty.String, Computed: true},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
ctx := testContext2(t, &ContextOpts{
|
||||
Config: m,
|
||||
|
@ -3546,7 +3533,7 @@ func TestContext2Apply_multiVarComprehensive(t *testing.T) {
|
|||
},
|
||||
),
|
||||
Variables: InputValues{
|
||||
"count": &InputValue{
|
||||
"num": &InputValue{
|
||||
Value: cty.NumberIntVal(3),
|
||||
SourceType: ValueFromCaller,
|
||||
},
|
||||
|
@ -3750,7 +3737,7 @@ func TestContext2Apply_multiVarCountDec(t *testing.T) {
|
|||
},
|
||||
),
|
||||
Variables: InputValues{
|
||||
"count": &InputValue{
|
||||
"num": &InputValue{
|
||||
Value: cty.NumberIntVal(2),
|
||||
SourceType: ValueFromCaller,
|
||||
},
|
||||
|
@ -3816,7 +3803,7 @@ func TestContext2Apply_multiVarCountDec(t *testing.T) {
|
|||
},
|
||||
),
|
||||
Variables: InputValues{
|
||||
"count": &InputValue{
|
||||
"num": &InputValue{
|
||||
Value: cty.NumberIntVal(1),
|
||||
SourceType: ValueFromCaller,
|
||||
},
|
||||
|
|
|
@ -391,7 +391,7 @@ const testTerraformApplyComputeStr = `
|
|||
aws_instance.bar:
|
||||
ID = foo
|
||||
provider = provider.aws
|
||||
foo = computed_dynamical
|
||||
foo = computed_value
|
||||
type = aws_instance
|
||||
|
||||
Dependencies:
|
||||
|
@ -399,9 +399,10 @@ aws_instance.bar:
|
|||
aws_instance.foo:
|
||||
ID = foo
|
||||
provider = provider.aws
|
||||
dynamical = computed_dynamical
|
||||
compute = value
|
||||
num = 2
|
||||
type = aws_instance
|
||||
value = computed_value
|
||||
`
|
||||
|
||||
const testTerraformApplyCountDecStr = `
|
||||
|
|
|
@ -4,10 +4,10 @@ variable "value" {
|
|||
|
||||
resource "aws_instance" "foo" {
|
||||
num = "2"
|
||||
compute = "dynamical"
|
||||
compute = "value"
|
||||
compute_value = "${var.value}"
|
||||
}
|
||||
|
||||
resource "aws_instance" "bar" {
|
||||
foo = "${aws_instance.foo.dynamical}"
|
||||
foo = "${aws_instance.foo.value}"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue