Skip to content

Commit

Permalink
#27 Fixed failed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Glushko committed Feb 16, 2020
1 parent fa029a6 commit 078582e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion test/create_browser_report_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

func TestCreateBrowserReport(t *testing.T) {
assert := assert.New(t)
tangoCli := cli.NewTangoCli()
tangoCli := cli.NewTangoCli("0.0.0-test", "dummycommithash")

reportFilePath := "results/browser-report.csv"

Expand Down
22 changes: 11 additions & 11 deletions test/create_custom_report_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (

func TestCreateCustomReportWithoutFilters(t *testing.T) {
assert := assert.New(t)
tangoCli := cli.NewTangoCli()
tangoCli := cli.NewTangoCli("0.0.0-test", "dummycommithash")

reportFilePath := "results/custom-report-keep-ip-filter.csv"

Expand All @@ -39,7 +39,7 @@ func TestCreateCustomReportWithoutFilters(t *testing.T) {

func TestCreateCustomReportWithKeepIPFilter(t *testing.T) {
assert := assert.New(t)
tangoCli := cli.NewTangoCli()
tangoCli := cli.NewTangoCli("0.0.0-test", "dummycommithash")

sampleIP := "130.93.253.236"
reportFilePath := "results/custom-report-keep-ip-filter.csv"
Expand Down Expand Up @@ -71,7 +71,7 @@ func TestCreateCustomReportWithKeepIPFilter(t *testing.T) {

func TestCreateCustomReportWithKeepUAFilter(t *testing.T) {
assert := assert.New(t)
tangoCli := cli.NewTangoCli()
tangoCli := cli.NewTangoCli("0.0.0-test", "dummycommithash")

sampleUserAgent := "iPhone OS 12_3_1 like Mac OS X"
reportFilePath := "results/custom-report-keep-ua-filter.csv"
Expand Down Expand Up @@ -103,7 +103,7 @@ func TestCreateCustomReportWithKeepUAFilter(t *testing.T) {

func TestCreateCustomReportWithUAFilter(t *testing.T) {
assert := assert.New(t)
tangoCli := cli.NewTangoCli()
tangoCli := cli.NewTangoCli("0.0.0-test", "dummycommithash")

sampleUserAgent := "iPhone OS 12_3_1 like Mac OS X"
reportFilePath := "results/custom-report-ua-filter.csv"
Expand Down Expand Up @@ -132,7 +132,7 @@ func TestCreateCustomReportWithUAFilter(t *testing.T) {

func TestCreateCustomReportWithKeepUriFilter(t *testing.T) {
assert := assert.New(t)
tangoCli := cli.NewTangoCli()
tangoCli := cli.NewTangoCli("0.0.0-test", "dummycommithash")

sampleURI := "/category200"
reportFilePath := "results/custom-report-keep-uri-filter.csv"
Expand Down Expand Up @@ -162,7 +162,7 @@ func TestCreateCustomReportWithKeepUriFilter(t *testing.T) {

func TestCreateCustomReportWithUriFilter(t *testing.T) {
assert := assert.New(t)
tangoCli := cli.NewTangoCli()
tangoCli := cli.NewTangoCli("0.0.0-test", "dummycommithash")

sampleURI := "/category200"
reportFilePath := "results/custom-report-uri-filter.csv"
Expand Down Expand Up @@ -191,7 +191,7 @@ func TestCreateCustomReportWithUriFilter(t *testing.T) {

func TestCreateCustomReportWithMultipleAssetFilters(t *testing.T) {
assert := assert.New(t)
tangoCli := cli.NewTangoCli()
tangoCli := cli.NewTangoCli("0.0.0-test", "dummycommithash")

assetPattern1 := "/pub/static/"
assetPattern2 := "/pub/media/"
Expand Down Expand Up @@ -225,7 +225,7 @@ func TestCreateCustomReportWithMultipleAssetFilters(t *testing.T) {

func TestCreateCustomReportWithKeepTimeFilter(t *testing.T) {
assert := assert.New(t)
tangoCli := cli.NewTangoCli()
tangoCli := cli.NewTangoCli("0.0.0-test", "dummycommithash")

testPeriodStart := "2019-07-08 00:00:00 -0200"
testPeriodFrameEnd := "2019-07-08 00:00:20 -0200"
Expand Down Expand Up @@ -263,7 +263,7 @@ func TestCreateCustomReportWithKeepTimeFilter(t *testing.T) {

func TestCreateCustomReportWithMultipleSystemIpProcessor(t *testing.T) {
assert := assert.New(t)
tangoCli := cli.NewTangoCli()
tangoCli := cli.NewTangoCli("0.0.0-test", "dummycommithash")

reportFilePath := "results/custom-report-with-system-ips-processor.csv"
systemIPSubnet1 := "157.52.64.0/18"
Expand Down Expand Up @@ -305,7 +305,7 @@ func TestCreateCustomReportWithMultipleSystemIpProcessor(t *testing.T) {

func TestCreateCustomReportWithSubnetSystemIpProcessor(t *testing.T) {
assert := assert.New(t)
tangoCli := cli.NewTangoCli()
tangoCli := cli.NewTangoCli("0.0.0-test", "dummycommithash")

reportFilePath := "results/custom-report-with-system-ips-processor.csv"
systemIPSubnet := "157.52.64.0/18"
Expand Down Expand Up @@ -343,7 +343,7 @@ func TestCreateCustomReportWithSubnetSystemIpProcessor(t *testing.T) {

func TestCreateCustomReportWithSingleSystemIpProcessor(t *testing.T) {
assert := assert.New(t)
tangoCli := cli.NewTangoCli()
tangoCli := cli.NewTangoCli("0.0.0-test", "dummycommithash")

reportFilePath := "results/custom-report-with-system-ips-processor.csv"
systemIP := "104.156.90.48"
Expand Down
2 changes: 1 addition & 1 deletion test/create_geo_report_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func TestCreateGeoReportWithSystemIpProcessor(t *testing.T) {
return

assert := assert.New(t)
tangoCli := cli.NewTangoCli()
tangoCli := cli.NewTangoCli("0.0.0-test", "dummycommithash")

reportFilePath := "results/geo-report-with-system-ip-processor.csv"

Expand Down

0 comments on commit 078582e

Please sign in to comment.