Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Typos in vim25/soap/client CA tests #2885

Merged

Conversation

atc0005
Copy link
Contributor

@atc0005 atc0005 commented Jun 21, 2022

Description

Replace incomplete sentinel error name in these tests:

  • TestMultipleCAPaths
  • TestInvalidRootCAs

Closes: #2883

Type of change

Please mark options that are relevant:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to
    not work as expected)
  • This change requires a documentation update
  • Build related change

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide
instructions so we can reproduce. If applicable, please also list any relevant
details for your test configuration.

  • Ran make check
    • passed
  • Ran make test
    • unrelated test failure (see output below)
test failure output
--- FAIL: ExampleClient_Run (0.50s)
panic: ServerFaultCode: GuestOperationsUnavailable [recovered]
        panic: ServerFaultCode: GuestOperationsUnavailable

goroutine 1 [running]:
testing.(*InternalExample).processRunResult(0xc000019ca8, {0x0, 0x0}, 0x4, 0x0, {0xdb7e80, 0xc000152050})
        /usr/local/go/src/testing/example.go:91 +0x505
testing.runExample.func2()
        /usr/local/go/src/testing/run_example.go:60 +0x11c
panic({0xdb7e80, 0xc000152050})
        /usr/local/go/src/runtime/panic.go:1038 +0x215
github.com/vmware/govmomi/simulator.Run(0x2d84bf20, {0x0, 0xc00012fbb0, 0x48aad7})
        /mnt/t/github/govmomi/simulator/model.go:907 +0x1e5
github.com/vmware/govmomi/guest/toolbox_test.ExampleClient_Run()
        /mnt/t/github/govmomi/guest/toolbox/example_test.go:32 +0x27
testing.runExample({{0xeb154c, 0x11}, 0xf274d0, {0xea54a6, 0x6}, 0x0})
        /usr/local/go/src/testing/run_example.go:64 +0x28d
testing.runExamples(0xc000019e70, {0x178d5e0, 0x1, 0x0})
        /usr/local/go/src/testing/example.go:44 +0x18e
testing.(*M).Run(0xc0001d8180)
        /usr/local/go/src/testing/testing.go:1505 +0x587
main.main()
        _testmain.go:45 +0x14b
FAIL    github.com/vmware/govmomi/guest/toolbox 0.531s
$ git log -n 2
commit d6dd8fb32270e6c9bf0e932e504293939b09b6d8 (HEAD -> issue-2876-fix-typo-in-test-fatalf-messages, origin/issue-2876-fix-typo-in-test-fatalf-messages)
Author: Adam Chalkley <atc0005@users.noreply.github.com>
Date:   Tue Jun 21 08:06:20 2022 -0500

    fix: Typos in vim25/soap/client CA tests

    Replace incomplete sentinel error name in these tests with the
    intended name:

    - TestMultipleCAPaths
    - TestInvalidRootCAs

    Closes: #2876

commit 7556da8754304dcaa2eed82f7b83adeedd0f29f7 (upstream/master, origin/master, origin/HEAD, master)
Merge: 63aa05d3 361c90ca
Author: Michael Gasch <mgasch@vmware.com>
Date:   Fri Jun 17 08:22:52 2022 +0200

    Merge pull request #2878 from bryanv/bryanv/vcsim-remove-nic-guest-net

Checklist:

  • My code follows the CONTRIBUTION guidelines of
    this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged

Replace incomplete sentinel error name in these tests with the
intended name:

- TestMultipleCAPaths
- TestInvalidRootCAs

Closes: vmware#2876
Copy link
Member

@dougm dougm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @atc0005

@dougm dougm merged commit 5aac4f6 into vmware:master Jun 22, 2022
@atc0005 atc0005 deleted the issue-2876-fix-typo-in-test-fatalf-messages branch June 22, 2022 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Are these t.Fatalf messages referencing the wrong error type?
2 participants