Resolve "Fix tests"

Proposers

  • name-of-proposer-1 (institution-of-proposer-1)
  • name-of-proposer-2 (institution-of-proposer-2) ...

Description

Describe your proposal in ~1000 characters. You can reference external content listed in section "References" as [Ref-1].

Demo or definition of done

Describe which high level conditions needs to be fulfilled to demonstrate this feature implementation is completed. You can reference external content (example, demo paper) listed in section "References" as [Ref-2].

References

  1. Reference name
  2. Author1, Author2, Author3, et. al., “My demo using feature,” in Conference-Name Demo Track, 20XX.

Acknowledgements

This work is funded by the European Commission through the project with Grant Agreement number . example HORIZON-JU-SNS-2022 FLEX-SCALE project with Grant Agreement number 101096909.

Closes #225 (closed)

Merge request reports

Loading
+1 −1
Changes for helm/scripts/run_remote_capif_tests.sh: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -52,7 +52,7 @@ INPUT_OPTIONS=$@
# Check if input is provided
if [ -z "$1" ]; then
    # Set default value if no input is provided
    INPUT_OPTIONS="--include all"
    INPUT_OPTIONS="--include all --exclude interconnection"
fi

cd $CAPIF_BASE_DIR
+19 −21
Changes for services/register/config.yaml: 19 added lines, 21 removed lines.
Original line number Diff line number Diff line
mongo: {
  'user': 'root',
  'password': 'example',
  'db': 'capif_users',
  'col': 'user',
  'col_capif_configuration': "capif_configuration",
  'admins': 'admins',
  'host': 'mongo_register',
  'port': '27017'
}
mongo:
  user: "root"
  password: "example"
  db: "capif_users"
  col: "user"
  col_capif_configuration: "capif_configuration"
  admins: "admins"
  host: "mongo_register"
  port: "27017"

ca_factory:
  url: !ENV ${VAULT_HOSTNAME}
@@ -16,18 +15,17 @@ ca_factory:
  verify: False


ccf: {
  "url": "capifcore",
  "helper_remove_user": "/helper/deleteEntities/"
}
ccf:
  url: !ENV ${CAPIF_HOSTNAME}
  helper_remove_user: "/helper/deleteEntities/"

register: {
  "register_uuid": '6ba7b810-9dad-11d1-80b4-00c04fd430c8',
  "refresh_expiration": 30, #days
  "token_expiration": 10, #mins
  "admin_users": {admin_user: "admin",
                admin_pass: "password123"}
}
register:
  register_uuid: '6ba7b810-9dad-11d1-80b4-00c04fd430c8'
  refresh_expiration: 30 #days
  token_expiration: 10 #mins
  admin_users:
    admin_user: "admin"
    admin_pass: "password123"

capif_configuration:
  config_description: Default Register Configuration
+1 −1
Changes for services/run_capif_tests.sh: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -121,7 +121,7 @@ INPUT_OPTIONS=$@
# Check if input is provided
if [ -z "$1" ]; then
    # Set default value if no input is provided
    INPUT_OPTIONS="--include all"
    INPUT_OPTIONS="--include all --exclude interconnection"
fi

docker >/dev/null 2>/dev/null
+23 −3
Changes for tests/features/Helper/Interconnection API/interconnection.robot: 23 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@ Interconnection 2 CCF

    ${DESTINATION_PROVIDER_DOMAIN}=    Set Variable    capifcore-b:1443

    ${ccf_id}=    Get Capif Ccf Id
    ${ccf_id_a}=    Get Capif Ccf Id

    ${body}=    Create Interconnection Request Body    ${DESTINATION_PROVIDER_DOMAIN}
    ${resp}=    Post Request Capif
@@ -37,12 +37,23 @@ Interconnection 2 CCF
    Should Be Equal As Integers    ${resp.status_code}    201
    Log Dictionary    ${resp.json()}

    ${ccf_id_b}=   Set Variable    ${resp.json()['ccfId']}

    # Delete interconnection
    ${resp}=    Delete Request Capif
    ...    /helper/interconnection/request/${ccf_id_b}
    ...    server=${CAPIF_HTTPS_URL}
    ...    verify=ca.crt
    ...    username=${SUPERADMIN_USERNAME}

    Should Be Equal As Integers    ${resp.status_code}    204

Interconnection 2 CCF X
    [Tags]    interconnection-2

    ${DESTINATION_PROVIDER_DOMAIN}=    Set Variable    capifcore-b:1443

    ${ccf_id}=    Get Capif Ccf Id
    ${ccf_id_a}=    Get Capif Ccf Id

    ${ccf_crt}=    Read File Utf8    ${CCF_USERNAME}.crt
    ${ccf_key}=    Read File Utf8    ${CCF_USERNAME}.key
@@ -50,7 +61,7 @@ Interconnection 2 CCF X

    ${body}=    Create Connection Request Body
    ...    ${ccf_ca}
    ...    ${ccf_id}
    ...    ${ccf_id_a}
    ...    ${DESTINATION_PROVIDER_DOMAIN}
    ...    ${ccf_crt}
    ${resp}=    Post Request Capif
@@ -62,3 +73,12 @@ Interconnection 2 CCF X

    Should Be Equal As Integers    ${resp.status_code}    201
    Log Dictionary    ${resp.json()}

    # Delete interconnection
    ${resp}=    Delete Request Capif
    ...    /helper/interconnection/establish/${ccf_id_a}
    ...    server=${CAPIF_HTTPS_URL}
    ...    verify=ca.crt
    ...    username=${CCF_USERNAME}

    Should Be Equal As Integers    ${resp.status_code}    204
Loading