Project

General

Profile

« Previous | Next » 

Revision 8694

Added by Jing Tao about 10 years ago

Add the pisco account.

View differences:

test/edu/ucsb/nceas/MCTestCase.java
101 101
	private static String lterpassword;
102 102
	protected static String referraluser;
103 103
	protected static String referralpassword;
104
	protected static String piscouser;
105
	protected static String piscopassword;
104 106
	
105 107
	protected static String metacatContextDir;
106 108
	
......
124 126
			lterpassword = PropertyService.getProperty("test.lterPassword");
125 127
			referraluser = PropertyService.getProperty("test.referralUser");
126 128
            referralpassword = PropertyService.getProperty("test.referralPassword");
129
            piscouser = PropertyService.getProperty("test.piscoUser");
130
            piscopassword = PropertyService.getProperty("test.piscoPassword");
127 131
			String authenClass = PropertyService.getProperty("auth.class");
128 132
			if(authenClass != null && authenClass.equals(AUTHFILECLASSNAME)) {
129 133
			   
......
158 162
                } catch (Exception e) {
159 163
                    System.out.println("Couldn't add the user "+referraluser+" to the password file since "+e.getMessage());
160 164
                }
165
			    
166
			    try {
167
                    authFile.addUser(piscouser, groups, piscopassword, null, null, null, null, null);
168
                } catch (Exception e) {
169
                    System.out.println("Couldn't add the user "+piscouser+" to the password file since "+e.getMessage());
170
                }
161 171
			}
162 172
		} catch (IOException ioe) {
163 173
			System.err.println("Could not read property file in static block: " 

Also available in: Unified diff