-
Notifications
You must be signed in to change notification settings - Fork 1.1k
feat: Add owner references to all resources #2199
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
Closed
Closed
Changes from 2 commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 | ||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -1568,9 +1568,9 @@ func TestPodAffinity(t *testing.T) { | |||||||||||||||||||||||||||||||||||||||
| func testDeploymentOwnerReference(cluster *Cluster, deployment *appsv1.Deployment) error { | ||||||||||||||||||||||||||||||||||||||||
| owner := deployment.ObjectMeta.OwnerReferences[0] | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| if owner.Name != cluster.Statefulset.ObjectMeta.Name { | ||||||||||||||||||||||||||||||||||||||||
| return fmt.Errorf("Ownere reference is incorrect, got %s, expected %s", | ||||||||||||||||||||||||||||||||||||||||
| owner.Name, cluster.Statefulset.ObjectMeta.Name) | ||||||||||||||||||||||||||||||||||||||||
| if owner.Name != cluster.Postgresql.ObjectMeta.Name { | ||||||||||||||||||||||||||||||||||||||||
| return fmt.Errorf("Owner reference is incorrect, got %s, expected %s", | ||||||||||||||||||||||||||||||||||||||||
| owner.Name, cluster.Postgresql.ObjectMeta.Name) | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| return nil | ||||||||||||||||||||||||||||||||||||||||
|
|
@@ -1579,9 +1579,9 @@ func testDeploymentOwnerReference(cluster *Cluster, deployment *appsv1.Deploymen | |||||||||||||||||||||||||||||||||||||||
| func testServiceOwnerReference(cluster *Cluster, service *v1.Service, role PostgresRole) error { | ||||||||||||||||||||||||||||||||||||||||
| owner := service.ObjectMeta.OwnerReferences[0] | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| if owner.Name != cluster.Statefulset.ObjectMeta.Name { | ||||||||||||||||||||||||||||||||||||||||
| return fmt.Errorf("Ownere reference is incorrect, got %s, expected %s", | ||||||||||||||||||||||||||||||||||||||||
| owner.Name, cluster.Statefulset.ObjectMeta.Name) | ||||||||||||||||||||||||||||||||||||||||
| if owner.Name != cluster.Postgresql.ObjectMeta.Name { | ||||||||||||||||||||||||||||||||||||||||
| return fmt.Errorf("Owner reference is incorrect, got %s, expected %s", | ||||||||||||||||||||||||||||||||||||||||
| owner.Name, cluster.Postgresql.ObjectMeta.Name) | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| return nil | ||||||||||||||||||||||||||||||||||||||||
|
|
@@ -2320,104 +2320,128 @@ func TestSidecars(t *testing.T) { | |||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| func TestGeneratePodDisruptionBudget(t *testing.T) { | ||||||||||||||||||||||||||||||||||||||||
| testName := "Test PodDisruptionBudget spec generation" | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| hasName := func(pdbName string) func(cluster *Cluster, podDisruptionBudget *policyv1.PodDisruptionBudget) error { | ||||||||||||||||||||||||||||||||||||||||
| return func(cluster *Cluster, podDisruptionBudget *policyv1.PodDisruptionBudget) error { | ||||||||||||||||||||||||||||||||||||||||
| if pdbName != podDisruptionBudget.ObjectMeta.Name { | ||||||||||||||||||||||||||||||||||||||||
| return fmt.Errorf("PodDisruptionBudget name is incorrect, got %s, expected %s", | ||||||||||||||||||||||||||||||||||||||||
| podDisruptionBudget.ObjectMeta.Name, pdbName) | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
| return nil | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| hasMinAvailable := func(expectedMinAvailable int) func(cluster *Cluster, podDisruptionBudget *policyv1.PodDisruptionBudget) error { | ||||||||||||||||||||||||||||||||||||||||
| return func(cluster *Cluster, podDisruptionBudget *policyv1.PodDisruptionBudget) error { | ||||||||||||||||||||||||||||||||||||||||
| actual := podDisruptionBudget.Spec.MinAvailable.IntVal | ||||||||||||||||||||||||||||||||||||||||
| if actual != int32(expectedMinAvailable) { | ||||||||||||||||||||||||||||||||||||||||
| return fmt.Errorf("PodDisruptionBudget MinAvailable is incorrect, got %d, expected %d", | ||||||||||||||||||||||||||||||||||||||||
| actual, expectedMinAvailable) | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
| return nil | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| testLabelsAndSelectors := func(cluster *Cluster, podDisruptionBudget *policyv1.PodDisruptionBudget) error { | ||||||||||||||||||||||||||||||||||||||||
| if podDisruptionBudget.ObjectMeta.Namespace != "myapp" { | ||||||||||||||||||||||||||||||||||||||||
| return fmt.Errorf("Object Namespace incorrect.") | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
| if !reflect.DeepEqual(podDisruptionBudget.Labels, map[string]string{"team": "myapp", "cluster-name": "myapp-database"}) { | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| return fmt.Errorf("Labels incorrect.") | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
| if !reflect.DeepEqual(podDisruptionBudget.Spec.Selector, &metav1.LabelSelector{ | ||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+2347
to
+2354
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And final test case must be changed to |
||||||||||||||||||||||||||||||||||||||||
| MatchLabels: map[string]string{"spilo-role": "master", "cluster-name": "myapp-database"}}) { | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| return fmt.Errorf("MatchLabels incorrect.") | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| return nil | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| testPodDisruptionBudgetOwnerReference := func(cluster *Cluster, podDisruptionBudget *policyv1.PodDisruptionBudget) error { | ||||||||||||||||||||||||||||||||||||||||
| owner := podDisruptionBudget.ObjectMeta.OwnerReferences[0] | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| if owner.Name != cluster.Postgresql.ObjectMeta.Name { | ||||||||||||||||||||||||||||||||||||||||
| return fmt.Errorf("Owner reference is incorrect, got %s, expected %s", | ||||||||||||||||||||||||||||||||||||||||
| owner.Name, cluster.Postgresql.ObjectMeta.Name) | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| return nil | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| tests := []struct { | ||||||||||||||||||||||||||||||||||||||||
| c *Cluster | ||||||||||||||||||||||||||||||||||||||||
| out policyv1.PodDisruptionBudget | ||||||||||||||||||||||||||||||||||||||||
| scenario string | ||||||||||||||||||||||||||||||||||||||||
| spec *Cluster | ||||||||||||||||||||||||||||||||||||||||
| check []func(cluster *Cluster, podDisruptionBudget *policyv1.PodDisruptionBudget) error | ||||||||||||||||||||||||||||||||||||||||
| }{ | ||||||||||||||||||||||||||||||||||||||||
| // With multiple instances. | ||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||
| New( | ||||||||||||||||||||||||||||||||||||||||
| scenario: "With multiple instances", | ||||||||||||||||||||||||||||||||||||||||
| spec: New( | ||||||||||||||||||||||||||||||||||||||||
| Config{OpConfig: config.Config{Resources: config.Resources{ClusterNameLabel: "cluster-name", PodRoleLabel: "spilo-role"}, PDBNameFormat: "postgres-{cluster}-pdb"}}, | ||||||||||||||||||||||||||||||||||||||||
| k8sutil.KubernetesClient{}, | ||||||||||||||||||||||||||||||||||||||||
| acidv1.Postgresql{ | ||||||||||||||||||||||||||||||||||||||||
| ObjectMeta: metav1.ObjectMeta{Name: "myapp-database", Namespace: "myapp"}, | ||||||||||||||||||||||||||||||||||||||||
| Spec: acidv1.PostgresSpec{TeamID: "myapp", NumberOfInstances: 3}}, | ||||||||||||||||||||||||||||||||||||||||
| logger, | ||||||||||||||||||||||||||||||||||||||||
| eventRecorder), | ||||||||||||||||||||||||||||||||||||||||
| policyv1.PodDisruptionBudget{ | ||||||||||||||||||||||||||||||||||||||||
| ObjectMeta: metav1.ObjectMeta{ | ||||||||||||||||||||||||||||||||||||||||
| Name: "postgres-myapp-database-pdb", | ||||||||||||||||||||||||||||||||||||||||
| Namespace: "myapp", | ||||||||||||||||||||||||||||||||||||||||
| Labels: map[string]string{"team": "myapp", "cluster-name": "myapp-database"}, | ||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||
| Spec: policyv1.PodDisruptionBudgetSpec{ | ||||||||||||||||||||||||||||||||||||||||
| MinAvailable: util.ToIntStr(1), | ||||||||||||||||||||||||||||||||||||||||
| Selector: &metav1.LabelSelector{ | ||||||||||||||||||||||||||||||||||||||||
| MatchLabels: map[string]string{"spilo-role": "master", "cluster-name": "myapp-database"}, | ||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||
| check: []func(cluster *Cluster, podDisruptionBudget *policyv1.PodDisruptionBudget) error{ | ||||||||||||||||||||||||||||||||||||||||
| testPodDisruptionBudgetOwnerReference, | ||||||||||||||||||||||||||||||||||||||||
| hasName("postgres-myapp-database-pdb"), | ||||||||||||||||||||||||||||||||||||||||
| hasMinAvailable(1), | ||||||||||||||||||||||||||||||||||||||||
| testLabelsAndSelectors, | ||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||
| // With zero instances. | ||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||
| New( | ||||||||||||||||||||||||||||||||||||||||
| scenario: "With zero instances", | ||||||||||||||||||||||||||||||||||||||||
| spec: New( | ||||||||||||||||||||||||||||||||||||||||
| Config{OpConfig: config.Config{Resources: config.Resources{ClusterNameLabel: "cluster-name", PodRoleLabel: "spilo-role"}, PDBNameFormat: "postgres-{cluster}-pdb"}}, | ||||||||||||||||||||||||||||||||||||||||
| k8sutil.KubernetesClient{}, | ||||||||||||||||||||||||||||||||||||||||
| acidv1.Postgresql{ | ||||||||||||||||||||||||||||||||||||||||
| ObjectMeta: metav1.ObjectMeta{Name: "myapp-database", Namespace: "myapp"}, | ||||||||||||||||||||||||||||||||||||||||
| Spec: acidv1.PostgresSpec{TeamID: "myapp", NumberOfInstances: 0}}, | ||||||||||||||||||||||||||||||||||||||||
| logger, | ||||||||||||||||||||||||||||||||||||||||
| eventRecorder), | ||||||||||||||||||||||||||||||||||||||||
| policyv1.PodDisruptionBudget{ | ||||||||||||||||||||||||||||||||||||||||
| ObjectMeta: metav1.ObjectMeta{ | ||||||||||||||||||||||||||||||||||||||||
| Name: "postgres-myapp-database-pdb", | ||||||||||||||||||||||||||||||||||||||||
| Namespace: "myapp", | ||||||||||||||||||||||||||||||||||||||||
| Labels: map[string]string{"team": "myapp", "cluster-name": "myapp-database"}, | ||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||
| Spec: policyv1.PodDisruptionBudgetSpec{ | ||||||||||||||||||||||||||||||||||||||||
| MinAvailable: util.ToIntStr(0), | ||||||||||||||||||||||||||||||||||||||||
| Selector: &metav1.LabelSelector{ | ||||||||||||||||||||||||||||||||||||||||
| MatchLabels: map[string]string{"spilo-role": "master", "cluster-name": "myapp-database"}, | ||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||
| check: []func(cluster *Cluster, podDisruptionBudget *policyv1.PodDisruptionBudget) error{ | ||||||||||||||||||||||||||||||||||||||||
| testPodDisruptionBudgetOwnerReference, | ||||||||||||||||||||||||||||||||||||||||
| hasName("postgres-myapp-database-pdb"), | ||||||||||||||||||||||||||||||||||||||||
| hasMinAvailable(0), | ||||||||||||||||||||||||||||||||||||||||
| testLabelsAndSelectors, | ||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||
| // With PodDisruptionBudget disabled. | ||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||
| New( | ||||||||||||||||||||||||||||||||||||||||
| scenario: "With PodDisruptionBudget disabled", | ||||||||||||||||||||||||||||||||||||||||
| spec: New( | ||||||||||||||||||||||||||||||||||||||||
| Config{OpConfig: config.Config{Resources: config.Resources{ClusterNameLabel: "cluster-name", PodRoleLabel: "spilo-role"}, PDBNameFormat: "postgres-{cluster}-pdb", EnablePodDisruptionBudget: util.False()}}, | ||||||||||||||||||||||||||||||||||||||||
| k8sutil.KubernetesClient{}, | ||||||||||||||||||||||||||||||||||||||||
| acidv1.Postgresql{ | ||||||||||||||||||||||||||||||||||||||||
| ObjectMeta: metav1.ObjectMeta{Name: "myapp-database", Namespace: "myapp"}, | ||||||||||||||||||||||||||||||||||||||||
| Spec: acidv1.PostgresSpec{TeamID: "myapp", NumberOfInstances: 3}}, | ||||||||||||||||||||||||||||||||||||||||
| logger, | ||||||||||||||||||||||||||||||||||||||||
| eventRecorder), | ||||||||||||||||||||||||||||||||||||||||
| policyv1.PodDisruptionBudget{ | ||||||||||||||||||||||||||||||||||||||||
| ObjectMeta: metav1.ObjectMeta{ | ||||||||||||||||||||||||||||||||||||||||
| Name: "postgres-myapp-database-pdb", | ||||||||||||||||||||||||||||||||||||||||
| Namespace: "myapp", | ||||||||||||||||||||||||||||||||||||||||
| Labels: map[string]string{"team": "myapp", "cluster-name": "myapp-database"}, | ||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||
| Spec: policyv1.PodDisruptionBudgetSpec{ | ||||||||||||||||||||||||||||||||||||||||
| MinAvailable: util.ToIntStr(0), | ||||||||||||||||||||||||||||||||||||||||
| Selector: &metav1.LabelSelector{ | ||||||||||||||||||||||||||||||||||||||||
| MatchLabels: map[string]string{"spilo-role": "master", "cluster-name": "myapp-database"}, | ||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||
| check: []func(cluster *Cluster, podDisruptionBudget *policyv1.PodDisruptionBudget) error{ | ||||||||||||||||||||||||||||||||||||||||
| testPodDisruptionBudgetOwnerReference, | ||||||||||||||||||||||||||||||||||||||||
| hasName("postgres-myapp-database-pdb"), | ||||||||||||||||||||||||||||||||||||||||
| hasMinAvailable(0), | ||||||||||||||||||||||||||||||||||||||||
| testLabelsAndSelectors, | ||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||
| // With non-default PDBNameFormat and PodDisruptionBudget explicitly enabled. | ||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||
| New( | ||||||||||||||||||||||||||||||||||||||||
| scenario: "With non-default PDBNameFormat and PodDisruptionBudget explicitly enabled", | ||||||||||||||||||||||||||||||||||||||||
| spec: New( | ||||||||||||||||||||||||||||||||||||||||
| Config{OpConfig: config.Config{Resources: config.Resources{ClusterNameLabel: "cluster-name", PodRoleLabel: "spilo-role"}, PDBNameFormat: "postgres-{cluster}-databass-budget", EnablePodDisruptionBudget: util.True()}}, | ||||||||||||||||||||||||||||||||||||||||
| k8sutil.KubernetesClient{}, | ||||||||||||||||||||||||||||||||||||||||
| acidv1.Postgresql{ | ||||||||||||||||||||||||||||||||||||||||
| ObjectMeta: metav1.ObjectMeta{Name: "myapp-database", Namespace: "myapp"}, | ||||||||||||||||||||||||||||||||||||||||
| Spec: acidv1.PostgresSpec{TeamID: "myapp", NumberOfInstances: 3}}, | ||||||||||||||||||||||||||||||||||||||||
| logger, | ||||||||||||||||||||||||||||||||||||||||
| eventRecorder), | ||||||||||||||||||||||||||||||||||||||||
| policyv1.PodDisruptionBudget{ | ||||||||||||||||||||||||||||||||||||||||
| ObjectMeta: metav1.ObjectMeta{ | ||||||||||||||||||||||||||||||||||||||||
| Name: "postgres-myapp-database-databass-budget", | ||||||||||||||||||||||||||||||||||||||||
| Namespace: "myapp", | ||||||||||||||||||||||||||||||||||||||||
| Labels: map[string]string{"team": "myapp", "cluster-name": "myapp-database"}, | ||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||
| Spec: policyv1.PodDisruptionBudgetSpec{ | ||||||||||||||||||||||||||||||||||||||||
| MinAvailable: util.ToIntStr(1), | ||||||||||||||||||||||||||||||||||||||||
| Selector: &metav1.LabelSelector{ | ||||||||||||||||||||||||||||||||||||||||
| MatchLabels: map[string]string{"spilo-role": "master", "cluster-name": "myapp-database"}, | ||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||
| check: []func(cluster *Cluster, podDisruptionBudget *policyv1.PodDisruptionBudget) error{ | ||||||||||||||||||||||||||||||||||||||||
| testPodDisruptionBudgetOwnerReference, | ||||||||||||||||||||||||||||||||||||||||
| hasName("postgres-myapp-database-databass-budget"), | ||||||||||||||||||||||||||||||||||||||||
| hasMinAvailable(1), | ||||||||||||||||||||||||||||||||||||||||
| testLabelsAndSelectors, | ||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||
| // With PDBMasterLabelSelector disabled. | ||||||||||||||||||||||||||||||||||||||||
|
|
@@ -2447,9 +2471,13 @@ func TestGeneratePodDisruptionBudget(t *testing.T) { | |||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| for _, tt := range tests { | ||||||||||||||||||||||||||||||||||||||||
| result := tt.c.generatePodDisruptionBudget() | ||||||||||||||||||||||||||||||||||||||||
| if !reflect.DeepEqual(*result, tt.out) { | ||||||||||||||||||||||||||||||||||||||||
| t.Errorf("Expected PodDisruptionBudget: %#v, got %#v", tt.out, *result) | ||||||||||||||||||||||||||||||||||||||||
| result := tt.spec.generatePodDisruptionBudget() | ||||||||||||||||||||||||||||||||||||||||
| for _, check := range tt.check { | ||||||||||||||||||||||||||||||||||||||||
| err := check(tt.spec, result) | ||||||||||||||||||||||||||||||||||||||||
| if err != nil { | ||||||||||||||||||||||||||||||||||||||||
| t.Errorf("%s [%s]: PodDisruptionBudget spec is incorrect, %+v", | ||||||||||||||||||||||||||||||||||||||||
| testName, tt.scenario, err) | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.