Bug 39359 - Create IPv6 test instances in KVM environment via Jenkins
Create IPv6 test instances in KVM environment via Jenkins
Status: RESOLVED WONTFIX
Product: UCS Test
Classification: Unclassified
Component: General
unspecified
Other Linux
: P5 normal (vote)
: ---
Assigned To: Bastian Reitemeier
Sönke Schwardt-Krummrich
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-09-17 10:44 CEST by Sönke Schwardt-Krummrich
Modified: 2022-09-07 17:35 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): IPv6
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sönke Schwardt-Krummrich univentionstaff 2015-09-17 10:44:04 CEST
For testing IPv6 via ucs-test, IPv6-capable UCS instances are required. This is currently only possible in our KVM environment since Amazon EC2 does not support IPv6.

The test instances shall be created via a Jenkins job and removed afterwards, if the test has finished. The cfg files for ucs-kvm-create shall be comitted to the SVN.
Comment 1 Philipp Hahn univentionstaff 2015-10-23 11:37:27 CEST
QA r64769:

+run_tests_with_parameters()
+{
bashism
> run_test_with_parameters () {

+	if [ $test_section = 'all_sections' ]
quoting
> if [ "$test_section" = all_sections ]

+		ucs-test -s $test_section -E dangerous -F junit -l "ucs-test.log"
quoting
> ucs-test -s "$test_section" ...

And it will do very bad things if "test_section" is not set or empty!


#!/bin/bash
run_test_with_parameters () {
  local s="${test_section:-}"
  case "$s" in
  all_sections|all*) s= ;;
  esac
  ucs-test ${s:+-s "$s"} -E dangerous -F junit -l "ucs-test.log" "$@"
}

# For testing
ucs-test () { local IFS=^;echo ucs-test "$*"; }
unset test_section ; run_test_with_parameters
test_section= ; run_test_with_parameters
test_section=all ; run_test_with_parameters
test_section=all_sections ; run_test_with_parameters
test_section=all_foo ; run_test_with_parameters
test_section=other ; run_test_with_parameters
test_section=other ; run_test_with_parameters and "some other" parameters
Comment 2 Julian Hupertz univentionstaff 2015-10-23 14:46:37 CEST
r64801
Changed run_tests_with_parameters() as described in Comment 1
Comment 3 Philipp Hahn univentionstaff 2020-09-24 18:17:51 CEST
Upated for UCS-5.0 and new ucs-ec2-tools, but not yet tested:

[5.0-0] bc036678b0 Bug #39359 test: Update IPv6 scenarios
 .../ipv6/autotest-300-master46-slave46.cfg         | 81 +++++--------------
 .../ipv6/autotest-301-master46-backup46.cfg        | 82 +++++--------------
 .../ipv6/autotest-302-master46-member46.cfg        | 82 +++++--------------
 .../ipv6/autotest-303-master46-slave6.cfg          | 91 +++++----------------
 .../ipv6/autotest-304-master46-backup6.cfg         | 88 +++++----------------
 .../ipv6/autotest-305-master46-member6.cfg         | 88 +++++----------------
 .../ipv6/autotest-306-master6-slave46.cfg          | 86 +++++---------------
 .../ipv6/autotest-307-master6-backup46.cfg         | 86 +++++---------------
 .../ipv6/autotest-308-master6-member46.cfg         | 86 +++++---------------
 .../scenarios/ipv6/autotest-309-master6-slave6.cfg | 92 +++++-----------------
 ...
 45 files changed, 744 insertions(+), 2693 deletions(-)
Comment 4 Philipp Hahn univentionstaff 2022-09-07 17:35:08 CEST
IPv6 test scenarios have been removed due to neglect.

[5.0-2] 064ae733bf refactor[test]: Remove IPv6 test scenarios
 test/README.md                                         | 53 ----------------------
 test/scenarios/README.md                               | 18 --------
 test/scenarios/ipv6/autotest-300-master46-slave46.cfg  | 90 -------------------------------------
 test/scenarios/ipv6/autotest-301-master46-backup46.cfg | 90 -------------------------------------
 test/scenarios/ipv6/autotest-302-master46-member46.cfg | 90 -------------------------------------
 test/scenarios/ipv6/autotest-303-master46-slave6.cfg   | 88 ------------------------------------
 test/scenarios/ipv6/autotest-304-master46-backup6.cfg  | 91 --------------------------------------
 test/scenarios/ipv6/autotest-305-master46-member6.cfg  | 91 --------------------------------------
 test/scenarios/ipv6/autotest-306-master6-slave46.cfg   | 88 ------------------------------------
 test/scenarios/ipv6/autotest-307-master6-backup46.cfg  | 88 ------------------------------------
 ...
 44 files changed, 3599 deletions(-)

If they are ever needed again restore them from git.