Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ereteog committed Aug 30, 2024
1 parent 1a497a6 commit 8dc758b
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions test/ctia/task/rollover_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,6 @@
(= version (get-in-config [:ctia :store :es :default :version])))
(format "CTIA is not properly configured for testing ES version %s."
version))
props-not-aliased {:entity :malware
:indexname (es-helpers/get-indexname app :malware)
:host "localhost"
:port es-port
:version version
:auth es-helpers/basic-auth}
state-not-aliased (init/init-es-conn! props-not-aliased services)
rollover-not-aliased (sut/rollover-store state-not-aliased)
props-aliased {:entity :sighting
:indexname (es-helpers/get-indexname app :sighting)
:host "localhost"
Expand All @@ -53,13 +45,8 @@
(let [examples (fixt/bundle 100 false)]
(helpers/POST-bulk app examples true)
(es-index/refresh! conn)))]
(is (nil? rollover-not-aliased))
(is (seq rollover-aliased))
(is (false? (:rolled_over rollover-aliased)))
(is (= 1 (count-indices)))
(post-bulk-fn)
(is (nil? (sut/rollover-store state-not-aliased)))
(is (= 1 (count-indices)))
(assert (= 1 (count-indices)))
(is (true? (:rolled_over (sut/rollover-store state-aliased))))
(is (= 2 (count-indices)))
(post-bulk-fn)
Expand Down

0 comments on commit 8dc758b

Please sign in to comment.