mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-18 15:55:12 +08:00
Added XFAIl redirect tesst to t_auth.c
This commit is contained in:
parent
0a954fc58d
commit
7ea62784ce
@ -10,6 +10,9 @@ static char* URL1 =
|
||||
/* user:pwd from .dodsrc*/
|
||||
static char* URL2 =
|
||||
"http://remotetest.unidata.ucar.edu/thredds/dodsC/restrict/testData.nc";
|
||||
/* Test redirect */
|
||||
static char* URL3 =
|
||||
"http://tiggeUser:tigge@thredds-test.ucar.edu/thredds/dodsC/restrict/testData.nc";
|
||||
|
||||
/* .dodsrc file */
|
||||
static char* CONTENT = "HTTP.CREDENTIALS.USER=tiggeUser\nHTTP.CREDENTIALS.PASSWORD=tigge\n";
|
||||
@ -68,5 +71,19 @@ main(int argc, char** argv)
|
||||
fflush(stdout);
|
||||
}
|
||||
unlink(".dodsrc"); /* delete the file */
|
||||
|
||||
printf("Testing: Http Basic Redirect\n\n");
|
||||
if(1) {
|
||||
printf("Basic redirect: %s\n",URL3);
|
||||
retval = nc_open(URL3, 0, &ncid);
|
||||
if(retval != NC_NOERR) {
|
||||
printf("*** XFAIL: Basic redirect\n");
|
||||
} else {
|
||||
printf("*** PASS: Basic redirect\n");
|
||||
retval = nc_close(ncid);
|
||||
}
|
||||
fflush(stdout);
|
||||
}
|
||||
|
||||
return !pass;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user