diff options
Diffstat (limited to 'test/regression/smtp_test')
11 files changed, 121 insertions, 0 deletions
diff --git a/test/regression/smtp_test/netx_smtp_abnormal_packet_test.c b/test/regression/smtp_test/netx_smtp_abnormal_packet_test.c index 2a1e093e..eaf43957 100644 --- a/test/regression/smtp_test/netx_smtp_abnormal_packet_test.c +++ b/test/regression/smtp_test/netx_smtp_abnormal_packet_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 tests processing abnormal packet. */ diff --git a/test/regression/smtp_test/netx_smtp_auth_logon_function_test.c b/test/regression/smtp_test/netx_smtp_auth_logon_function_test.c index d2f1f4ab..e7b7f5e0 100644 --- a/test/regression/smtp_test/netx_smtp_auth_logon_function_test.c +++ b/test/regression/smtp_test/netx_smtp_auth_logon_function_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 NetX test concentrates on the basic SMTP operation. The Server supports auth login, auth plain and will send a one packet response to the EHLO message. The Client then authenticates itself by AUTH LOGIN, sends a message of three packets, and quits. */ diff --git a/test/regression/smtp_test/netx_smtp_auth_no_type_function_test.c b/test/regression/smtp_test/netx_smtp_auth_no_type_function_test.c index 3cf00f70..a58a1776 100644 --- a/test/regression/smtp_test/netx_smtp_auth_no_type_function_test.c +++ b/test/regression/smtp_test/netx_smtp_auth_no_type_function_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 NetX test concentrates on the basic SMTP operation. The Server supports auth login, auth plain and will send a one packet response to the EHLO message. The Client then authenticates itself by AUTH LOGIN, sends a message of three packets, and quits. */ diff --git a/test/regression/smtp_test/netx_smtp_auth_no_type_test.c b/test/regression/smtp_test/netx_smtp_auth_no_type_test.c index 06a4db24..148d079e 100644 --- a/test/regression/smtp_test/netx_smtp_auth_no_type_test.c +++ b/test/regression/smtp_test/netx_smtp_auth_no_type_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 NetX test concentrates on the basic SMTP operation. The Server supports auth login, auth plain and will send a one packet response to the EHLO message. The Client then authenticates itself by AUTH LOGIN, sends a message of three packets, and quits. */ diff --git a/test/regression/smtp_test/netx_smtp_auth_none_test.c b/test/regression/smtp_test/netx_smtp_auth_none_test.c index 52b44941..cd48989f 100644 --- a/test/regression/smtp_test/netx_smtp_auth_none_test.c +++ b/test/regression/smtp_test/netx_smtp_auth_none_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 NetX tests an SMTP Server configured for no authentication (the server response to EHLO message contains no AUTH parameters). The client if configured for LOGIN or PLAIN authentication can still try to authenticate itself but the diff --git a/test/regression/smtp_test/netx_smtp_basic_function_test.c b/test/regression/smtp_test/netx_smtp_basic_function_test.c index 96bb82a9..85fca3d2 100644 --- a/test/regression/smtp_test/netx_smtp_basic_function_test.c +++ b/test/regression/smtp_test/netx_smtp_basic_function_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 NetX test concentrates on the basic SMTP operation. The Server supports auth login, auth plain and will send a one packet response to the EHLO message. The Client then authenticates itself by AUTH LOGIN, sends a message of three packets, and quits. */ diff --git a/test/regression/smtp_test/netx_smtp_invalid_release_test.c b/test/regression/smtp_test/netx_smtp_invalid_release_test.c index 7153f764..2c34d1a3 100644 --- a/test/regression/smtp_test/netx_smtp_invalid_release_test.c +++ b/test/regression/smtp_test/netx_smtp_invalid_release_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 NetX test concentrates on validating a bug in _nx_smtp_rsp_greeting. The packet released in _nx_smtp_utility_read_server_code can be released again. */ diff --git a/test/regression/smtp_test/netx_smtp_missing_last_250_EHLO_message_test.c b/test/regression/smtp_test/netx_smtp_missing_last_250_EHLO_message_test.c index ec474fae..c1903484 100644 --- a/test/regression/smtp_test/netx_smtp_missing_last_250_EHLO_message_test.c +++ b/test/regression/smtp_test/netx_smtp_missing_last_250_EHLO_message_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 NetX tests the SMTP client for handling a server 250 reply to EHLO which has multiple 250 parameters but none of them have the 'final' 250 code e.g. 250 followed by space. Therefore the SMTP client should abort the connection. The simulated server should not diff --git a/test/regression/smtp_test/netx_smtp_two_packet_EHLO_auth_last_message_test.c b/test/regression/smtp_test/netx_smtp_two_packet_EHLO_auth_last_message_test.c index 9daea52c..f9611a30 100644 --- a/test/regression/smtp_test/netx_smtp_two_packet_EHLO_auth_last_message_test.c +++ b/test/regression/smtp_test/netx_smtp_two_packet_EHLO_auth_last_message_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 NetX tests the SMTP client for handling a server 250 reply to EHLO which has multiple 250 parameters. The AUTH parameters are located in the second packet, not the first! diff --git a/test/regression/smtp_test/netx_smtp_two_packet_EHLO_message_test.c b/test/regression/smtp_test/netx_smtp_two_packet_EHLO_message_test.c index fdb9a801..367391a7 100644 --- a/test/regression/smtp_test/netx_smtp_two_packet_EHLO_message_test.c +++ b/test/regression/smtp_test/netx_smtp_two_packet_EHLO_message_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 NetX tests the SMTP client for handling a server 250 reply to EHLO which has multiple 250 parameters. It is supposed to parse the entire message over one or more packets for the last 250 code. The last 250 code is followed by a space after the 250 code. The previous diff --git a/test/regression/smtp_test/smtp_server_packets.c b/test/regression/smtp_test/smtp_server_packets.c index af021d4e..0efd6e2e 100644 --- a/test/regression/smtp_test/smtp_server_packets.c +++ b/test/regression/smtp_test/smtp_server_packets.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 */ +/***************************************************************************/ + /* Frame (239 bytes) */ char response_220_greetings_pkt[185] = { 0x32, 0x32, /* ...v..22 */ |
