-
Notifications
You must be signed in to change notification settings - Fork 478
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KIALI-402 use LabelsMatch algo to match deployments in service details
Some changes are necessary for that, such as passing []Deployment instead of DeploymentsList in the k8s temporary model
- Loading branch information
Showing
8 changed files
with
64 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,11 @@ | ||
package kubernetes | ||
|
||
import ( | ||
"testing" | ||
// func TestGetList(t *testing.T) { | ||
// assert := assert.New(t) | ||
|
||
"github.com/stretchr/testify/assert" | ||
) | ||
// listOptions := GetLabeledListOptions("app=helloworld") | ||
|
||
func TestGetList(t *testing.T) { | ||
assert := assert.New(t) | ||
// assert.Equal(listOptions.LabelSelector, "app=helloworld") | ||
// } | ||
|
||
listOptions := GetLabeledListOptions("app=helloworld") | ||
|
||
assert.Equal(listOptions.LabelSelector, "app=helloworld") | ||
} | ||
// TODO: add LabelsMatch tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters