Skip to content

Commit

Permalink
Fix revision
Browse files Browse the repository at this point in the history
  • Loading branch information
AbrilRBS committed Jan 20, 2025
1 parent 76dc21b commit c657cd1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/test_artifactory_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,14 +488,14 @@ class Pkg(ConanFile):
run("conan create .")
out = run("conan list mypkg/1.0:*#* -f=json")
local_list_json_out = json.loads(out)
local_recipe_timestamp = local_list_json_out["Local Cache"]["mypkg/1.0"]["revisions"]["fe5715e6b3823055d76be6a47914b243"]["timestamp"]
local_package_timestamp = local_list_json_out["Local Cache"]["mypkg/1.0"]["revisions"]["fe5715e6b3823055d76be6a47914b243"]["packages"]["da39a3ee5e6b4b0d3255bfef95601890afd80709"]["revisions"]["0ba8627bd47edc3a501e8f0eb9a79e5e"]["timestamp"]
local_recipe_timestamp = local_list_json_out["Local Cache"]["mypkg/1.0"]["revisions"]["9d6b6bdeb9bb50a31acc8f970f562b3c"]["timestamp"]
local_package_timestamp = local_list_json_out["Local Cache"]["mypkg/1.0"]["revisions"]["9d6b6bdeb9bb50a31acc8f970f562b3c"]["packages"]["da39a3ee5e6b4b0d3255bfef95601890afd80709"]["revisions"]["0ba8627bd47edc3a501e8f0eb9a79e5e"]["timestamp"]
run("conan upload mypkg/1.0 -c -r extensions-stg")

out = run("conan list mypkg/1.0:*#* -r=extensions-stg -f=json", stderr=None)
remote_stg_list_json_out = json.loads(out)
remote_stg_recipe_timestamp = remote_stg_list_json_out["extensions-stg"]["mypkg/1.0"]["revisions"]["fe5715e6b3823055d76be6a47914b243"]["timestamp"]
remote_stg_package_timestamp = remote_stg_list_json_out["extensions-stg"]["mypkg/1.0"]["revisions"]["fe5715e6b3823055d76be6a47914b243"]["packages"]["da39a3ee5e6b4b0d3255bfef95601890afd80709"]["revisions"]["0ba8627bd47edc3a501e8f0eb9a79e5e"]["timestamp"]
remote_stg_recipe_timestamp = remote_stg_list_json_out["extensions-stg"]["mypkg/1.0"]["revisions"]["9d6b6bdeb9bb50a31acc8f970f562b3c"]["timestamp"]
remote_stg_package_timestamp = remote_stg_list_json_out["extensions-stg"]["mypkg/1.0"]["revisions"]["9d6b6bdeb9bb50a31acc8f970f562b3c"]["packages"]["da39a3ee5e6b4b0d3255bfef95601890afd80709"]["revisions"]["0ba8627bd47edc3a501e8f0eb9a79e5e"]["timestamp"]

assert local_recipe_timestamp != remote_stg_recipe_timestamp
assert local_package_timestamp != remote_stg_package_timestamp
Expand All @@ -509,8 +509,8 @@ class Pkg(ConanFile):

out = run("conan list mypkg/1.0:*#* -r=extensions-prod -f=json", stderr=None)
remote_prod_list_json_out = json.loads(out)
remote_prod_recipe_timestamp = remote_prod_list_json_out["extensions-prod"]["mypkg/1.0"]["revisions"]["fe5715e6b3823055d76be6a47914b243"]["timestamp"]
remote_prod_package_timestamp = remote_prod_list_json_out["extensions-prod"]["mypkg/1.0"]["revisions"]["fe5715e6b3823055d76be6a47914b243"]["packages"]["da39a3ee5e6b4b0d3255bfef95601890afd80709"]["revisions"]["0ba8627bd47edc3a501e8f0eb9a79e5e"]["timestamp"]
remote_prod_recipe_timestamp = remote_prod_list_json_out["extensions-prod"]["mypkg/1.0"]["revisions"]["9d6b6bdeb9bb50a31acc8f970f562b3c"]["timestamp"]
remote_prod_package_timestamp = remote_prod_list_json_out["extensions-prod"]["mypkg/1.0"]["revisions"]["9d6b6bdeb9bb50a31acc8f970f562b3c"]["packages"]["da39a3ee5e6b4b0d3255bfef95601890afd80709"]["revisions"]["0ba8627bd47edc3a501e8f0eb9a79e5e"]["timestamp"]

assert remote_stg_recipe_timestamp == remote_prod_recipe_timestamp
assert remote_stg_package_timestamp == remote_prod_package_timestamp

0 comments on commit c657cd1

Please sign in to comment.