File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -751,14 +751,25 @@ func TestGetHomeAz(t *testing.T) {
751751 }{
752752 {
753753 "happy path" ,
754- nmagent.AzResponse {HomeAz : uint (1 )},
754+ nmagent.AzResponse {HomeAz : uint (1 ), AppliedFixes : nil },
755755 "/machine/plugins?comp=nmagent&type=GetHomeAz%2Fapi-version%2F1" ,
756756 map [string ]interface {}{
757757 "httpStatusCode" : "200" ,
758758 "HomeAz" : 1 ,
759759 },
760760 false ,
761761 },
762+ {
763+ "happy path with new version" ,
764+ nmagent.AzResponse {HomeAz : uint (1 ), AppliedFixes : []nmagent.HomeAZFix {nmagent .HomeAZFixIPv6 }},
765+ "/machine/plugins?comp=nmagent&type=GetHomeAz%2Fapi-version%2F1" ,
766+ map [string ]interface {}{
767+ "httpStatusCode" : "200" ,
768+ "HomeAz" : 1 ,
769+ "APIVersion" : 2 ,
770+ },
771+ false ,
772+ },
762773 {
763774 "empty response" ,
764775 nmagent.AzResponse {},
You can’t perform that action at this time.
0 commit comments