Skip to content

Commit

Permalink
updationg bios test file
Browse files Browse the repository at this point in the history
  • Loading branch information
sapana05 committed Mar 3, 2025
1 parent 1b7024f commit 3ad0322
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions redfish/provider/resource_redfish_bios_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,14 @@ func TestAccRedfishBios_Mock(t *testing.T) {
ProtoV6ProviderFactories: testAccProtoV6ProviderFactories,
Steps: []resource.TestStep{
// mock NewConfig error when creating
/*{
{
PreConfig: func() {
FunctionMocker = mockey.Mock(NewConfig).Return(nil, fmt.Errorf("mock error")).Build()

},
Config: testAccRedfishResourceBiosConfigOn(creds),
ExpectError: regexp.MustCompile(`.*mock error*.`),
},*/
},
// creating
{
PreConfig: func() {
Expand All @@ -179,13 +179,13 @@ func TestAccRedfishBios_Mock(t *testing.T) {
),
},
// mock NewConfig error when updating
/*{
{
PreConfig: func() {
FunctionMocker = mockey.Mock(NewConfig).Return(nil, fmt.Errorf("mock error")).Build()
},
Config: testAccRedfishResourceBiosConfigOff(creds),
ExpectError: regexp.MustCompile(`.*mock error*.`),
},*/
},
// updating
{
PreConfig: func() {
Expand Down

0 comments on commit 3ad0322

Please sign in to comment.