Skip to content

test.sh is making incorrect assumptions #3

@franck-boullier

Description

@franck-boullier

The problems:

Incorrect AWS profile:

In the file test.sh
The code reads:

-H "Authorization: Bearer $(aws --profile uneet-dev ssm get-parameters --names API_ACCESS_TOKEN --with-decryption --query Parameters[0].Value --output text)" \

This IS WRONG: we should NOT use uneet-dev here but the correct value based on

  • Installation ID (AWS parameter INSTALLATION_ID)
  • Stage (AWS parameter STAGE)

The correct value for uneet-dev for a given environment is also declared in Travis Setting.
It is then passed on as the variable TRAVIS_PROFILE.

Problematic assumptions:

"userId": "32",

assumes that there is a user with userId = 32 in the installation <-- This might NOT be true.

"userApiKey": "kwmJ6OT6tzEdmctCrT3uEt7kMnLEqlzckW4eaTvX"

assumes that userApiKey for user 32 has a certain value in the installation <-- This might NOT be true.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions