summaryrefslogtreecommitdiff
path: root/test/regression/http_test
diff options
context:
space:
mode:
authorFrédéric Desbiens <[email protected]>2026-06-08 10:03:52 +0200
committerGitHub <[email protected]>2026-06-08 10:03:52 +0200
commit1a0e9e43a03e37ddecfb6b49e9b078d6e1803d05 (patch)
treec60ec41b4ff4fd2d7566c505cbdd423ceddd65f3 /test/regression/http_test
parent8b6e03ac30ab688bec02c69d42f2304b7f72a202 (diff)
parent4d88828b06d164a5b7e82152395a92254abcd6e4 (diff)
Merge pull request #391 from eclipse-threadx/devv6.5.1.202602_reldev
Merging changes for the v.6.5.1.202602 release
Diffstat (limited to 'test/regression/http_test')
-rw-r--r--test/regression/http_test/netx_http_basic_authenticate_test.c11
-rw-r--r--test/regression/http_test/netx_http_basic_test.c11
-rw-r--r--test/regression/http_test/netx_http_client_change_connect_port_test.c11
-rw-r--r--test/regression/http_test/netx_http_delete_basic_test.c11
-rw-r--r--test/regression/http_test/netx_http_digest_authenticate_test.c11
-rw-r--r--test/regression/http_test/netx_http_digest_authenticate_timeout_test.c11
-rw-r--r--test/regression/http_test/netx_http_get_content_length_test.c11
-rw-r--r--test/regression/http_test/netx_http_get_contentlength_packetleak_test.c11
-rw-r--r--test/regression/http_test/netx_http_get_put_referred_URI_test.c11
-rw-r--r--test/regression/http_test/netx_http_head_basic_test.c11
-rw-r--r--test/regression/http_test/netx_http_if_modified_since_test.c11
-rw-r--r--test/regression/http_test/netx_http_multipart_fragment_test.c11
-rw-r--r--test/regression/http_test/netx_http_multipart_underflow_test.c11
-rw-r--r--test/regression/http_test/netx_http_post_basic_test.c11
-rw-r--r--test/regression/http_test/netx_http_request_in_multiple_packets_test.c11
-rw-r--r--test/regression/http_test/netx_http_server_type_retrieve_test.c11
-rw-r--r--test/regression/http_test/netx_http_status_404_test.c11
17 files changed, 187 insertions, 0 deletions
diff --git a/test/regression/http_test/netx_http_basic_authenticate_test.c b/test/regression/http_test/netx_http_basic_authenticate_test.c
index 4cb9253e..21d604e7 100644
--- a/test/regression/http_test/netx_http_basic_authenticate_test.c
+++ b/test/regression/http_test/netx_http_basic_authenticate_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This case tests the basic authentication,
* name:password is the correct account
* name2:password is the wrong account
diff --git a/test/regression/http_test/netx_http_basic_test.c b/test/regression/http_test/netx_http_basic_test.c
index c2de35a0..192328b2 100644
--- a/test/regression/http_test/netx_http_basic_test.c
+++ b/test/regression/http_test/netx_http_basic_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include "tx_api.h"
#include "nx_api.h"
diff --git a/test/regression/http_test/netx_http_client_change_connect_port_test.c b/test/regression/http_test/netx_http_client_change_connect_port_test.c
index 0b9d4877..f9ff9606 100644
--- a/test/regression/http_test/netx_http_client_change_connect_port_test.c
+++ b/test/regression/http_test/netx_http_client_change_connect_port_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This case tests the ability of the HTTP Client to change ports it connects to the server on at
runtime. It initially makes a PUT request and based on server information it receives, it .
changes the connect port from the default 80 to 85. .
diff --git a/test/regression/http_test/netx_http_delete_basic_test.c b/test/regression/http_test/netx_http_delete_basic_test.c
index 114446fd..59b64bce 100644
--- a/test/regression/http_test/netx_http_delete_basic_test.c
+++ b/test/regression/http_test/netx_http_delete_basic_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This case tests basic DELETE function. */
#include "tx_api.h"
#include "nx_api.h"
diff --git a/test/regression/http_test/netx_http_digest_authenticate_test.c b/test/regression/http_test/netx_http_digest_authenticate_test.c
index 9dc6a6ee..21ad88fc 100644
--- a/test/regression/http_test/netx_http_digest_authenticate_test.c
+++ b/test/regression/http_test/netx_http_digest_authenticate_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This case tests digest authentication.
HA1 = MD5("name:NetX Duo HTTP demo:password")
= 01bb2595c9221423951ee86f3573b465
diff --git a/test/regression/http_test/netx_http_digest_authenticate_timeout_test.c b/test/regression/http_test/netx_http_digest_authenticate_timeout_test.c
index 0532c5bb..2d09cb92 100644
--- a/test/regression/http_test/netx_http_digest_authenticate_timeout_test.c
+++ b/test/regression/http_test/netx_http_digest_authenticate_timeout_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This case tests digest authentication.
HA1 = MD5("name:NetX Duo HTTP demo:Placeholderpassword")
= 01bb2595c9221423951ee86f3573b465
diff --git a/test/regression/http_test/netx_http_get_content_length_test.c b/test/regression/http_test/netx_http_get_content_length_test.c
index c00653a8..6dd4cdbc 100644
--- a/test/regression/http_test/netx_http_get_content_length_test.c
+++ b/test/regression/http_test/netx_http_get_content_length_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This case tests the get content length task which should allow zero or more white
spaces between field name (Content-Length) and value.
*/
diff --git a/test/regression/http_test/netx_http_get_contentlength_packetleak_test.c b/test/regression/http_test/netx_http_get_contentlength_packetleak_test.c
index 1cbbf873..fe7ab318 100644
--- a/test/regression/http_test/netx_http_get_contentlength_packetleak_test.c
+++ b/test/regression/http_test/netx_http_get_contentlength_packetleak_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This case tests the get content length task which should allow zero or more white
spaces between field name (Content-Length) and value.
*/
diff --git a/test/regression/http_test/netx_http_get_put_referred_URI_test.c b/test/regression/http_test/netx_http_get_put_referred_URI_test.c
index d2dec993..1f522eb0 100644
--- a/test/regression/http_test/netx_http_get_put_referred_URI_test.c
+++ b/test/regression/http_test/netx_http_get_put_referred_URI_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This case tests the ability of the HTTP Client to accept a URI resource string that does not
designate a root directory based file location. If the string begins with an HTTP: or HTTPS: (not .
case sensitive) the HTTP Client will send the string as is. (Note this does not guarantee the HTTP server .
diff --git a/test/regression/http_test/netx_http_head_basic_test.c b/test/regression/http_test/netx_http_head_basic_test.c
index ddfa5194..32bca89b 100644
--- a/test/regression/http_test/netx_http_head_basic_test.c
+++ b/test/regression/http_test/netx_http_head_basic_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This case tests basic HEAD method. */
#include "tx_api.h"
diff --git a/test/regression/http_test/netx_http_if_modified_since_test.c b/test/regression/http_test/netx_http_if_modified_since_test.c
index 31cae7fc..5c262d53 100644
--- a/test/regression/http_test/netx_http_if_modified_since_test.c
+++ b/test/regression/http_test/netx_http_if_modified_since_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This case tests filed If-Modified-field.
* if the requested variant has not been modified since the time specified in this field,
* an entity will not be returned from the server; instead, a 304 (not modified) response
diff --git a/test/regression/http_test/netx_http_multipart_fragment_test.c b/test/regression/http_test/netx_http_multipart_fragment_test.c
index 97232ecf..3dae6a88 100644
--- a/test/regression/http_test/netx_http_multipart_fragment_test.c
+++ b/test/regression/http_test/netx_http_multipart_fragment_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This case tests whether HTTP server can work well with multipart/form-data.
* server packet size 800
* client packet size 1400
diff --git a/test/regression/http_test/netx_http_multipart_underflow_test.c b/test/regression/http_test/netx_http_multipart_underflow_test.c
index 352a2c46..18e5779b 100644
--- a/test/regression/http_test/netx_http_multipart_underflow_test.c
+++ b/test/regression/http_test/netx_http_multipart_underflow_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This case tests whether HTTP server can work well with multipart/form-data.
* server packet size 800
* client packet size 1400
diff --git a/test/regression/http_test/netx_http_post_basic_test.c b/test/regression/http_test/netx_http_post_basic_test.c
index 9d6084e8..85c20f7a 100644
--- a/test/regression/http_test/netx_http_post_basic_test.c
+++ b/test/regression/http_test/netx_http_post_basic_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This case tests basic post method. */
#include "tx_api.h"
#include "nx_api.h"
diff --git a/test/regression/http_test/netx_http_request_in_multiple_packets_test.c b/test/regression/http_test/netx_http_request_in_multiple_packets_test.c
index e39b56c6..9731c2a5 100644
--- a/test/regression/http_test/netx_http_request_in_multiple_packets_test.c
+++ b/test/regression/http_test/netx_http_request_in_multiple_packets_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This case tests the ability of the HTTP server to process HTTP request string in multiple packets.
* Packet1. GET / HTTP/1.0
* Packet2. CR
diff --git a/test/regression/http_test/netx_http_server_type_retrieve_test.c b/test/regression/http_test/netx_http_server_type_retrieve_test.c
index 22693f18..b75cdb89 100644
--- a/test/regression/http_test/netx_http_server_type_retrieve_test.c
+++ b/test/regression/http_test/netx_http_server_type_retrieve_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include "tx_api.h"
#include "nx_api.h"
diff --git a/test/regression/http_test/netx_http_status_404_test.c b/test/regression/http_test/netx_http_status_404_test.c
index 30971e0a..18cc1da1 100644
--- a/test/regression/http_test/netx_http_status_404_test.c
+++ b/test/regression/http_test/netx_http_status_404_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* If Tthe server has not found anything matching the Request-URI.
* 404 should be sent. */