Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestNamespaceMatch (0.79 sec)

  1. pkg/config/analysis/analyzers/authz/authorizationpolicies_test.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package authz
    
    import (
    	"testing"
    
    	"istio.io/istio/pkg/test/util/assert"
    )
    
    func TestNamespaceMatch(t *testing.T) {
    	assert.Equal(t, namespaceMatch("test-login", "*"), true)
    
    	assert.Equal(t, namespaceMatch("test-login", "test-*"), true)
    	assert.Equal(t, namespaceMatch("test-login", "*-test"), false)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Dec 14 19:27:32 UTC 2021
    - 1022 bytes
    - Viewed (0)
Back to top