terraform: test case for higher S1 serial

This commit is contained in:
Mitchell Hashimoto 2015-03-25 15:39:33 -07:00
parent 0d4c7887c5
commit f68f285f72

View File

@ -202,6 +202,16 @@ func TestStateIncrementSerialMaybe(t *testing.T) {
}, },
1, 1,
}, },
"S1 serial is higher": {
&State{Serial: 5},
&State{
Serial: 3,
Modules: []*ModuleState{
&ModuleState{Path: rootModulePath},
},
},
5,
},
} }
for name, tc := range cases { for name, tc := range cases {