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

✅ add test by host #2

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

✅ add test by host #2

wants to merge 7 commits into from

Conversation

dzove855
Copy link
Member

No description provided.

@dzove855 dzove855 requested review from fanshan and lvenier July 16, 2024 13:53
@dzove855 dzove855 self-assigned this Jul 16, 2024
@dzove855 dzove855 marked this pull request as ready for review August 6, 2024 09:34

host, err := HostSearchByName("testhost")
volume, err := VolumeSearchByName("testvolume", host.Id)
err = VolumeDelete(volume.Id)
Copy link

Choose a reason for hiding this comment

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

function err(err) {
if err != nil {
t.Fatal(err)
}

err(VolumeSearchByName("testvolume", host.Id))

Copy link
Collaborator

Choose a reason for hiding this comment

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

this is not idiomatic go, this is:

result, err := FunctionCall(params)
if err != nil {
  t.Fatalf("unexpected error during <description>: %v", err)
}

Copy link

@fanshan fanshan left a comment

Choose a reason for hiding this comment

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

You can start a fresh Netbox instance inside the runner.

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.

4 participants