Skip to content

Commit

Permalink
Merge pull request #59 from aau-network-security/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
mrtrkmn authored Aug 18, 2021
2 parents e98175d + e63d827 commit 41651f8
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion database/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var (
"finish_expected timestamp, " +
"finished_at timestamp," +
"createdBy text," +
"onlyVPN boolean," +
"onlyVPN integer," +
"secretKey text," +
"disabledExercises text);"

Expand Down
4 changes: 2 additions & 2 deletions database/store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ func TestAddEvent(t *testing.T) {
Status: 1,
ExpectedFinishTime: "2020-05-21 14:35:01",
FinishedAt: "0001-01-01 00:00:00", // it means that event is not finished yet
OnlyVPN: false,
OnlyVPN: 0,
SecretKey: "",
DisabledExercises: "",
}
Expand Down Expand Up @@ -342,7 +342,7 @@ func TestMultipleEventWithSameTag(t *testing.T) {
Capacity: 2,
StartTime: "2020-06-20 14:35:01",
ExpectedFinishTime: "2020-06-21 14:35:01",
OnlyVPN: false,
OnlyVPN: 0,
SecretKey: "",
DisabledExercises: "",
}
Expand Down
2 changes: 1 addition & 1 deletion model/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type Event struct {
ExpectedFinishTime string
FinishedAt string
CreatedBy string
OnlyVPN bool
OnlyVPN int32
SecretKey string
DisabledExercises string
}
Expand Down
16 changes: 8 additions & 8 deletions proto/store.pb.go

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

4 changes: 2 additions & 2 deletions proto/store.proto
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ message AddEventRequest{
string finishedAt = 9;
int32 status = 10;
string createdBy = 11;
bool onlyVPN = 12;
int32 onlyVPN = 12;
string secretKey = 13;
string disabledExercises = 14;
}
Expand Down Expand Up @@ -159,7 +159,7 @@ message GetEventResponse{
string finishedAt = 9;
int32 status = 10;
string createdBy =11;
bool onlyVPN = 12;
int32 onlyVPN = 12; // 0 browser // 1 VPN 2 // VPN + Browser
string secretKey = 13;
string disabledExercises = 14;
}
Expand Down

0 comments on commit 41651f8

Please sign in to comment.