@@ -1409,10 +1409,10 @@ func HandleNodeListSuccessfully(t *testing.T) {
14091409 marker := r .Form .Get ("marker" )
14101410 switch marker {
14111411 case "" :
1412- fmt .Fprintf (w , NodeListBody )
1412+ fmt .Fprint (w , NodeListBody )
14131413
14141414 case "9e5476bd-a4ec-4653-93d6-72c93aa682ba" :
1415- fmt .Fprintf (w , `{ "servers": [] }` )
1415+ fmt .Fprint (w , `{ "servers": [] }` )
14161416 default :
14171417 t .Fatalf ("/nodes invoked with unexpected marker=[%s]" , marker )
14181418 }
@@ -1429,7 +1429,7 @@ func HandleNodeListDetailSuccessfully(t *testing.T) {
14291429 t .Errorf ("Failed to parse request form %v" , err )
14301430 }
14311431
1432- fmt .Fprintf (w , NodeListDetailBody )
1432+ fmt .Fprint (w , NodeListDetailBody )
14331433 })
14341434}
14351435
@@ -1456,7 +1456,7 @@ func HandleNodeCreationSuccessfully(t *testing.T, response string) {
14561456
14571457 w .WriteHeader (http .StatusAccepted )
14581458 w .Header ().Add ("Content-Type" , "application/json" )
1459- fmt .Fprintf (w , response )
1459+ fmt .Fprint (w , response )
14601460 })
14611461}
14621462
@@ -1476,7 +1476,7 @@ func HandleNodeGetSuccessfully(t *testing.T) {
14761476 th .TestHeader (t , r , "X-Auth-Token" , client .TokenID )
14771477 th .TestHeader (t , r , "Accept" , "application/json" )
14781478
1479- fmt .Fprintf (w , SingleNodeBody )
1479+ fmt .Fprint (w , SingleNodeBody )
14801480 })
14811481}
14821482
@@ -1488,7 +1488,7 @@ func HandleNodeUpdateSuccessfully(t *testing.T, response string) {
14881488 th .TestHeader (t , r , "Content-Type" , "application/json" )
14891489 th .TestJSONRequest (t , r , `[{"op": "replace", "path": "/properties", "value": {"root_gb": 25}}]` )
14901490
1491- fmt .Fprintf (w , response )
1491+ fmt .Fprint (w , response )
14921492 })
14931493}
14941494
@@ -1498,7 +1498,7 @@ func HandleNodeValidateSuccessfully(t *testing.T) {
14981498 th .TestHeader (t , r , "X-Auth-Token" , client .TokenID )
14991499 th .TestHeader (t , r , "Accept" , "application/json" )
15001500
1501- fmt .Fprintf (w , NodeValidationBody )
1501+ fmt .Fprint (w , NodeValidationBody )
15021502 })
15031503}
15041504
@@ -1530,7 +1530,7 @@ func HandleGetBootDeviceSuccessfully(t *testing.T) {
15301530 th .TestMethod (t , r , "GET" )
15311531 th .TestHeader (t , r , "X-Auth-Token" , client .TokenID )
15321532 w .WriteHeader (http .StatusOK )
1533- fmt .Fprintf (w , NodeBootDeviceBody )
1533+ fmt .Fprint (w , NodeBootDeviceBody )
15341534 })
15351535}
15361536
@@ -1540,7 +1540,7 @@ func HandleGetSupportedBootDeviceSuccessfully(t *testing.T) {
15401540 th .TestMethod (t , r , "GET" )
15411541 th .TestHeader (t , r , "X-Auth-Token" , client .TokenID )
15421542 w .WriteHeader (http .StatusOK )
1543- fmt .Fprintf (w , NodeSupportedBootDeviceBody )
1543+ fmt .Fprint (w , NodeSupportedBootDeviceBody )
15441544 })
15451545}
15461546
@@ -1672,7 +1672,7 @@ func HandleListBIOSSettingsSuccessfully(t *testing.T) {
16721672 th .TestHeader (t , r , "X-Auth-Token" , client .TokenID )
16731673 th .TestHeader (t , r , "Accept" , "application/json" )
16741674
1675- fmt .Fprintf (w , NodeBIOSSettingsBody )
1675+ fmt .Fprint (w , NodeBIOSSettingsBody )
16761676 })
16771677}
16781678
@@ -1682,7 +1682,7 @@ func HandleListDetailBIOSSettingsSuccessfully(t *testing.T) {
16821682 th .TestHeader (t , r , "X-Auth-Token" , client .TokenID )
16831683 th .TestHeader (t , r , "Accept" , "application/json" )
16841684
1685- fmt .Fprintf (w , NodeDetailBIOSSettingsBody )
1685+ fmt .Fprint (w , NodeDetailBIOSSettingsBody )
16861686 })
16871687}
16881688
@@ -1692,7 +1692,7 @@ func HandleGetBIOSSettingSuccessfully(t *testing.T) {
16921692 th .TestHeader (t , r , "X-Auth-Token" , client .TokenID )
16931693 th .TestHeader (t , r , "Accept" , "application/json" )
16941694
1695- fmt .Fprintf (w , NodeSingleBIOSSettingBody )
1695+ fmt .Fprint (w , NodeSingleBIOSSettingBody )
16961696 })
16971697}
16981698
@@ -1702,7 +1702,7 @@ func HandleGetVendorPassthruMethodsSuccessfully(t *testing.T) {
17021702 th .TestHeader (t , r , "X-Auth-Token" , client .TokenID )
17031703 th .TestHeader (t , r , "Accept" , "application/json" )
17041704
1705- fmt .Fprintf (w , NodeVendorPassthruMethodsBody )
1705+ fmt .Fprint (w , NodeVendorPassthruMethodsBody )
17061706 })
17071707}
17081708
@@ -1713,7 +1713,7 @@ func HandleGetAllSubscriptionsVendorPassthruSuccessfully(t *testing.T) {
17131713 th .TestHeader (t , r , "Accept" , "application/json" )
17141714 th .TestFormValues (t , r , map [string ]string {"method" : "get_all_subscriptions" })
17151715
1716- fmt .Fprintf (w , NodeGetAllSubscriptionsVnedorPassthruBody )
1716+ fmt .Fprint (w , NodeGetAllSubscriptionsVnedorPassthruBody )
17171717 })
17181718}
17191719
@@ -1729,7 +1729,7 @@ func HandleGetSubscriptionVendorPassthruSuccessfully(t *testing.T) {
17291729 }
17301730 ` )
17311731
1732- fmt .Fprintf (w , NodeGetSubscriptionVendorPassthruBody )
1732+ fmt .Fprint (w , NodeGetSubscriptionVendorPassthruBody )
17331733 })
17341734}
17351735
@@ -1749,7 +1749,7 @@ func HandleCreateSubscriptionVendorPassthruAllParametersSuccessfully(t *testing.
17491749 }
17501750 ` )
17511751
1752- fmt .Fprintf (w , NodeCreateSubscriptionVendorPassthruAllParametersBody )
1752+ fmt .Fprint (w , NodeCreateSubscriptionVendorPassthruAllParametersBody )
17531753 })
17541754}
17551755
@@ -1765,7 +1765,7 @@ func HandleCreateSubscriptionVendorPassthruRequiredParametersSuccessfully(t *tes
17651765 }
17661766 ` )
17671767
1768- fmt .Fprintf (w , NodeCreateSubscriptionVendorPassthruRequiredParametersBody )
1768+ fmt .Fprint (w , NodeCreateSubscriptionVendorPassthruRequiredParametersBody )
17691769 })
17701770}
17711771
@@ -1810,7 +1810,7 @@ func HandleGetInventorySuccessfully(t *testing.T) {
18101810 th .TestMethod (t , r , "GET" )
18111811 th .TestHeader (t , r , "X-Auth-Token" , client .TokenID )
18121812 w .WriteHeader (http .StatusOK )
1813- fmt .Fprintf (w , NodeInventoryBody )
1813+ fmt .Fprint (w , NodeInventoryBody )
18141814 })
18151815}
18161816
@@ -1820,7 +1820,7 @@ func HandleListFirmwareSuccessfully(t *testing.T) {
18201820 th .TestMethod (t , r , "GET" )
18211821 th .TestHeader (t , r , "X-Auth-Token" , client .TokenID )
18221822 w .WriteHeader (http .StatusOK )
1823- fmt .Fprintf (w , NodeFirmwareListBody )
1823+ fmt .Fprint (w , NodeFirmwareListBody )
18241824 })
18251825}
18261826
0 commit comments