(t *testing.T)
| 647 | } |
| 648 | |
| 649 | func TestNamespaceOverride(t *testing.T) { |
| 650 | config := &DirectClientConfig{ |
| 651 | overrides: &ConfigOverrides{ |
| 652 | Context: clientcmdapi.Context{ |
| 653 | Namespace: "foo", |
| 654 | }, |
| 655 | }, |
| 656 | } |
| 657 | |
| 658 | ns, overridden, err := config.Namespace() |
| 659 | |
| 660 | if err != nil { |
| 661 | t.Errorf("Unexpected error: %v", err) |
| 662 | } |
| 663 | |
| 664 | if !overridden { |
| 665 | t.Errorf("Expected overridden = true") |
| 666 | } |
| 667 | |
| 668 | matchStringArg("foo", ns, t) |
| 669 | } |
| 670 | |
| 671 | func TestAuthConfigMerge(t *testing.T) { |
| 672 | content := ` |
nothing calls this directly
no test coverage detected