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

refactor instance filters #283

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

Conversation

dominik-przybyl-wttech
Copy link
Contributor

No description provided.

@krystian-panek-vmltech
Copy link
Contributor

I won't merge it without tests ;)

@dominik-przybyl-wttech dominik-przybyl-wttech changed the title added new instance filters refactor instance filters Nov 22, 2024
}

func TestInstanceByURL(t *testing.T) {
testInstanceList(t, []string{"instance", "list", "-U", "http://admin:[email protected]:4502", "-U", "http://admin:[email protected]:4503", "-U", "test_author=http://admin:[email protected]:4502", "--output-value", "NONE"}, true, []string{"remote_adhoc_1", "remote_adhoc_2", "test_author"})
Copy link
Contributor

Choose a reason for hiding this comment

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

much better with adhoc urls ;) thx

cmd/aem/root.go Outdated
_ = cv.BindPFlag("instance.filter.publishes", cmd.PersistentFlags().Lookup("instance-publish"))

cmd.MarkFlagsMutuallyExclusive("instance-author", "instance-publish")
cmd.MarkFlagsMutuallyExclusive("instance-url", "instance-id")
Copy link
Contributor

Choose a reason for hiding this comment

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

this is wrong; you could always define all urls and then filter one to be used only with instance-id

Copy link
Contributor

@krystian-panek-vmltech krystian-panek-vmltech left a comment

Choose a reason for hiding this comment

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

instance-url and instance-id are not mutually exclusive

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.

2 participants