summaryrefslogtreecommitdiffstats
path: root/tests/surfaces.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/surfaces.rs')
-rw-r--r--tests/surfaces.rs10
1 files changed, 0 insertions, 10 deletions
diff --git a/tests/surfaces.rs b/tests/surfaces.rs
index 1df9f40..87b860d 100644
--- a/tests/surfaces.rs
+++ b/tests/surfaces.rs
@@ -11,7 +11,6 @@ fn attention_lists_a_downgrade_when_aur_moves_below_what_we_serve() {
web.publish("plain-make");
assert!(!web.get("/attention").body.contains("Downgrades"), "nothing is stale yet");
- // The maintainer reverts their version bump. We still serve the higher one.
web.fx.bump(&[("pkgver", "0.9")]);
aur_build::watch::detect::check_pkgbase(&web.env.cfg, &web.env.db, "plain-make").unwrap();
@@ -33,7 +32,6 @@ fn attention_lists_outdated_dependencies_from_the_recorded_world() {
"dep-client is fresh right after both were published"
);
- // plain-make moves; dep-client was built against the old one.
plain.bump(&[("pkgver", "2.0")]);
web.publish("plain-make");
@@ -59,20 +57,15 @@ fn the_package_page_answers_dependencies_and_staleness() {
assert!(page.body.contains("plain-make"), "the dependency is not listed");
assert!(page.body.contains("Stale"), "staleness is not shown on the package page");
- // And from the other side: what would a change to plain-make disturb?
let other = web.get("/packages/plain-make");
assert!(other.body.contains("Needed by"), "no needed-by block");
assert!(other.body.contains("dep-client"), "the dependent is not listed");
- // The timeline is the aur_commit history: one row per release, each linking
- // into AUR's cgit at that exact commit.
assert!(other.body.contains("aur.archlinux.org/cgit/aur.git/tree/?h=plain-make&id="), "no per-release cgit link");
assert!(other.body.contains("serving 2.0"), "the summary does not say what is served");
}
#[test]
fn a_manual_rebuild_reuses_the_approved_identity_without_a_new_approval() {
- // I6: rebuilding what is already approved is not a new decision. It must
- // not create an approval, and it must not need one.
let web = Web::new("plain-make");
web.publish("plain-make");
let approvals_before = web.env.query_i64("SELECT count(*) FROM approval", &[]).unwrap();
@@ -93,7 +86,6 @@ fn a_manual_rebuild_reuses_the_approved_identity_without_a_new_approval() {
.unwrap();
assert_eq!(queued, 1, "the rebuild was not queued");
- // Run it: it publishes the same version, still on the one approval.
let id: String = web
.env
.db
@@ -143,7 +135,6 @@ fn the_subscriptions_page_shows_state_and_last_check() {
assert_eq!(page.status, 200);
assert!(page.body.contains("plain-make"), "the subscription is not listed");
assert!(page.body.contains("active"), "no state shown");
- // Pause and remove are per-subscription POSTs, not links that mutate.
assert!(page.body.contains("action=\"/subscriptions/pause\""), "no pause form");
assert!(page.body.contains("action=\"/subscriptions/remove\""), "no remove form");
}
@@ -157,7 +148,6 @@ fn pausing_a_subscription_stops_detection_and_resuming_starts_it_again() {
Some(1),
"pause did not take"
);
- // A paused pkgbase is not re-detected even when upstream moves.
web.fx.bump(&[("pkgver", "3.0")]);
let report = aur_build::watch::detect::check_pkgbase(&web.env.cfg, &web.env.db, "plain-make").unwrap();
assert!(matches!(report.outcome, aur_build::watch::detect::Outcome::Paused), "a paused subscription was still inspected");