@@ -1404,10 +1404,10 @@ func HandleNodeListSuccessfully(t *testing.T) {
14041404 marker := r .Form .Get ("marker" )
14051405 switch marker {
14061406 case "" :
1407- fmt .Fprintf (w , NodeListBody )
1407+ fmt .Fprint (w , NodeListBody )
14081408
14091409 case "9e5476bd-a4ec-4653-93d6-72c93aa682ba" :
1410- fmt .Fprintf (w , `{ "servers": [] }` )
1410+ fmt .Fprint (w , `{ "servers": [] }` )
14111411 default :
14121412 t .Fatalf ("/nodes invoked with unexpected marker=[%s]" , marker )
14131413 }
@@ -1424,7 +1424,7 @@ func HandleNodeListDetailSuccessfully(t *testing.T) {
14241424 t .Errorf ("Failed to parse request form %v" , err )
14251425 }
14261426
1427- fmt .Fprintf (w , NodeListDetailBody )
1427+ fmt .Fprint (w , NodeListDetailBody )
14281428 })
14291429}
14301430
@@ -1451,7 +1451,7 @@ func HandleNodeCreationSuccessfully(t *testing.T, response string) {
14511451
14521452 w .WriteHeader (http .StatusAccepted )
14531453 w .Header ().Add ("Content-Type" , "application/json" )
1454- fmt .Fprintf (w , response )
1454+ fmt .Fprint (w , response )
14551455 })
14561456}
14571457
@@ -1471,7 +1471,7 @@ func HandleNodeGetSuccessfully(t *testing.T) {
14711471 th .TestHeader (t , r , "X-Auth-Token" , client .TokenID )
14721472 th .TestHeader (t , r , "Accept" , "application/json" )
14731473
1474- fmt .Fprintf (w , SingleNodeBody )
1474+ fmt .Fprint (w , SingleNodeBody )
14751475 })
14761476}
14771477
@@ -1483,7 +1483,7 @@ func HandleNodeUpdateSuccessfully(t *testing.T, response string) {
14831483 th .TestHeader (t , r , "Content-Type" , "application/json" )
14841484 th .TestJSONRequest (t , r , `[{"op": "replace", "path": "/properties", "value": {"root_gb": 25}}]` )
14851485
1486- fmt .Fprintf (w , response )
1486+ fmt .Fprint (w , response )
14871487 })
14881488}
14891489
@@ -1493,7 +1493,7 @@ func HandleNodeValidateSuccessfully(t *testing.T) {
14931493 th .TestHeader (t , r , "X-Auth-Token" , client .TokenID )
14941494 th .TestHeader (t , r , "Accept" , "application/json" )
14951495
1496- fmt .Fprintf (w , NodeValidationBody )
1496+ fmt .Fprint (w , NodeValidationBody )
14971497 })
14981498}
14991499
@@ -1525,7 +1525,7 @@ func HandleGetBootDeviceSuccessfully(t *testing.T) {
15251525 th .TestMethod (t , r , "GET" )
15261526 th .TestHeader (t , r , "X-Auth-Token" , client .TokenID )
15271527 w .WriteHeader (http .StatusOK )
1528- fmt .Fprintf (w , NodeBootDeviceBody )
1528+ fmt .Fprint (w , NodeBootDeviceBody )
15291529 })
15301530}
15311531
@@ -1535,7 +1535,7 @@ func HandleGetSupportedBootDeviceSuccessfully(t *testing.T) {
15351535 th .TestMethod (t , r , "GET" )
15361536 th .TestHeader (t , r , "X-Auth-Token" , client .TokenID )
15371537 w .WriteHeader (http .StatusOK )
1538- fmt .Fprintf (w , NodeSupportedBootDeviceBody )
1538+ fmt .Fprint (w , NodeSupportedBootDeviceBody )
15391539 })
15401540}
15411541
@@ -1667,7 +1667,7 @@ func HandleListBIOSSettingsSuccessfully(t *testing.T) {
16671667 th .TestHeader (t , r , "X-Auth-Token" , client .TokenID )
16681668 th .TestHeader (t , r , "Accept" , "application/json" )
16691669
1670- fmt .Fprintf (w , NodeBIOSSettingsBody )
1670+ fmt .Fprint (w , NodeBIOSSettingsBody )
16711671 })
16721672}
16731673
@@ -1677,7 +1677,7 @@ func HandleListDetailBIOSSettingsSuccessfully(t *testing.T) {
16771677 th .TestHeader (t , r , "X-Auth-Token" , client .TokenID )
16781678 th .TestHeader (t , r , "Accept" , "application/json" )
16791679
1680- fmt .Fprintf (w , NodeDetailBIOSSettingsBody )
1680+ fmt .Fprint (w , NodeDetailBIOSSettingsBody )
16811681 })
16821682}
16831683
@@ -1687,7 +1687,7 @@ func HandleGetBIOSSettingSuccessfully(t *testing.T) {
16871687 th .TestHeader (t , r , "X-Auth-Token" , client .TokenID )
16881688 th .TestHeader (t , r , "Accept" , "application/json" )
16891689
1690- fmt .Fprintf (w , NodeSingleBIOSSettingBody )
1690+ fmt .Fprint (w , NodeSingleBIOSSettingBody )
16911691 })
16921692}
16931693
@@ -1697,7 +1697,7 @@ func HandleGetVendorPassthruMethodsSuccessfully(t *testing.T) {
16971697 th .TestHeader (t , r , "X-Auth-Token" , client .TokenID )
16981698 th .TestHeader (t , r , "Accept" , "application/json" )
16991699
1700- fmt .Fprintf (w , NodeVendorPassthruMethodsBody )
1700+ fmt .Fprint (w , NodeVendorPassthruMethodsBody )
17011701 })
17021702}
17031703
@@ -1708,7 +1708,7 @@ func HandleGetAllSubscriptionsVendorPassthruSuccessfully(t *testing.T) {
17081708 th .TestHeader (t , r , "Accept" , "application/json" )
17091709 th .TestFormValues (t , r , map [string ]string {"method" : "get_all_subscriptions" })
17101710
1711- fmt .Fprintf (w , NodeGetAllSubscriptionsVnedorPassthruBody )
1711+ fmt .Fprint (w , NodeGetAllSubscriptionsVnedorPassthruBody )
17121712 })
17131713}
17141714
@@ -1724,7 +1724,7 @@ func HandleGetSubscriptionVendorPassthruSuccessfully(t *testing.T) {
17241724 }
17251725 ` )
17261726
1727- fmt .Fprintf (w , NodeGetSubscriptionVendorPassthruBody )
1727+ fmt .Fprint (w , NodeGetSubscriptionVendorPassthruBody )
17281728 })
17291729}
17301730
@@ -1744,7 +1744,7 @@ func HandleCreateSubscriptionVendorPassthruAllParametersSuccessfully(t *testing.
17441744 }
17451745 ` )
17461746
1747- fmt .Fprintf (w , NodeCreateSubscriptionVendorPassthruAllParametersBody )
1747+ fmt .Fprint (w , NodeCreateSubscriptionVendorPassthruAllParametersBody )
17481748 })
17491749}
17501750
@@ -1760,7 +1760,7 @@ func HandleCreateSubscriptionVendorPassthruRequiredParametersSuccessfully(t *tes
17601760 }
17611761 ` )
17621762
1763- fmt .Fprintf (w , NodeCreateSubscriptionVendorPassthruRequiredParametersBody )
1763+ fmt .Fprint (w , NodeCreateSubscriptionVendorPassthruRequiredParametersBody )
17641764 })
17651765}
17661766
@@ -1805,7 +1805,7 @@ func HandleGetInventorySuccessfully(t *testing.T) {
18051805 th .TestMethod (t , r , "GET" )
18061806 th .TestHeader (t , r , "X-Auth-Token" , client .TokenID )
18071807 w .WriteHeader (http .StatusOK )
1808- fmt .Fprintf (w , NodeInventoryBody )
1808+ fmt .Fprint (w , NodeInventoryBody )
18091809 })
18101810}
18111811
@@ -1815,7 +1815,7 @@ func HandleListFirmwareSuccessfully(t *testing.T) {
18151815 th .TestMethod (t , r , "GET" )
18161816 th .TestHeader (t , r , "X-Auth-Token" , client .TokenID )
18171817 w .WriteHeader (http .StatusOK )
1818- fmt .Fprintf (w , NodeFirmwareListBody )
1818+ fmt .Fprint (w , NodeFirmwareListBody )
18191819 })
18201820}
18211821
0 commit comments