Skip to content

Commit

Permalink
[JENKINS-41124] Add re-verification to all the migration tests after …
Browse files Browse the repository at this point in the history
…Jenkins restart
  • Loading branch information
stephenc committed Jan 19, 2017
1 parent 663cb3d commit 60e82a9
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions src/test/java/integration/MigrationTest.java
Expand Up @@ -99,6 +99,13 @@ public void evaluate() throws Throwable {
assertDataMigrated(foo);
}
});
r.addStep(new Statement() {
@Override
public void evaluate() throws Throwable {
TopLevelItem foo = r.j.jenkins.getItem("foo");
assertDataMigrated(foo);
}
});
}

/**
Expand All @@ -114,6 +121,13 @@ public void evaluate() throws Throwable {
assertDataMigrated(foo);
}
});
r.addStep(new Statement() {
@Override
public void evaluate() throws Throwable {
TopLevelItem foo = r.j.jenkins.getItem("foo");
assertDataMigrated(foo);
}
});
}

@Test
Expand All @@ -130,6 +144,13 @@ public void evaluate() throws Throwable {
assertDataMigrated(foo);
}
});
r.addStep(new Statement() {
@Override
public void evaluate() throws Throwable {
TopLevelItem foo = r.j.jenkins.getItem("foo");
assertDataMigrated(foo);
}
});
}

/**
Expand All @@ -146,6 +167,13 @@ public void evaluate() throws Throwable {
assertDataMigrated(foo);
}
});
r.addStep(new Statement() {
@Override
public void evaluate() throws Throwable {
TopLevelItem foo = r.j.jenkins.getItem("foo");
assertDataMigrated(foo);
}
});
}

/**
Expand All @@ -162,6 +190,13 @@ public void evaluate() throws Throwable {
assertDataMigrated(foo);
}
});
r.addStep(new Statement() {
@Override
public void evaluate() throws Throwable {
TopLevelItem foo = r.j.jenkins.getItem("foo");
assertDataMigrated(foo);
}
});
}

@Test
Expand All @@ -179,6 +214,13 @@ public void evaluate() throws Throwable {
assertDataMigrated(foo);
}
});
r.addStep(new Statement() {
@Override
public void evaluate() throws Throwable {
TopLevelItem foo = r.j.jenkins.getItem("foo");
assertDataMigrated(foo);
}
});
}

/**
Expand All @@ -195,6 +237,13 @@ public void evaluate() throws Throwable {
assertDataMigrated(foo);
}
});
r.addStep(new Statement() {
@Override
public void evaluate() throws Throwable {
TopLevelItem foo = r.j.jenkins.getItem("foo");
assertDataMigrated(foo);
}
});
}

/**
Expand All @@ -211,6 +260,13 @@ public void evaluate() throws Throwable {
assertDataMigrated(foo);
}
});
r.addStep(new Statement() {
@Override
public void evaluate() throws Throwable {
TopLevelItem foo = r.j.jenkins.getItem("foo");
assertDataMigrated(foo);
}
});
}

@Test
Expand All @@ -228,6 +284,13 @@ public void evaluate() throws Throwable {
assertDataMigrated(foo);
}
});
r.addStep(new Statement() {
@Override
public void evaluate() throws Throwable {
TopLevelItem foo = r.j.jenkins.getItem("foo");
assertDataMigrated(foo);
}
});
}

private void assertDataMigrated(TopLevelItem foo) throws Exception {
Expand Down

0 comments on commit 60e82a9

Please sign in to comment.