Grid Community Toolkit  6.2.1705709074 (tag: v6.2.20240202)
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
globus_url_test.c File Reference

Tests for the Globus URL parser. More...

#include "globus_common.h"
#include <stdio.h>

Functions

int test_globus_url (void)
 Test the Globus URL parser. More...
 

Detailed Description

Tests for the Globus URL parser.

Function Documentation

int test_globus_url ( void  )

Test the Globus URL parser.

Exercise the globus_url_parse() function with a set of valid and invalid URL strings.

Test:
Parse well-formed FTP URL containing scheme, host, and path with globus_url_parse()
Test:
Parse well-formed FTP URL containing scheme, username, hex-encoded password, host, and path with globus_url_parse()
Test:
Parse well-formed HTTP URL containing scheme and host with globus_url_parse()
Test:
Parse a well-formed HTTP URL containing scheme, host, and partially hex-encoded path with globus_url_parse()
Test:
Parse and absolute file URL
Test:
Parse an absolute file URL with a host component
Test:
Parse an absolute file URL with a host component
Test:
Parse an absolute file URL with several leading /s
Test:
Parse an absolute file url with only one / after the initial :
Test:
Parse an ftp url with username, password, host, path
Test:
Parse an x-nexus URL
Test:
Parse an ldap URL
Test:
Parse an ldap URL
Test:
Parse a URL with a non-standard URL scheme
Test:
URL failure with bad ldap attributes
Test:
URL failure with bad ldap URL
Test:
URL failure with bad ftp path
Test:
URL failure with bad ftp port
Test:
URL failure with bad ftp port
Test:
URL failure with bad nexus host
Test:
URL failure with bad nexus host
Test:
URL failure with bad ftp user
Test:
URL failure with bad ftp user
Test:
URL failure with bad ftp user
Test:
URL failure with bad file path
Test:
URL failure with bad file path
Test:
URL failure with bad ftp scheme
Test:
URL failure with bad scheme
Test:
URL failure with bad scheme