Skip to content

Commit

Permalink
remove next_seen_at since it's unwanted
Browse files Browse the repository at this point in the history
  • Loading branch information
KCarretto committed Jan 21, 2024
1 parent 6bc6024 commit 667b141
Show file tree
Hide file tree
Showing 20 changed files with 7 additions and 631 deletions.
9 changes: 0 additions & 9 deletions tavern/internal/c2/api_claim_tasks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ func TestClaimTasks(t *testing.T) {
wantBeaconExist bool
wantBeaconLastSeenAtBefore time.Time
wantBeaconLastSeenAtAfter time.Time
wantBeaconNextSeenAtBefore time.Time
wantBeaconNextSeenAtAfter time.Time
}{
{
name: "First_Callback",
Expand All @@ -65,8 +63,6 @@ func TestClaimTasks(t *testing.T) {
wantCode: codes.OK,

wantBeaconExist: true,
wantBeaconNextSeenAtBefore: time.Now().UTC().Add(120 * time.Second),
wantBeaconNextSeenAtAfter: time.Now().UTC().Add(-120 * time.Second),
wantBeaconLastSeenAtBefore: time.Now().UTC().Add(10 * time.Second),
wantBeaconLastSeenAtAfter: time.Now().UTC().Add(-10 * time.Second),
},
Expand All @@ -92,8 +88,6 @@ func TestClaimTasks(t *testing.T) {
wantCode: codes.OK,

wantBeaconExist: true,
wantBeaconNextSeenAtBefore: time.Now().UTC().Add(200 * time.Second),
wantBeaconNextSeenAtAfter: time.Now().UTC().Add(-200 * time.Second),
wantBeaconLastSeenAtBefore: time.Now().UTC().Add(10 * time.Second),
wantBeaconLastSeenAtAfter: time.Now().UTC().Add(-10 * time.Second),
},
Expand Down Expand Up @@ -124,8 +118,6 @@ func TestClaimTasks(t *testing.T) {
wantCode: codes.OK,

wantBeaconExist: true,
wantBeaconNextSeenAtBefore: time.Now().UTC().Add(200 * time.Second),
wantBeaconNextSeenAtAfter: time.Now().UTC().Add(-200 * time.Second),
wantBeaconLastSeenAtBefore: time.Now().UTC().Add(10 * time.Second),
wantBeaconLastSeenAtAfter: time.Now().UTC().Add(-10 * time.Second),
},
Expand Down Expand Up @@ -164,7 +156,6 @@ func TestClaimTasks(t *testing.T) {

// Beacon Assertions
assert.WithinRange(t, testBeacon.LastSeenAt, tc.wantBeaconLastSeenAtAfter, tc.wantBeaconLastSeenAtBefore)
assert.WithinRange(t, testBeacon.NextSeenAt, tc.wantBeaconNextSeenAtAfter, tc.wantBeaconNextSeenAtBefore)
})
}
}
13 changes: 1 addition & 12 deletions tavern/internal/ent/beacon.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 0 additions & 15 deletions tavern/internal/ent/beacon/beacon.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

55 changes: 0 additions & 55 deletions tavern/internal/ent/beacon/where.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

91 changes: 2 additions & 89 deletions tavern/internal/ent/beacon_create.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 667b141

Please sign in to comment.