Skip to content
Permalink
Browse files

fix tests

  • Loading branch information
zetaab committed Oct 17, 2019
1 parent c4e52b8 commit 9a87580512726adc343f2138ed6075b5b4987a19
Showing with 17 additions and 1 deletion.
  1. +17 −1 upup/pkg/fi/cloudup/openstacktasks/port_test.go
@@ -389,10 +389,26 @@ func Test_Port_CheckChanges(t *testing.T) {
},
changes: &Port{
Name: nil,
Network: &Network{ID: fi.String("networkID")},
Network: nil,
},
expectedError: nil,
},
{
desc: "actual not nil all changeable fields set",
actual: &Port{
Name: fi.String("name"),
Network: nil,
},
expected: &Port{
Name: fi.String("name"),
Network: nil,
},
changes: &Port{
Name: nil,
Network: &Network{ID: fi.String("networkID")},
},
expectedError: fi.CannotChangeField("Network"),
},
{
desc: "actual not nil unchangeable field Name set",
actual: &Port{

0 comments on commit 9a87580

Please sign in to comment.
You can’t perform that action at this time.