# The contents of this file are subject to the terms of the # Common Development and Distribution License (the "License"). # You may not use this file except in compliance with the License. # See the License for the specific language governing permissions # and limitations under the License. # When distributing Covered Code, include this CDDL HEADER in each # If applicable, add the following below this CDDL HEADER, with the # fields enclosed by brackets "[]" replaced with your own identifying # information: Portions Copyright [yyyy] [name of copyright owner] # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # Copyright (c) 2013, 2016 by Delphix. All rights reserved. # Test that a set of valid names can be used to create pools. Further # verify that the created pools can be destroyed. # 1) For each valid character in the character set, try to create # 2) Given a list of valid pool names, try to create and destroy # pools with the given names. log_assert "Ensure that pool names can use the ASCII subset of UTF-8" log_note "Ensure letters of the alphabet are allowable" for name in A B C D E F G H I J K L M \
N O P Q R S T U V W X Y Z \
a b c d e f g h i j k l m \
n o p q r s t u v w x y z
log_note "Ensure a variety of unusual names passes" for name in "a.............................." "a_" "a-" "a:" \
"a." "a123456" "bc0t0d0" "m1rr0r_p00l" "ra1dz_p00l" \
"araidz2" "C0t2d0" "cc0t0" "raid2:-_." "mirr_:-." \
"m1rr0r-p00l" "ra1dz-p00l" "spar3_p00l" \
"spar3-p00l" "hiddenmirrorpool" "hiddenraidzpool" \
# Since the naming convention applies to datasets too, # create datasets with the same names as above. log_pass "Valid pool names were accepted correctly."