Skip to content

Commit

Permalink
Use rtcs:pass() after test success
Browse files Browse the repository at this point in the history
  • Loading branch information
shino committed Jul 17, 2015
1 parent 9a2b090 commit a07eb28
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions riak_test/tests/access_stats_test.erl
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ assert_access_stats(Format, UserConfig, {Begin, End}) ->
?assertEqual( 1, sum_samples(Format, "BucketRead", "Count", Samples)),
?assertEqual( 1, sum_samples(Format, "KeyDelete", "Count", Samples)),
?assertEqual( 1, sum_samples(Format, "BucketDelete", "Count", Samples)),
pass.
rtcs:pass().

verify_stats_lost_logging(UserConfig, RiakNodes, CSNodes) ->
KeyId = UserConfig#aws_config.access_key_id,
Expand All @@ -115,7 +115,7 @@ verify_stats_lost_logging(UserConfig, RiakNodes, CSNodes) ->
ExpectLine = io_lib:format("lost access stat: User=~s, Slice=", [KeyId]),
lager:debug("expected log line: ~s", [ExpectLine]),
true = rt:expect_in_log(CSNode, ExpectLine),
pass.
rtcs:pass().


node_samples_from_content(json, Node, Content) ->
Expand Down
2 changes: 1 addition & 1 deletion riak_test/tests/auth_bypass_test.erl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ confirm() ->
confirm_auth_bypass("riak-cs", "usage/" ++ KeyId ++ "/ab/" ++
rtcs:datetime() ++ "/" ++ rtcs:datetime(),
UserConfig, Port),
pass.
rtcs:pass().

confirm_auth_bypass_for_stats(Bucket, Key, UserConfig, Port) ->
{S3Content, CurlContent} = get_both_contents(Bucket, Key, UserConfig, Port),
Expand Down
4 changes: 2 additions & 2 deletions riak_test/tests/block_audit_test.erl
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ confirm() ->
{multibag, _} ->
lager:info("Block audit script does not supprt multibag env."),
lager:info("Skip the test."),
pass;
rtcs:pass();
_ -> confirm1()
end.

Expand Down Expand Up @@ -74,7 +74,7 @@ confirm1() ->
BlockKeysFileList = [filename:join([Home, "actual-orphaned-blocks", B]) ||
B <- [?BUCKET1, ?BUCKET2]],
tools_helper:offline_delete({RiakNodes, CSNodes, Stanchion}, BlockKeysFileList),
pass.
rtcs:pass().

setup_objects(RiakNodes, UserConfig, Bucket, Type,
KeyAlive, KeyOrphaned, KeyFalseOrphaned) ->
Expand Down
2 changes: 1 addition & 1 deletion riak_test/tests/buckets_test.erl
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ confirm() ->

ok = verify_max_buckets_per_user(UserConfig),

pass.
rtcs:pass().


verify_create_delete(UserConfig) ->
Expand Down
2 changes: 1 addition & 1 deletion riak_test/tests/gc_tests.erl
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ confirm() ->
setup_normal_obj([{"spam", 42}, {"ham", 65536}, {"egg", 7}], UserConfig),

verify_partial_gc_run(hd(CSNodes), RiakNodes, Start, End),
pass.
rtcs:pass().

setup_normal_obj(ObjSpecs, UserConfig) ->
%% Put and delete some objects
Expand Down
2 changes: 1 addition & 1 deletion riak_test/tests/legacy_s3_rewrite_test.erl
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ confirm() ->
WaitTime = 2 * rt_config:get(rt_max_wait_time),
case rtcs:cmd(Cmd, [{cd, CsSrcDir}, {env, Env}, {args, Args}], WaitTime) of
ok ->
pass;
rtcs:pass();
{error, Reason} ->
lager:error("Error : ~p", [Reason]),
error({?MODULE, Reason})
Expand Down
2 changes: 1 addition & 1 deletion riak_test/tests/list_objects_v2_test.erl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ confirm() ->
pass = list_objects_test_helper:test(UserConfig),

ok = list_to_non_existent_bucket_many_times(RiakNodes),
pass.
rtcs:pass().

assert_v2_is_default(CSNodes) ->
true = rpc:call(hd(CSNodes), riak_cs_list_objects_utils, fold_objects_for_list_keys, []),
Expand Down
6 changes: 3 additions & 3 deletions riak_test/tests/migration_15_to_20_test.erl
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,19 @@ confirm(upgrade_with_full_ops) ->
{ok, InitialState} = cs_suites:new(SetupRes),
{ok, EvolvedState} = cs_suites:fold_with_state(InitialState, upgrade_history()),
{ok, _FinalState} = cs_suites:cleanup(EvolvedState),
pass;
rtcs:pass();
confirm(upgrade_with_reduced_ops) ->
SetupRes = setup_previous(),
{ok, InitialState} = cs_suites:new(SetupRes, rtcs:reduced_ops()),
{ok, EvolvedState} = cs_suites:fold_with_state(InitialState, upgrade_history()),
{ok, _FinalState} = cs_suites:cleanup(EvolvedState),
pass;
rtcs:pass();
confirm(no_upgrade_with_reduced_ops) ->
SetupRes = rtcs:setup(2, rtcs:configs(custom_configs(current))),
{ok, InitialState} = cs_suites:new(SetupRes, cs_suites:reduced_ops()),
{ok, EvolvedState} = cs_suites:fold_with_state(InitialState, no_upgrade_history()),
{ok, _FinalState} = cs_suites:cleanup(EvolvedState),
pass.
rtcs:pass().

setup_previous() ->
PrevConfigs = rtcs:previous_configs(custom_configs(previous)),
Expand Down
2 changes: 1 addition & 1 deletion riak_test/tests/migration_mixed_test.erl
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ confirm() ->
{ok, InitialState} = cs_suites:new(SetupRes),
{ok, EvolvedState} = cs_suites:fold_with_state(InitialState, history()),
{ok, _FinalState} = cs_suites:cleanup(EvolvedState),
pass.
rtcs:pass().

setup_previous() ->
PrevConfigs = rtcs:previous_configs(custom_configs(previous)),
Expand Down
4 changes: 2 additions & 2 deletions riak_test/tests/select_gc_bucket_test.erl
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ confirm() ->
{multibag, _} ->
lager:info("select_gc_bucket script does not supprt multibag env."),
lager:info("Skip the test."),
pass;
rtcs:pass();
_ -> confirm1()
end.

Expand Down Expand Up @@ -67,7 +67,7 @@ confirm1() ->
lager:debug("select_gc_bucket.erl log:============= END"),

tools_helper:offline_delete({RiakNodes, CSNodes, Stanchion}, [BlockKeysFile]),
pass.
rtcs:pass().

upload_object(UserConfig, Bucket, normal, Key) ->
SingleBlock = crypto:rand_bytes(400),
Expand Down
2 changes: 1 addition & 1 deletion riak_test/tests/sibling_benchmark.erl
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ confirm() ->
?assertEqual(ok, erlcloud_s3:delete_bucket(?TEST_BUCKET, UserConfig)),
lager:info("User is valid on the cluster, and has no buckets"),
?assertEqual([{buckets, []}], erlcloud_s3:list_buckets(UserConfig)),
pass.
rtcs:pass().

start_object_reader(UserConfig) ->
Pid = spawn_link(fun() -> object_reader(UserConfig, 1) end),
Expand Down

6 comments on commit a07eb28

@kuenishi
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@borshop
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from kuenishi
at a07eb28

@borshop
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging basho/riak_cs/feature/stats-sys-mochi-pools = a07eb28 into borshop-integration-1194-feature/stats-sys-mochi-pools

@borshop
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

basho/riak_cs/feature/stats-sys-mochi-pools = a07eb28 merged ok, testing candidate = 3c8c1b4

@borshop
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@borshop
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding develop to borshop-integration-1194-feature/stats-sys-mochi-pools = 3c8c1b4

Please sign in to comment.