Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Commit

Permalink
test(e2e): use random strings instead of UUID helper
Browse files Browse the repository at this point in the history
  • Loading branch information
coderbyheart committed Oct 23, 2020
1 parent 390dfb5 commit 4f8da4d
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 13 deletions.
3 changes: 1 addition & 2 deletions feature-runner/run-features.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import {
WorkGroupName,
} from '../historicalData/settings'
import { athenaStepRunners } from './steps/athena'
import { uuidHelper } from './steps/uuidHelper'
import { STS, CloudFormation } from 'aws-sdk'
import { v4 } from 'uuid'
import { region } from '../cdk/regions'
Expand Down Expand Up @@ -152,7 +151,6 @@ program
.addStepRunners(athenaStepRunners(world))
.addStepRunners(bifravstStepRunners(world))
.addStepRunners(firmwareCIStepRunners(world))
.addStepRunners([uuidHelper])
.addStepRunners(storageStepRunners())
.addStepRunners(
randomStepRunners({
Expand All @@ -167,6 +165,7 @@ program
.toString(36)
.replace(/[^a-z]+/g, ''),
),
UUID: (): string => v4(),
},
}),
)
Expand Down
9 changes: 0 additions & 9 deletions feature-runner/steps/uuidHelper.ts

This file was deleted.

2 changes: 1 addition & 1 deletion features/FOTA.feature
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Feature: Device Firmware Upgrade over the air
Scenario: Create a new firmware upgrade as a user

Given I am authenticated with Cognito
And I store a UUIDv4 as "jobId"
Given I have a random UUID in "jobId"
When I execute "putObject" of the AWS S3 SDK with
"""
{
Expand Down
2 changes: 1 addition & 1 deletion features/FirmwareCI.feature
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Feature: Schedule CI runs of firmware builds
This happens for every firmware change

# The job id needs to be unique, do not use the git commit hash
Given I store a UUIDv4 as "ciJobId"
Given I have a random UUID in "ciJobId"

# Create a pre-signed URL which will be used by the firmware CI
# runner to store the log output.
Expand Down

0 comments on commit 4f8da4d

Please sign in to comment.